* Fuctions in c-mode-hook being called twice?(24.3.92)
@ 2014-07-12 1:00 netjunegg2
2014-07-12 2:11 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: netjunegg2 @ 2014-07-12 1:00 UTC (permalink / raw)
To: emacs-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-12 2:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-12 1:00 Fuctions in c-mode-hook being called twice?(24.3.92) netjunegg2
2014-07-12 2:11 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).