From: Stefan Monnier <monnier@iro.umontreal.ca>
To: MON KEY <monkey@sandpframing.com>
Cc: emacs-devel@gnu.org
Subject: Re: Proposal: `buffer-offer-save' be made a permanent-local
Date: Mon, 14 Jun 2010 09:38:07 -0400 [thread overview]
Message-ID: <jwvbpbdivrm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <AANLkTiktoOeEjyo_qWR33OmoXNXmr5hT6wDYIzVDxNr3@mail.gmail.com> (MON KEY's message of "Mon, 14 Jun 2010 04:48:12 -0400")
>> No. If buffer-offer-save is bound to a major-mode, then it should not
>> be permanent-local (i.e. if that variable is permanent-local, then the
>> major-mode will need to use change-major-mode-hook to kill that var
>> explicitly).
> So, the burden is shifted from major-mode authors and users to check/test for
> the property where the check has not otherwise been explicitly required of
> either in the past?
I have no idea what "check/test" you're referring to.
>> AFAICT, all current uses of buffer-offer-save in Emacs are in places
>> where the major-mode is not expected to change and where, in case it
>> does change, it doesn't matter much what happens anyway.
> So, is it fair to assume that for these major-mode's which are not
> expected to change there is no particular benefit/gain of having
> buffer-offer-save permanent-local?
Yes.
>> The exchange explains how making kill-buffer-hook permanent-local is not
>> too terrible, because specific major-modes can override the permanence
>> via change-major-mode-hook. That same argument applies to any variable,
>> including buffer-offer-save.
> Maybe, but they don't necessarily apply in the same way though b/c:
> - buffer-offer-save is a boolean**;
Why would that matter?
> - buffer-offer-save is a buffer-local whereas kill-buffer-hook is a
> kind of "buffer-global";
The permanent-local property only matters when the variable is
buffer-local, so the fact that buffer-offer-save is always buffer-local
whereas kill-buffer-hook is only sometimes so is irrelevant.
> In this thread below RMS establishes a clear recipe for how he
> suggest to address exactly this sort of issue:
This is unrelated to buffer-offer-save.
Stefan
next prev parent reply other threads:[~2010-06-14 13:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 0:17 Proposal: `buffer-offer-save' be made a permanent-local MON KEY
2010-06-14 0:59 ` Lennart Borgman
2010-06-14 1:00 ` Stefan Monnier
2010-06-14 8:48 ` MON KEY
2010-06-14 9:18 ` Lennart Borgman
2010-06-16 7:21 ` MON KEY
2010-06-16 11:39 ` Lennart Borgman
2010-06-16 22:02 ` MON KEY
2010-06-16 23:11 ` Lennart Borgman
2010-06-28 4:39 ` MON KEY
2010-06-14 13:38 ` Stefan Monnier [this message]
2010-06-17 4:15 ` Kevin Rodgers
2010-06-17 20:19 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2010-06-17 21:36 MON KEY
2010-06-17 22:25 ` Lennart Borgman
2010-06-18 0:13 ` MON KEY
2010-06-18 0:33 ` Lennart Borgman
2010-06-18 2:53 ` MON KEY
2010-06-19 15:20 ` Lennart Borgman
2010-06-20 5:05 ` MON KEY
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=jwvbpbdivrm.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=monkey@sandpframing.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.