[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing Gnu Emacs extension book - What occured to make-local-hook?
From: |
Jambunathan K |
Subject: |
Re: Writing Gnu Emacs extension book - What occured to make-local-hook? |
Date: |
Fri, 09 Nov 2012 09:03:38 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Yves Baumes <ybaumes@gmail.com> writes:
> 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?
C-h n
C-s make-local-hook
NEWS is the "RSS file" for Emacs releases.
> Regards, to everyone
> Yves.
>
--