mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-30 19:53:09 +00:00
(auto-fill-function): Mark it as safe for nil.
Suggested by Leo Liu <sdl.web@gmail.com>.
This commit is contained in:
parent
4a87f93e3f
commit
74ab01ffd8
@ -1,18 +1,21 @@
|
||||
2009-04-02 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* simple.el (auto-fill-function): Mark it as safe for nil.
|
||||
Suggested by Leo <sdl.web@gmail.com>.
|
||||
|
||||
2009-04-01 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* vc-mtn.el (vc-mtn-register): Fix optional arguments.
|
||||
|
||||
* vc-hooks.el (vc-name): Avoid calling vc-backend twice.
|
||||
(vc-mode-line): Accept and use an optional argument for the
|
||||
backend.
|
||||
(vc-mode-line): Accept and use an optional argument for the backend.
|
||||
(vc-find-file-hook): Use when instead of if. Avoid calling
|
||||
vc-backend multiple times, pass down the value computed the first
|
||||
time.
|
||||
vc-backend multiple times, pass down the value computed the first time.
|
||||
|
||||
2009-03-30 Andreas Schwab <schwab@linux-m68k.org>
|
||||
|
||||
* ansi-color.el (ansi-color-get-face): Use
|
||||
ansi-color-parameter-regexp to match parameters.
|
||||
* ansi-color.el (ansi-color-get-face):
|
||||
Use ansi-color-parameter-regexp to match parameters.
|
||||
(ansi-color-regexp): Include final `m' in first group.
|
||||
|
||||
2009-03-30 Jason Rumney <jasonr@gnu.org>
|
||||
|
@ -5008,6 +5008,10 @@ unless optional argument SOFT is non-nil."
|
||||
Some major modes set this.")
|
||||
|
||||
(put 'auto-fill-function :minor-mode-function 'auto-fill-mode)
|
||||
;; `functions' and `hooks' are usually unsafe to set, but setting
|
||||
;; auto-fill-function to nil in a file-local setting is safe and
|
||||
;; can be useful to prevent auto-filling.
|
||||
(put 'auto-fill-function 'safe-local-variable 'null)
|
||||
;; FIXME: turn into a proper minor mode.
|
||||
;; Add a global minor mode version of it.
|
||||
(defun auto-fill-mode (&optional arg)
|
||||
|
Loading…
Reference in New Issue
Block a user