unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* Re: Fuctions in c-mode-hook being called twice?(24.3.92)
  2014-07-12  1:00 Fuctions in c-mode-hook being called twice?(24.3.92) netjunegg2
@ 2014-07-12  2:11 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2014-07-12  2:11 UTC (permalink / raw)
  To: netjunegg2@gmail.com; +Cc: emacs-devel

"netjunegg2@gmail.com" wrote:

> 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.

Please report bugs to the bus list, not emacs-devel.
However, this one is already known, so there is nothing for you to do.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16759



^ 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).