all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Writing Gnu Emacs extension book - What occured to make-local-hook?
@ 2012-11-08 21:38 Yves Baumes
  2012-11-08 22:25 ` Doug Lewan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yves Baumes @ 2012-11-08 21:38 UTC (permalink / raw)
  To: help-gnu-emacs

Hi everyone,

I am reading the Writing GNU Emacs extention book, and it refers to the
function 'make-local-hook. After some research, it appears to me that it has
been removed in some previous version of Emacs. Am I right?

I've downloaded the latest elisp reference book, and found no reference
to it in the whole PDF. (while 'make-local-variable still exits).

I've looked into the 'add-hook source code, and it appears to me that it
makes the job of turning the hook into a local variable, provided the
'local argument is non-nil.

  (if local (unless (local-variable-if-set-p hook)
	      (set (make-local-variable hook) (list t)))

Finally, am I right to consider I no londer needs to call 'make-local-hook
as long as I call 'add-hook with the correct parameter set?

Regards, to everyone
Yves.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-09  3:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-08 21:38 Writing Gnu Emacs extension book - What occured to make-local-hook? Yves Baumes
2012-11-08 22:25 ` Doug Lewan
     [not found] ` <mailman.12575.1352413447.855.help-gnu-emacs@gnu.org>
2012-11-08 23:37   ` Peter
2012-11-09  3:33 ` Jambunathan K

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.