[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 57d54a0: * lisp/textmodes/fill.el (adaptive-fill-fu
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master 57d54a0: * lisp/textmodes/fill.el (adaptive-fill-function): Change default |
Date: |
Fri, 22 Dec 2017 22:34:23 -0500 (EST) |
branch: master
commit 57d54a0edd0c59fbd09efd826db1ef2b3f41b902
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/textmodes/fill.el (adaptive-fill-function): Change default
Use 'ignore' rather than nil since they behave identically, except that
'ignore' interacts correctly with add/remove-function.
---
lisp/textmodes/fill.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 9602326..d218db0 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -128,10 +128,11 @@ if it would act as a paragraph-starter on the second
line."
:type 'regexp
:group 'fill)
-(defcustom adaptive-fill-function nil
- "Function to call to choose a fill prefix for a paragraph, or nil.
-A nil value means the function has not determined the fill prefix."
- :type '(choice (const nil) function)
+(defcustom adaptive-fill-function #'ignore
+ "Function to call to choose a fill prefix for a paragraph.
+A nil return value means the function has not determined the fill prefix."
+ :version "27.1"
+ :type 'function
:group 'fill)
(defvar fill-indent-according-to-mode nil ;Screws up CC-mode's filling tricks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 57d54a0: * lisp/textmodes/fill.el (adaptive-fill-function): Change default,
Stefan Monnier <=