From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jack Duthen <duthen.mac.01@gmail.com>
Cc: 11477-done@debbugs.gnu.org
Subject: bug#11477: 23.1; which-func-cleanup-function should be local
Date: Tue, 15 May 2012 11:46:22 -0400 [thread overview]
Message-ID: <jwvr4ulphxg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CALGVPOoUGj822d0f=DR3y3XFH8YjChSzsT5ExtTvi3jvrsfOsw@mail.gmail.com>
> So, as the function name contained in the variable
> "which-func-cleanup-function" can be mode-dependent,
> I think that "which-func-cleanup-function" should be declared
> as buffer local.
locality does not have to be a global property of a variable.
If you only want your cleanup function to be used in a particular
mode/buffer, then set it with (set (make-local-variable '<var>) <val>)
(now available as `setq-local') rather than with `setq'.
Stefan
prev parent reply other threads:[~2012-05-15 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 15:08 bug#11477: 23.1; which-func-cleanup-function should be local Jack Duthen
2012-05-15 15:46 ` Stefan Monnier [this message]
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=jwvr4ulphxg.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=11477-done@debbugs.gnu.org \
--cc=duthen.mac.01@gmail.com \
/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.