[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Removing a hook
From: |
Andrea Crotti |
Subject: |
Removing a hook |
Date: |
Wed, 04 Aug 2010 16:06:08 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin) |
It should be simple but I'm trying to remove a hook without success
--8<---------------cut here---------------start------------->8---
desktop-after-read-hook is a variable defined in `desktop.el'.
Its value is
(dired-git-current dired-git-files)
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
ELISP> (remove-hook 'desktop-after-save-hook 'dired-git-files)
nil
--8<---------------cut here---------------end--------------->8---
and nothing happens.
I even tried
to
--8<---------------cut here---------------start------------->8---
(setq desktop-after-read-hook nil)
--8<---------------cut here---------------end--------------->8---
or (setq ... (remq ...))
but nothing, it keeps ALWAYS the same value.
What's so magic about that hook, how can that be possible?
- Removing a hook,
Andrea Crotti <=