unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Leo <sdl.web@gmail.com>
Cc: 4664@emacsbugs.donarmstrong.com
Subject: bug#4664: 23.1.50; local variables completions
Date: Tue, 13 Oct 2009 15:52:36 -0400	[thread overview]
Message-ID: <jwv3a5ndqne.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <xbaihbu3ilvc.fsf@cam.ac.uk> (Leo's message of "Tue, 13 Oct 2009 12:17:27 +0100")

>> I've excluded minor modes from completion intentionally because the manual
>> says in (info "(emacs) Specifying File Variables"):

I'm not sure it's a good idea to remove them from completions.

>> You can use the `mode' "variable" to set minor modes as well as the
>> major modes; in fact, you can use it more than once, first to set the
>> major mode and then to set minor modes which are specific to particular
>> buffers.  But most minor modes should not be specified in the file at
>> all, because they represent user preferences.

> I wonder if this is a bit silly.

Which part is silly?  The above text simply describes things as they
stand, without forcing any particular choice.

> Whether it is user preferences should be left for the users who are
> editing that file to decide.

Which it is.  We simply added the note about minor modes (which is
actually not specific to minor modes, it also holds for many plain
variables), because it has been found to be a common misuse.

> For example, if Will Smith and I are editing the same file and I want
> to enable outline-minor-mode in the local variables, I will consult
> him before enabling it.

That's fine.  A very common situation is a file that you're the sole
author, so you put any random personal setting in there without having
to worry about asking Will.  And then you publish it on the web (e.g. it
could be an Elisp package), so anybody who opens it in Emacs gets your
preferences imposed on himself while viewing your file.

> Leo's Emacs uptime: 17 minutes, 0 seconds

17 minutes and counting... how's that for impressive?!


        Stefan





  reply	other threads:[~2009-10-13 19:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <xbaipr8yncbp.fsf@cam.ac.uk>
2009-10-07 11:15 ` bug#4664: 23.1.50; local variables completions Leo
2009-10-07 14:34   ` Stefan Monnier
     [not found]     ` <87pr8yanj1.fsf@mail.jurta.org>
2009-10-08  1:10       ` Stefan Monnier
2009-10-08  6:54         ` Leo
2009-10-08  9:22           ` Juri Linkov
2009-10-08 11:58             ` Leo
2009-10-09 19:26             ` Stefan Monnier
2009-10-11 23:54               ` Juri Linkov
2009-10-12 15:49                 ` Leo
2009-10-12 20:31                   ` Juri Linkov
2009-10-13 11:17                     ` Leo
2009-10-13 19:52                       ` Stefan Monnier [this message]
2009-10-13 22:35                         ` Juri Linkov
2009-10-14  1:16                           ` Leo
2009-10-07 21:15   ` bug#4664: marked as done (23.1.50; local variables completions) Emacs bug Tracking System

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=jwv3a5ndqne.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=4664@emacsbugs.donarmstrong.com \
    --cc=sdl.web@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 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).