[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing a hook
From: |
Qiang |
Subject: |
Re: Removing a hook |
Date: |
Wed, 04 Aug 2010 13:31:17 -0600 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Hi, Crotti
At Wed, 04 Aug 2010 16:06:08 +0200,
Andrea Crotti wrote:
>
> 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---
how do you get this separation line, any package will do
this ?
>
> --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?
>
>