From: David Kastrup <dak@gnu.org>
Subject: Re: Hook problem
Date: 27 Sep 2003 19:11:36 +0200 [thread overview]
Message-ID: <x5fziiyx4n.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.805.1064679434.21628.help-gnu-emacs@gnu.org
Faredoon Irani <u02114@cs.unipune.ernet.in> writes:
> I've installed a hook function for the 'after-change-functions'
> hook since I would like to process each and every key pressed. The problem
> is that I do not want to process anything through the hook function if
> the result of a key press accesses the minibuffer, for e.g. C-x C-f.
> This results in the processing of all characters displayed in the
> minibuffer also! I have tried to use minibuffer hooks to toggle a variable
> value when the minibuffer is entered and exited, but the key hook is being
> processed much earlier. Please help.
add-hook has an argument that allows you adding to a buffer-local
value of the hook.
You could also, in your buffer, say
(make-local-variable 'after-change-functions)
before adding to it, but in versions of Emacs where add-hook can
support buffer-locals, that would be the preferable option.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next parent reply other threads:[~2003-09-27 17:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.805.1064679434.21628.help-gnu-emacs@gnu.org>
2003-09-27 17:11 ` David Kastrup [this message]
[not found] <E1A2nrV-00018f-H0@monty-python.gnu.org>
2003-09-27 16:21 ` Hook problem Faredoon Irani
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x5fziiyx4n.fsf@lola.goethe.zz \
--to=dak@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 read-only IMAP folder(s) and NNTP newsgroup(s).