|
From: | address@hidden |
Subject: | Fuctions in c-mode-hook being called twice?(24.3.92) |
Date: | Sat, 12 Jul 2014 09:00:13 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131028 Thunderbird/17.0.10 |
emacs -Q Then run the following code: (defun my-test-func () (message "hook test") ) (add-hook 'c-mode-hook 'my-test-func) Open a c file. Go to the *Message* buffer. "hook test" is printed twice.
[Prev in Thread] | Current Thread | [Next in Thread] |