From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Problem with after-change-functions hook
Date: Tue, 21 Mar 2006 12:04:08 -0500 [thread overview]
Message-ID: <87veu7eno4.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.11.1142742504.3795.help-gnu-emacs@gnu.org
> I am trying to create a hook so as to run a function when a certain buffer
> changes. I put this in a mode definition function:
> (add-hook 'after-change-functions 'function nil t)
Other than the use of the name `function', this looks correct.
> but the resulting hook appears to be global, as the function take effect on
> all buffers!?
That shouldn't be the case. What makes you think this is the case?
What does C-h v after-change-functions RET say when called in the buffer
(the one where you want the hook to be active)?
Stefan
next parent reply other threads:[~2006-03-21 17:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11.1142742504.3795.help-gnu-emacs@gnu.org>
2006-03-21 17:04 ` Stefan Monnier [this message]
2006-03-26 1:38 ` Problem with after-change-functions hook user240
[not found] ` <mailman.37.1143337105.9694.help-gnu-emacs@gnu.org>
2006-03-26 4:46 ` Stefan Monnier
2006-03-27 21:19 ` user240
[not found] ` <mailman.42.1143494361.2481.help-gnu-emacs@gnu.org>
2006-03-29 5:27 ` Stefan Monnier
2006-03-19 4:28 user240
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=87veu7eno4.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.