info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another simple question about hooks


From: Tassilo Horn
Subject: Re: another simple question about hooks
Date: Tue, 13 Nov 2007 08:50:24 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

David Rod <angel_ov_north@tiscali.co.uk> writes:

Hi David,

>> ..., but kill-buffer-hook gets called with the
>> buffer being killed as the current buffer, so you can look at
>> buffer-local variables like major-mode to see.
>
> How do I look at buffer-local variables?

There's no difference than looking to a global variable, e.g.

    (if (eq major-mode 'foobar-mode)
        (do-stuff)
      (do-other-stuff))

(major-mode is always buffer-local.)

Bye,
Tassilo
-- 
My opinions may have changed, but not the fact that I am right.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]