all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: David Reitter <david.reitter@gmail.com>
Cc: emacs- devel <emacs-devel@gnu.org>
Subject: Re: permanent-local
Date: Wed, 21 May 2008 13:44:14 -0400	[thread overview]
Message-ID: <jwvabijpnd7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <8EE46FD1-0A09-498C-BB0A-D19EC3EA0B5C@gmail.com> (David Reitter's message of "Wed, 21 May 2008 17:30:49 +0100")

> 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




      reply	other threads:[~2008-05-21 17:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21 16:30 permanent-local David Reitter
2008-05-21 17:44 ` 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=jwvabijpnd7.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@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.
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.