all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Turning on minor modes in File Variables
Date: Tue, 07 Jun 2011 19:06:04 +0200	[thread overview]
Message-ID: <87k4cxr2pv.fsf@web.de> (raw)

Hello

There was a plan to make minor modes always turn on if invoked
interactively without prefix arg (Subject "turning on minor modes from
hooks", 2009 in emacs-devel).  What's the current state there?

I guess there wasn't any change, `define-minor-mode' in `easy-mmode.el'
in trunk looks unchanged.


I ask because if I want to turn on a mode automatically in a file, like
this:


;; Local Variables:
;; mode: TeX-PDF
;; End:


Then the mode will actually being turned off if it was already enabled
(in my example it is already enabled because I use
`TeX-global-PDF-mode').

I think that's not what the user expects.  At least, the Info pages in
my Emacs 23.3 (Customization > Variables > File Variables > Specifying
File Variables) say

   Some "variable names" have special meanings in a local variables
list:

   * `mode' enables the specified major or minor mode.

[...]



Michael.



             reply	other threads:[~2011-06-07 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07 17:06 Michael Heerdegen [this message]
2011-06-07 18:22 ` Turning on minor modes in File Variables Stefan Monnier

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=87k4cxr2pv.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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.