From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Writing Gnu Emacs extension book - What occured to make-local-hook? Date: Fri, 09 Nov 2012 09:03:38 +0530 Message-ID: <87sj8jbgbx.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352431900 12881 80.91.229.3 (9 Nov 2012 03:31:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 03:31:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Yves Baumes Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 04:31:50 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 1TWfJt-00057B-6S for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 04:31:49 +0100 Original-Received: from localhost ([::1]:43898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWfJj-0002EX-Cs for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Nov 2012 22:31:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWfJd-0002EF-Va for help-gnu-emacs@gnu.org; Thu, 08 Nov 2012 22:31:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWfJd-00047W-3W for help-gnu-emacs@gnu.org; Thu, 08 Nov 2012 22:31:33 -0500 Original-Received: from mail-da0-f41.google.com ([209.85.210.41]:54754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWfJc-00047M-TM for help-gnu-emacs@gnu.org; Thu, 08 Nov 2012 22:31:33 -0500 Original-Received: by mail-da0-f41.google.com with SMTP id i14so1558431dad.0 for ; Thu, 08 Nov 2012 19:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/mXAorHiuuuLGwu8xpaugKhJxZaFSb9VKwxGEwbvdf4=; b=ZDNeqdXwUUC+vOLdqGxzt86iNdlUsELSQqwFsAnhL66zot/cL3kQ0+RevdIqTuybV7 54aDu/svw1eXhFFYfyqKq+S2y8Ukhml5ac+sfhYz038GarYZ7Sz+Fxbu0aiipDk3IjUK p2+PdO7dbRh/fEllb9iBnhg1fPcgr8XbS89NdtpQ60LgLzVtik1aBF/wv9Bcj/1wvRqH Hg3vrmJ4zNLCFNA7WfKGreedFQRmeWUsRePCzV+HCCOyUwyuEjXyn5uPu8dqzBE0+93Z nkDOdwQ513vXxCOpXHfJt+4aMGF/0E2dGb3345wOx1yO53FJ9zwwr/Hvp6U9wBTLYMGa 8p0Q== Original-Received: by 10.68.219.163 with SMTP id pp3mr29616657pbc.13.1352431892080; Thu, 08 Nov 2012 19:31:32 -0800 (PST) Original-Received: from debian-6.05 ([115.241.124.78]) by mx.google.com with ESMTPS id c7sm17183957pay.10.2012.11.08.19.31.28 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2012 19:31:30 -0800 (PST) In-Reply-To: (Yves Baumes's message of "Thu, 08 Nov 2012 22:38:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.41 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:87601 Archived-At: Yves Baumes 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. > --