From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Subject: Re: another simple question about hooks
Date: Tue, 13 Nov 2007 08:50:24 +0100 [thread overview]
Message-ID: <87abpimvnj.fsf@baldur.tsdh.de> (raw)
In-Reply-To: <u6407hxp9.fsf@tiscali.co.uk>
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.
next prev parent reply other threads:[~2007-11-13 7:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-10 11:58 David Rod
2007-11-11 9:43 ` Tassilo Horn
2007-11-12 18:14 ` David Z Maze
2007-11-12 23:05 ` David Rod
2007-11-13 7:50 ` Tassilo Horn [this message]
[not found] ` <mailman.3249.1194774209.18990.info-gnus-english@gnu.org>
2007-11-12 22:57 ` David Rod
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87abpimvnj.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=info-gnus-english@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.
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 NNTP newsgroup(s).