> "Julian" == Julian Bradfield
<jcb+xeb(a)jcbradfield.org> writes:
On 2015-01-13, Uwe Brauer <oub(a)mat.ucm.es> wrote:
> this seems absurd.
>
> When I try to execute
>
> (remove-hook 'write-file-hooks 'x-symbol-write-hook)
>
> The x-symbol-write-hook is not removed.
How do you know?
In short
(describe-variable 'write-file-hooks)
Which tells me that the x-symbol-write-hook is still in the
write-file-hooks.
Rationale:
Here is what I usually do:
(add-hook 'message-send-hook 'my-message-check-attachment)
Then
(describe-variable 'message-send-hook)
returns
----------------
`message-send-hook' is a variable declared in Lisp.
-- loaded from "message"
Value: (my-message-check-attachment my-turn-off-sc-nested my-set-spell-nil
todo-gnus-message-send-hook mail-add-payment bbdb/send-hook
my-hook-encrypt-or-sign-smime)
--------------------------
Then I do
(remove-hook 'message-send-hook 'my-message-check-attachment)
And again
(describe-variable 'message-send-hook)
And obtain:
----------------
Value: (my-turn-off-sc-nested my-set-spell-nil todo-gnus-message-send-hook
mail-add-payment bbdb/send-hook my-hook-encrypt-or-sign-smime)
---------------
So the my-message-check-attachment is no in the message-send-hook.
However when I do the same with (describe-variable 'write-file-hooks)
the x-symbol-write-hook is not removed.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta