all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: gottlieb@nyu.edu
To: help-gnu-emacs@gnu.org
Subject: Re: does customizing a hook "add-to" the hook?
Date: Mon, 15 Jul 2013 14:50:35 -0400	[thread overview]
Message-ID: <87d2qj8xok.fsf@nyu.edu> (raw)
In-Reply-To: <871u703bmd.fsf@web.de> (Michael Heerdegen's message of "Mon, 15 Jul 2013 02:33:46 +0200")

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



  parent reply	other threads:[~2013-07-15 18:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-13 21:25 does customizing a hook "add-to" the hook? gottlieb
2013-07-15  0:33 ` Michael Heerdegen
2013-07-15  1:12   ` Michael Heerdegen
2013-07-15 18:50   ` gottlieb [this message]
2013-07-15 22:49     ` Michael Heerdegen
2013-07-16 14:06       ` gottlieb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2qj8xok.fsf@nyu.edu \
    --to=gottlieb@nyu.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.