From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yves Baumes Newsgroups: gmane.emacs.help Subject: Writing Gnu Emacs extension book - What occured to make-local-hook? Date: Thu, 08 Nov 2012 22:38:14 +0100 Organization: Guest of ProXad - France Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352410818 14338 80.91.229.3 (8 Nov 2012 21:40:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2012 21:40:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 08 22:40:24 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TWZpn-0001xw-Ut for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Nov 2012 22:40:24 +0100 Original-Received: from localhost ([::1]:59593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWZpc-0005PS-5G for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Nov 2012 16:40:12 -0500 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp3-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:/+WnI3Jb+86Mq0SSOoY10eFBOE0= Original-Lines: 21 Original-NNTP-Posting-Date: 08 Nov 2012 22:38:16 CET Original-NNTP-Posting-Host: 82.66.91.208 Original-X-Trace: 1352410696 news-3.free.fr 21914 82.66.91.208:62818 Original-X-Complaints-To: abuse@proxad.net Original-Xref: usenet.stanford.edu gnu.emacs.help:195270 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87596 Archived-At: 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.