Home > wrong type > lisp error wrong-type-argument stringp t

Lisp Error Wrong-type-argument Stringp T

Contents

For example, the + function expects the values of its arguments to be numbers. As an experiment we can pass it the quoted symbol hello instead of a number. emacs wrong type argument number-or-marker-p nil Position the cursor after the following expression and type C-x C-e: (+ 2 'hello) emacs stringp When you do this you will generate an error message. What has happened is that + has tried to add

Emacs Wrong Type Argument Listp

the 2 to the value returned by 'hello, but the value returned by 'hello is the symbol hello, not a number. Only numbers can be added. So + could not carry out its

Wrong Type Argument Integer Or Marker P Nil

addition. You will create and enter a *Backtrace* buffer that says: ---------- Buffer: *Backtrace* ---------- Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p hello) +(2 hello) eval((+ 2 (quote hello))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) ---------- Buffer: *Backtrace* ---------- As usual, the error message tries to be helpful and makes sense after you learn how to read it.3 The first part of the error message is straightforward; it says ‘wrong type emacs lisp debugger argument’. Next comes the mysterious jargon word ‘number-or-marker-p’. This word is trying to tell you what kind of argument the + expected. The symbol number-or-marker-p says that the Lisp interpreter is trying to determine whether the information presented it (the value of the argument) is a number or a marker (a special object representing a buffer position). What it does is test to see whether the + is being given numbers to add. It also tests to see whether the argument is something called a marker, which is a specific feature of Emacs Lisp. (In Emacs, locations in a buffer are recorded as markers. When the mark is set with the C-@ or C-SPC command, its position is kept as a marker. The mark can be considered a number—the number of characters the location is from the beginning of the buffer.) In Emacs Lisp, + can be used to add the numeric value of marker positions as numbers. The ‘p’ of number-or-marker-p is the embodiment of a practice started in the early days of Lisp programming. The ‘p’ stands for “predicate”. In the jargon used by the early Lisp researchers, a predicate refers to a function to

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more

Wrong Type Argument Stringp Nil Emacs

about Stack Overflow the company Business Learn more about hiring developers or posting ads emacs wrong type argument commandp with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow emacs wrong type argument arrayp nil is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Wrong type argument: stringp, nil error up vote 5 down vote favorite https://www.gnu.org/software/emacs/manual/html_node/eintr/Wrong-Type-of-Argument.html I need to use update-directory-autoloads function in a little el-script. When I'm trying to call this function with an argument that is a name of a directory I receive this error: Wrong type argument: stringp, nil. Call looks like this: (update-directory-autoloads "~/test") emacs elisp share|improve this question edited Feb 7 '13 at 22:31 Jesus Ramos 18.1k53971 asked Feb 7 '13 at 22:14 Jauhien Piatlicki 153111 add a comment| 2 http://stackoverflow.com/questions/14762036/wrong-type-argument-stringp-nil-error Answers 2 active oldest votes up vote 5 down vote accepted Generating autoload files is poorly documented. You're experiencing the problem that arises because you haven't set the variable generated-autoload-file. Try the following: (let ((generated-autoload-file "~/test/loaddefs.el")) (update-directory-autoloads "~/test")) Update the generated-autoloads-file binding to be the location where you want the loaddefs.el file to live. share|improve this answer answered Feb 7 '13 at 22:41 Trey Jackson 60k8150190 Thank you. The problem really was in generated-autoload-file undefined. –Jauhien Piatlicki Feb 7 '13 at 23:59 add a comment| up vote 9 down vote When you get Wrong type argument: foo, bar., you should M-: (setq debug-on-error t) RET and then reproduce the error so as to get a backtrace. Actually, you can set debug-on-error like that in your .emacs and Emacs usually stays perfectly useable. share|improve this answer answered Feb 8 '13 at 2:40 Stefan 19.8k12049 6 M-x toggle-debug-on-error is a bit nicer for the interactive case. –phils Feb 8 '13 at 5:45 Indeed. Or even "Options => Enter Debugger on Error" in the menu. –Stefan Nov 5 '13 at 12:28 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook

Sign in Pricing Blog Support Search GitHub This repository Watch 451 Star 9,368 Fork 2,473 syl20bnr/spacemacs Code Issues 878 Pull https://github.com/syl20bnr/spacemacs/issues/3652 requests 169 Projects 4 Wiki Pulse Graphs New issue Wrong type argument: stringp, nil #3652 Open sumyuga opened this Issue Nov 3, 2015 · 24 comments Projects None yet Labels - Forum - Docker Documentation ✏ FAQ Hacktoberfest Ready for work Milestone No milestone Assignees No one assigned 9 participants sumyuga commented wrong type Nov 3, 2015 My host system is OS X and docker with Debian used to development. I have emacs 24.4.1 on Debian installed. After emacs starts I get this: Warning (initialization): An error occurred while loading '/root/.emacs.d/init.el' Wrong type argument: stringp, nil As a result it's not working powerline with key bindings But on my host wrong type argument system is all great. Collaborator TheBB commented Nov 3, 2015 Do --debug-init to see where the error comes from. sumyuga commented Nov 3, 2015 after this command starts emacs shows "Entering debugger..." and it is frozen – no any reaction Owner syl20bnr commented Nov 3, 2015 Is it with a vanilla .spacemacs ? sumyuga commented Nov 3, 2015 Of course. I have copied from template file ~/.emacs.d/core/templates/.spacemacs.template Collaborator TheBB commented Nov 4, 2015 You can work around this error by opening .emacs.d/elpa/archives/melpa/archive-contents and deleting the nil at the end of the list. I'm not sure why that happens in the first place. sumyuga commented Nov 4, 2015 No, it doesn't work StreakyCobra added to be reproduced <=(- UBO -)=> labels Nov 6, 2015 autosquid commented Jan 5, 2016 It looks like the same thing happened to me, and solution from @TheBB works. StreakyCobra added Fixed in develop Fixed in current release-x.x and removed Fixed in develop labels Jan 5, 2016 StreakyCobra commented Jan 5, 2016 @T

 

