Emacs File Mode Specification Error Wrong-type-argument Stringp Nil
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings emacs wrong type argument stringp and policies of this site About Us Learn more about Stack emacs file mode specification error void-function Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
File Mode Specification Error (void-function Format-message)
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
File Mode Specification Error Wrong Number Of Arguments
it only takes a minute: Sign up What does it mean when emacs tells me “File mode specification error”? up vote 14 down vote favorite 7 This is the most useless error message I have ever seen. I think it translates to .. "error". The full error message from the *Messages* buffer is: File mode specification error: (wrong-type-argument characterp "string emacs wrong type argument number-or-marker-p nil value here") I think the latter part of that message means that emacs was expecting a character and got a string. But how do I go about diagnosing just what it means when emacs tells me "File mode specification error" ? and how do I narrow down where this error is originating? How are these two errors (file mode error, expecting character and got string) related? emacs share|improve this question edited Nov 15 '10 at 12:23 asked Nov 14 '10 at 22:39 Cheeso 115k60348569 2 A little more context about the conditions under which the error is triggered would help –Richard H Nov 14 '10 at 23:16 So, are you opening a file through find-file and at the end of opening the file Emacs reports this error? Or are you calling normal-mode yourself? What is the type of the file you are trying to open? –vpit3833 Nov 15 '10 at 1:51 @vpit3833, I'm not trying to open a file. not explicitly anyway. I'm running some elisp code, but ... even that does
Sign in Pricing Blog Support Search GitHub
Emacs Wrong Type Argument Arrayp Nil
This repository Watch 28 Star 98 Fork 27 emacs debug on error commercialhaskell/stack-ide Code Issues 26 Pull requests 0 Projects 0 Pulse Graphs New issue update spacemacs Flycheck: File mode specification error: (wrong-type argument stringp nil) #91 Open mtesseract opened this Issue Oct 1, 2015 · 1 comment Projects http://stackoverflow.com/questions/4180111/what-does-it-mean-when-emacs-tells-me-file-mode-specification-error None yet Labels stack-mode Milestone No milestone Assignees No one assigned 2 participants mtesseract commented Oct 1, 2015 Hi, I am trying to setup stack-mode in Emacs 24 for the first time -- so far with no luck. My ~/.emacs https://github.com/commercialhaskell/stack-ide/issues/91 is this: (when (>= emacs-major-version 24) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (package-initialize)) (add-to-list 'load-path "~/src/stack-ide/stack-mode/") (require 'stack-mode) (add-hook 'haskell-mode-hook 'stack-mode) I have installed flycheck from melpa and stack-mode by following the steps on https://github.com/commercialhaskell/stack-ide. When I open a Haskell source file Emacs throws the following error: File mode specification error: (wrong-type-argument stringp nil) The relevant part of the backtrace is: signal(wrong-type-argument (stringp nil)) #[257 "300 210301�@�A"207" [flycheck-report-failed-syntax-check signal] 4 "nn(fn ERR)"]((wrong-type-argument stringp nil)) funcall(#[257 "300 210301�@�A"207" [flycheck-report-failed-syntax-check signal] 4 "nn(fn ERR)"] (wrong-type-argument stringp nil)) flycheck-buffer() flycheck-select-checker(stack-ide) (progn (flycheck-mode 1) (flycheck-select-checker (quote stack-ide)) (flycheck-buffer)) (if stack-mode-manage-flycheck (progn (flycheck-mode 1) (flycheck-select-checker (quote stack-ide)) (flycheck-buffer))) (progn (if (and (boundp (quote interactive-haskell-mode)) interactive-haskell-mode) (progn (if (y-or-n-p "interactive-haskell-mode is enabled. Disable it?") (progn (interactive-haskell-mode -1))))) (if stack-mode-manage-flycheck (progn (flyc
changing TODO state [7.7] Date: Mon, 29 Aug 2011 23:59:58 +0200 On Mon, Aug 29, 2011 at 23:42, Stelian Iancu
wrote: > On Mon, Aug 29, 2011 at 09:59, Nick Dokos wrote: >> Stelian Iancu wrote: >> >>> On https://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg01242.html Sun, Aug 28, 2011 at 19:09, Nick Dokos wrote: >>> > Stelian Iancu wrote: >>> > >>> >> >>> >> I am trying to switch between TODO and DONE states with Shift-Right >>> >> Arrow and I get a (wrong-type-argument stringp nil) error. >>> >> >>> >> Please find attached the backtrace. >>> >> >>> >> >>> >> Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) >>> >> on error of 2010-12-11 on raven, modified by Debian >>> >> Package: Org-mode version 7.7 >>> >> >>> > >>> >> Debugger entered--Lisp error: (wrong-type-argument stringp nil) >>> >> looking-at(nil) >>> >> (save-excursion (beginning-of-line 1) (looking-at >>> >> org-todo-line-regexp)) >>> >> (and (outline-on-heading-p) (not (bolp)) (save-excursion >>> >> (beginning-of-line 1) (looking-at org-todo-line-regexp)) (< (point) (+ 2 >>> >> ...))) >>> >> (if (and (outline-on-heading-p) (not ...) (save-excursion ... file mode specification ...) (< >>> >> ... ...)) (progn (goto-char ...) (and ... ...))) >>> >> (let* ...) >>> >> (catch (quote exit) ...) >>> >> (save-excursion (catch (quote exit)...) >>> >> (let ...) >>> >> org-todo(right) >>> >> call-interactively(org-todo) >>> >> (let ((current-prefix-arg arg)) (call-interactively command)) >>> >> org-call-with-arg(org-todo right) >>> >> (let ...) >>> >> (cond ...) >>> >> org-shiftright(nil) >>> >> call-interactively(org-shiftright nil nil) >>> > >>> > The problem is that org-todo-line-regexp is nil. This variable is >>> > made buffer-local and initialized when the buffer's mode is set >>> > to org-mode. >>> > >>> > Are you sure that your buffer's major mode is org-mode? >>> > >>> > Nick >>> > >>> >>> Yeah, the mode shows as org-mode. >> >> What happens if while visiting the buffer, you say >> >> C-h v org-todo-line-regexp RET >> >> Is the value reported nil? > > Yes, the value is nil. > >> >>> But now I get another weird one. >>> Everytime I open an org file, I see the following message in the >>> minibuffer: >>> >>> File mode specification error: (wrong-type-argument keymap nil) >>> >> >> That will require another bac