From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gottlieb@nyu.edu Newsgroups: gmane.emacs.help Subject: Re: does customizing a hook "add-to" the hook? Date: Mon, 15 Jul 2013 14:50:35 -0400 Message-ID: <87d2qj8xok.fsf@nyu.edu> References: <87wqou6tkw.fsf@nyu.edu> <871u703bmd.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373914261 6698 80.91.229.3 (15 Jul 2013 18:51:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jul 2013 18:51:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 20:51:01 2013 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 1UynrN-0007sK-CJ for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jul 2013 20:50:57 +0200 Original-Received: from localhost ([::1]:58250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UynrN-0005Jn-1W for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jul 2013 14:50:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uynr7-0005Je-8B for help-gnu-emacs@gnu.org; Mon, 15 Jul 2013 14:50:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uynr3-0008Nk-7T for help-gnu-emacs@gnu.org; Mon, 15 Jul 2013 14:50:40 -0400 Original-Received: from smtp.cs.nyu.edu ([128.122.49.97]:54061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uynr3-0008Nf-0e for help-gnu-emacs@gnu.org; Mon, 15 Jul 2013 14:50:37 -0400 Original-Received: from newlap.localdomain (ool-182de1a5.dyn.optonline.net [24.45.225.165]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.14.4) with ESMTP id r6FIoZgS026749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 15 Jul 2013 14:50:36 -0400 (EDT) Original-Received: by newlap.localdomain (Postfix, from userid 1000) id 0A6F5A039A; Mon, 15 Jul 2013 14:50:35 -0400 (EDT) In-Reply-To: <871u703bmd.fsf@web.de> (Michael Heerdegen's message of "Mon, 15 Jul 2013 02:33:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.122.49.97 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:92142 Archived-At: On Sun, Jul 14 2013, Michael Heerdegen wrote: > gottlieb@nyu.edu writes: > >> If I use `customize-option' to customize a (normal) hook, >> do the functions I add via pushing the `ins' button get added to >> the default value for the hook or do they replace the default? >> >> I wish to achieve the former (add-to) effect and realize that `add-hook' >> does this, but would prefer to use customize if possible. > > All relevant hooks I know are empty when declared in the sources. So if > you load your `custom-file' early enough when starting up Emacs (i.e., > before modifying hooks or loading packages), you don't need to worry > about your or third party code adding stuff to the hook, that works > normally. Thank you for the response. That was exactly my concern. Namely that I (in this order) 1. set a hook via customize 2. upgrade emacs 3. run the new emacs (with my same startup files) and then some new default would be overridden since my customization overwrites the hook instead of adding to it. Is it guaranteed or suggested that hook are by default empty? I didn't see that in the info pages. Sorry I wasn't clearer initially. allan