Related content

debugger entered-lisp error wrong-type-argument stringp nil

Debugger Entered-lisp Error Wrong-type-argument Stringp Nil table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Wrong Type Argument Stringp Nil a li li a href Emacs Wrong Type Argument Number-or-marker-p Nil a li li a href Emacs Stringp a li li a href Emacs Wrong Type Argument Listp a li ul td tr tbody table p Sign in Pricing Blog Support Search GitHub option form This repository Watch Star Fork syl bnr spacemacs Code Issues relatedl Pull requests Projects Wiki Pulse Graphs p h id Emacs Wrong Type Argument Stringp Nil p New

debugger entered-lisp error wrong-type-argument listp set-from-style

Debugger Entered-lisp Error Wrong-type-argument Listp Set-from-style table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Wrong Type Argument Number-or-marker-p a li li a href Emacs Wrong Type Argument Listp a li li a href Emacs Lisp Debugger a li li a href Listp Elisp a li ul td tr tbody table p Sign p h id Emacs Wrong Type Argument Number-or-marker-p p in Pricing Blog Support Search GitHub option form This emacs wrong type argument stringp repository Watch Star Fork jorgenschaefer elpy Code Issues p h id Emacs Wrong Type Argument Listp p

emacsclient *error* wrong type argument stringp nil

Emacsclient error Wrong Type Argument Stringp Nil p Sign in Pricing Blog Support Search GitHub option form This repository Watch Star Fork relatedl magit magit Code Issues Pull requests emacs wrong type argument stringp nil Projects Wiki Pulse Graphs New issue Cannot commit with new commit cedet wrong type argument stringp nil workflow wrong-type-argument stringp nil Closed zachallaun opened this Issue Aug middot comments Projects None yet option form Labels emacsclient option form Milestone option form Assignees No one assigned participants zachallaun commented Aug Hi there I've just upgraded magit and am running into an error when trying to commit

error during redisplay wrong-type-argument number-or-marker-p nil

Error During Redisplay Wrong-type-argument Number-or-marker-p Nil table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Wrong Type Argument Number-or-marker-p a li li a href Emacs Wrong Type Argument Listp a li li a href Emacs Wrong Type Argument Commandp a li li a href Emacs Lisp Debugger a li ul td tr tbody table p number-or-marker-p nil in redisplay--update-region-highlight Date Wed Apr Hi I relatedl got the following error but I p h id Emacs Wrong Type Argument Number-or-marker-p p can't reproduce it in a fresh session emacs wrong type argument stringp Debugger

error in process filter wrong type argument stringp nil

Error In Process Filter Wrong Type Argument Stringp Nil table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Wrong Type Argument Number-or-marker-p Nil a li li a href Emacs Debugger a li li a href Spacemacs Windows a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you relatedl might have Meta Discuss the workings and policies of emacs wrong type argument stringp this site About Us Learn more about Stack Overflow the company Business emacs stringp Learn more about

error in process filter wrong type argument number-or-marker-p nil

Error In Process Filter Wrong Type Argument Number-or-marker-p Nil table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Wrong Type Argument Stringp a li li a href Wrong Type Argument Integer-or-marker-p Nil a li li a href Emacs Wrong Type Argument Listp a li ul td tr tbody table p Sign in Pricing Blog Support Search GitHub option form This repository Watch Star Fork dimitri el-get Code Issues relatedl Pull requests Projects Wiki Pulse Graphs New issue emacs wrong type argument number-or-marker-p Installation doesn't work Closed taoeffect opened this Issue Jan middot p

error in process filter wrong type argument

Error In Process Filter Wrong Type Argument table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Error In Process Filter a li li a href Wrong Type Argument Characterp Tab a li li a href Wrong Type Argument Arrayp a li li a href Cider Emacs a li ul td tr tbody table p Sign in Pricing Blog Support Search GitHub option form This repository Watch Star Fork jorgenschaefer elpy Code Issues Pull relatedl requests Projects Wiki Pulse Graphs New issue error p h id Emacs Error In Process Filter p in process

error* wrong type argument stringp nil

Error Wrong Type Argument Stringp Nil table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Debug On Error a li li a href Spacemacs Windows a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies relatedl of this site About Us Learn more about Stack Overflow emacs wrong type argument stringp the company Business Learn more about hiring developers or posting ads with us Stack emacs stringp Overflow Questions Jobs Documentation

error-129 the supplied format buffer is wrong

Error- The Supplied Format Buffer Is Wrong table id toc tbody tr td div id toctitle Contents div ul li a href Emacs Wrong Type Argument Number-or-marker-p a li li a href Windows Error Codes List a li li a href Process exit Code Values a li li a href Sccm Exit Code a li ul td tr tbody table p Fran ais Deutsch Espa ol Help Video Screencast Help Windows System Error Codes exit codes Description Created Jan Updated Dec comments Language relatedl TranslationsMachine TranslationsDeutsch Fran ais Espa ol Sidd Votes p h id Emacs Wrong Type Argument Number-or-marker-p