* permanent-local
@ 2008-05-21 16:30 David Reitter
2008-05-21 17:44 ` permanent-local Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2008-05-21 16:30 UTC (permalink / raw)
To: emacs- devel
Is there a reason why we don't have
(put 'buffer-save-without-query 'permanent-local t)
?
Shouldn't such variables be permanent-local unless set by a major mode?
I don't quite understand why this sort of behavior is a function of
the symbol (globally!) rather than of the value that is set: some
major modes may set something like `buffer-save-without-query', but it
may also be set buffer-locally by a minor mode.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: permanent-local
2008-05-21 16:30 permanent-local David Reitter
@ 2008-05-21 17:44 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-05-21 17:44 UTC (permalink / raw)
To: David Reitter; +Cc: emacs- devel
> Is there a reason why we don't have
> (put 'buffer-save-without-query 'permanent-local t)
> ?
> Shouldn't such variables be permanent-local unless set by a major mode?
> I don't quite understand why this sort of behavior is a function of the
> symbol (globally!) rather than of the value that is set: some major modes
> may set something like `buffer-save-without-query', but it may also be set
> buffer-locally by a minor mode.
Yes, the `permanent-local' property is problematic every once in
a while. Sometimes it's nil when you'd want it to non-nil and sometimes
it's the opposite. Sadly it's a global setting and it's not clear how
to make the choice finer grained.
Maybe we could let `permanent-local' be not just a boolean but also
something else that would describe which *values* are permanent local
and which aren't. So we could set buffer-save-without-query to either
t (not permanent-local) or `permanent' (behaves like t, but is
permanent-local).
In the case of buffer-save-without-query, I haven't seen enough uses to
know what we should do: the only use I see (in type-break.el) shouldn't
care either way.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-21 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 16:30 permanent-local David Reitter
2008-05-21 17:44 ` permanent-local Stefan Monnier
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.