aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2011-06-09 16:22:06 -0400
committerGlenn Morris2011-06-09 16:22:06 -0400
commitf0da764a5c9bd61df5892ea9a377ab677dd5b612 (patch)
tree2692a858baa956e5ddec99c543d1a53cde2566f9 /doc
parent59f623b770909ad4d0e71ccedbcbdcabfbe2abc1 (diff)
downloademacs-f0da764a5c9bd61df5892ea9a377ab677dd5b612.tar.gz
emacs-f0da764a5c9bd61df5892ea9a377ab677dd5b612.zip
Allow/recommend explicit args for minor-modes in file local eval:s.
* lisp/files.el (hack-one-local-variable-eval-safep): Allow minor-modes with explicit +/-1 arguments. * doc/emacs/custom.texi (Specifying File Variables): Recommend explicit arguments for minor modes. * etc/NEWS: Likewise. * lisp/doc-view.el, lisp/net/soap-client.el: Update file locals.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/custom.texi2
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 6e69a96a2a8..8853eb099d6 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12011-06-09 Glenn Morris <rgm@gnu.org>
2
3 * custom.texi (Specifying File Variables):
4 Recommend explicit arguments for minor modes.
5
12011-06-02 Paul Eggert <eggert@cs.ucla.edu> 62011-06-02 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Document wide integers better. 8 Document wide integers better.
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index a0dce5b3216..434c574ac42 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -1215,7 +1215,7 @@ other context has no special meaning.
1215well as the major modes; in fact, you can use it more than once, first 1215well as the major modes; in fact, you can use it more than once, first
1216to set the major mode and then to enable minor modes which are 1216to set the major mode and then to enable minor modes which are
1217specific to particular buffers. Using @code{mode} for minor modes 1217specific to particular buffers. Using @code{mode} for minor modes
1218is deprecated, though---instead, use @code{eval: (minor-mode)}. 1218is deprecated, though---instead, use @code{eval: (minor-mode 1)}.
1219 1219
1220 Often, however, it is a mistake to enable minor modes in file local 1220 Often, however, it is a mistake to enable minor modes in file local
1221variables. Most minor modes, like Auto Fill mode, represent individual user 1221variables. Most minor modes, like Auto Fill mode, represent individual user