unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: emacs-devel@gnu.org
Subject: Re: Behaviour of add-file-local-variable?
Date: Wed, 19 Oct 2011 12:39:34 +0300	[thread overview]
Message-ID: <871uu9e2w9.fsf@mail.jurta.org> (raw)
In-Reply-To: <81ipnltl3x.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 19 Oct 2011 14:27:06 +0530")

> Should add-file-local-variable also set the variable immediately rather
> than merely updating the file footer?

While keeping text in the Local Variables section in sync with actual
values looks like the right thing to do, it raises related questions
that are more difficult to decide:

Should `M-x add-file-local-variable RET mode RET' also change current mode?

Should `M-x add-file-local-variable RET coding RET' also change the
current buffer coding?

Should `M-x add-file-local-variable RET eval RET' evaluate the added expression?

Should `delete-file-local-variable' return the previous buffer-local value
or revert to the global value?

Should `add-dir-local-variable' after modifying .dir-locals.el
also update values in all visited file buffers in all subdirectories?



  reply	other threads:[~2011-10-19  9:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19  8:57 Behaviour of add-file-local-variable? Jambunathan K
2011-10-19  9:39 ` Juri Linkov [this message]
2011-10-20  4:21   ` Jambunathan K
2011-10-20 13:13     ` Stefan Monnier
2011-10-21  0:01       ` Nix

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871uu9e2w9.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).