help-gnu-emacs
[Top][All Lists]
Advanced

[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: Doug Lewan
Subject: RE: Writing Gnu Emacs extension book - What occured to make-local-hook?
Date: Thu, 8 Nov 2012 22:25:05 +0000

I don't find it in emacs 24 and the NEWS file mentions it as an "obsolete 
function or alias that has been removed." (Slight paraphrase for grammatical 
clarity.) That change was apparently made in 24.1.

,Doug

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Yves Baumes
> Sent: Thursday, 2012 November 08 16:38
> To: help-gnu-emacs@gnu.org
> Subject: Writing Gnu Emacs extension book - What occured to make-local-
> hook?
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]