+2011-06-09 Glenn Morris <rgm@gnu.org>
+
+ * custom.texi (Specifying File Variables):
+ Recommend explicit arguments for minor modes.
+
2011-06-02 Paul Eggert <eggert@cs.ucla.edu>
Document wide integers better.
well as the major modes; in fact, you can use it more than once, first
to set the major mode and then to enable minor modes which are
specific to particular buffers. Using @code{mode} for minor modes
-is deprecated, though---instead, use @code{eval: (minor-mode)}.
+is deprecated, though---instead, use @code{eval: (minor-mode 1)}.
Often, however, it is a mistake to enable minor modes in file local
variables. Most minor modes, like Auto Fill mode, represent individual user
+++
** The use of a "mode: minor" specification in a file local variables section
-to enable a minor-mode is deprecated. Instead, use "eval: (minor-mode)".
+to enable a minor-mode is deprecated. Instead, use "eval: (minor-mode 1)".
** The standalone programs lib-src/digest-doc and sorted-doc have been
replaced with Lisp commands `doc-file-to-man' and `doc-file-to-info'.
+2011-06-09 Glenn Morris <rgm@gnu.org>
+
+ * files.el (hack-one-local-variable-eval-safep):
+ Allow minor-modes with explicit +/-1 arguments.
+
2011-06-09 Teodor Zlatanov <tzz@lifelogs.com>
* term/xterm.el (xterm): Add defgroup.
(provide 'doc-view)
;; Local Variables:
-;; eval: (outline-minor-mode)
+;; eval: (outline-minor-mode 1)
;; End:
;;; doc-view.el ends here
;; Look for -*-MODENAME-*- or -*- ... mode: MODENAME; ... -*-
(let (end done mode modes)
;; Once we drop the deprecated feature where mode: is also allowed to
- ;; specify minor-modes (ie, there can be more than one "mode:), we can
+ ;; specify minor-modes (ie, there can be more than one "mode:"), we can
;; remove this section and just let (hack-local-variables t) handle it.
;; Find a -*- mode tag.
(save-excursion
(and (symbolp (car exp))
;; Allow (minor)-modes calls with no arguments.
;; This obsoletes the use of "mode:" for such things. (Bug#8613)
- (or (and (null (cdr exp))
+ (or (and (member (cdr exp) '(nil (1) (-1)))
(string-match "-mode\\'" (symbol-name (car exp))))
(let ((prop (get (car exp) 'safe-local-eval-function)))
(cond ((eq prop t)
\f
;;; Local Variables:
-;;; eval: (outline-minor-mode)
+;;; eval: (outline-minor-mode 1)
;;; outline-regexp: ";;;;+"
;;; End: