unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Seb <spluque@gmail.com>
To: emacs-devel@gnu.org
Subject: remove-hook creates a symbol if it doesn't exist
Date: Tue, 21 Oct 2008 13:26:58 -0500	[thread overview]
Message-ID: <87ej29ls7h.fsf@patagonia.sebmags.homelinux.org> (raw)

Hi,

The function remove-hook creates a symbol if its HOOK arg doesn't exist
as such:

(remove-hook 'non-existent-hook 'some-function)


,-----[ C-h v non-existent-hook RET ]
| non-existent-hook's value is nil
| 
| Documentation:
| Not documented as a variable.
| 
| [back]
`-----


Cheers,

-- 
Seb





             reply	other threads:[~2008-10-21 18:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 18:26 Seb [this message]
2008-10-21 22:13 ` remove-hook creates a symbol if it doesn't exist Stefan Monnier
2008-10-22  2:48 ` Kevin Rodgers
2008-10-22  2:54   ` Drew Adams
2008-10-24  3:12     ` Kevin Rodgers

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ej29ls7h.fsf@patagonia.sebmags.homelinux.org \
    --to=spluque@gmail.com \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).