Emacs File Mode Specification Error Void-function
Contents |
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 about Stack Overflow the
File Mode Specification Error (void-variable
company Business Learn more about hiring developers or posting ads with us Stack Overflow file mode specification error emacs Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 file mode specification error (void-function format-message) million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Entering a minor mode with a major mode in Emacs up vote 3 down vote favorite This question may
File Mode Specification Error Invalid Function
be a duplicate of this question, but I can't get the following to work properly in my emacs. I am trying to enter minor mode mlint-mode whenever I enter major mode matlab-mode (both modes available at their SourceForge page). I have the following in my .emacs file: (add-hook 'matlab-mode-hook (function (lambda() (mlint-mode)))) which looks like the answer to the question I linked above. When opening a .m file, I get the following error:
File Mode Specification Error Wrong Number Of Arguments
File mode specification error: (void-function mlint-mode) Could someone please assist in helping me write the correct hook to enter mlint-mode when I open a .m file? FWIW, I'm running emacs 23.1.50.1. emacs q share|improve this question edited Jan 16 '15 at 23:24 APerson 3,27232047 asked Sep 14 '11 at 18:49 Dang Khoa 2,83052863 Why not just (add-hook 'matlab-mode-hook 'mlint-mode)? Are you sure you have actually loaded the minor mode? –Henning Makholm Sep 14 '11 at 19:03 that's the first thing I tried, and it didn't work. see @Lindydancer's answer below.. –Dang Khoa Sep 14 '11 at 19:15 3 You don't do it that way because most minor modes toggle their functionality when called with no argument (just like when you call them interactively). So if mlint mode was already enabled for a buffer and you changed to matlab-mode, the above form would have the effect of switching mlint mode off. As such, you usually want to pass an argument (frequently 1 or t, but check the appropriate docstring) when enabling a minor mode with a hook function. –phils Sep 14 '11 at 21:21 add a comment| 1 Answer 1 active oldest votes up vote 10 down vote accepted I think the correct name is mlint-minor-mode. Also, remember to ensure that
Sign in Pricing Blog Support Search GitHub This repository Watch 2 Star file mode specification error void function jedi setup 19 Fork 5 purcell/flymake-ruby Code Issues 0 Pull requests 0
Update Spacemacs
Projects 0 Pulse Graphs New issue File mode specification error: (void-function first) #4 Closed akappen company mode opened this Issue Dec 7, 2012 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one http://stackoverflow.com/questions/7421445/entering-a-minor-mode-with-a-major-mode-in-emacs assigned 2 participants akappen commented Dec 7, 2012 I just added the latest flymake-ruby from MELPA and it isn't working. When I open a ruby file ruby-mode is active but flymake-ruby is not. I do get some error output, the details follow. Let me know if you need https://github.com/purcell/flymake-ruby/issues/4 anything else. emacs 24.1.1 flymake-ruby Version: 20121104.1859 flymake-easy Version: 20121107.1109 I added the hooks to my init.el file: (require 'flymake-ruby) (add-hook 'ruby-mode-hook 'flymake-ruby-load) When I open any ruby file, this error is logged to Messages: File mode specification error: (void-function first) If I execute flymake-ruby-load manually in a ruby buffer I get this in Messages: flymake-easy-load: Symbol's function definition is void: first flymake-ruby-executable is set to "ruby" Running 'which ruby' with M-! returns the expected path to the ruby executable. purcell added a commit to purcell/flymake-easy that referenced this issue Dec 8, 2012 purcell purcell/flymake-ruby#4 37b86f1 Owner purcell commented Dec 8, 2012 Thanks for the report! Hmm. I
Sign in Pricing Blog Support Search GitHub This repository Watch 5 Star 31 Fork 16 Groovy-Emacs-Modes/groovy-emacs-modes Code Issues 10 Pull requests 1 Projects 0 Pulse Graphs New issue Can't load groovy-mode https://github.com/Groovy-Emacs-Modes/groovy-emacs-modes/issues/11 : File mode specification error: (void-function set-difference) #11 Open paraita opened this Issue https://github.com/syl20bnr/spacemacs/issues/1593 May 9, 2015 · 14 comments Projects None yet Labels bug question Milestone No milestone Assignees No one assigned 9 participants paraita commented May 9, 2015 I installed groovy-mode via melpa (20141209) today. I opened a simple groovy file: class Main { static void main(String... args) { println 'Hello' } file mode } groovy-mode should have fired up but failed: File mode specification error: (void-function set-difference) During the installation with melpa, there was that error: Compiling file /home/paraita/.emacs.d/elpa/groovy-mode-20141209.1133/groovy-electric.el at Sun May 10 00:37:58 2015 Entering directory `/home/paraita/.emacs.d/elpa/groovy-mode-20141209.1133/' groovy-electric.el:55:1:Error: Symbol's function definition is void: set-difference Compiling file /home/paraita/.emacs.d/elpa/groovy-mode-20141209.1133/groovy-mode.el at Sun May 10 00:37:58 2015 groovy-mode.el:354:1:Error: Symbol's function definition is void: set-difference Compiling file /home/paraita/.emacs.d/elpa/groovy-mode-20141209.1133/inf-groovy.el at Sun May 10 00:37:58 2015 file mode specification inf-groovy.el:51:1:Error: Symbol's function definition is void: set-difference but it installed anyway. Forcing the (require 'cl) in groovy-mode.el solved my problem. I am using Emacs 24.5.1 on Archlinux x86_64 and yeah I'm aware of the cc-mode bug. mrcirillo commented May 11, 2015 Also having this problem prasenjeetd commented Jun 27, 2015 I had this problem on Emacs 24.5; it seems this line in groovy-mode.el is to blame for not requiring cl: (if (and (= emacs-major-version 24) (< emacs-minor-version 5)) (require 'cl)) russel commented Jul 25, 2015 I am not seeing this error, I am now getting: File mode specification error: (void-function inf-groovy-keys) russel commented Jul 25, 2015 I had some residual files causing the problem notes above, with clean up everything seems to work as expected. I am on 24.5.1 on Debian Sid. vicktor3 commented Jul 28, 2015 I pulled the package today with GNUEmacs v 24.5 and ran into the error listed by @paraita. I followed his steps and removed the if statement, to require cl and groovy-mode now works. I am on amachine running Windows 7. tsdh commented Jul 29, 2015 I can't see any occurrence of set-difference in the code. But anyhow, packages should not (require 'cl
Sign in Pricing Blog Support Search GitHub This repository Watch 451 Star 9,191 Fork 2,421 syl20bnr/spacemacs Code Issues 879 Pull requests 196 Projects 4 Wiki Pulse Graphs New issue Org-mode: File mode specification error: (void-function nil) #1593 Closed sooheon opened this Issue May 14, 2015 · 7 comments Projects None yet Labels Org To be reproduced Milestone No milestone Assignees No one assigned 4 participants sooheon commented May 14, 2015 Upon opening an org file, I get the above error and evil-org-mode is not activated. It works if I call it manually. The org/init-evil-org use-package seems correct to me, but I'm not too sure. Owner syl20bnr commented May 17, 2015 On which branch are you ? syl20bnr added Org to be confirmed labels May 17, 2015 sooheon commented May 17, 2015 I am on develop. Just tried with latest develop and nuking elpa again, problem persists for me. Owner syl20bnr commented May 18, 2015 What is your version of emacs ? Can you enable debugging with SPC t D before opening the org file and paste the callstack here? sooheon commented May 18, 2015 Version: GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-11 on builder10-9.porkrind.org Debugger output: Debugger entered--Lisp error: (void-function nil) nil() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() set-auto-mode-0(org-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#