diff options
| author | Stefan Monnier | 2017-12-22 22:34:15 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2017-12-22 22:34:15 -0500 |
| commit | 57d54a0edd0c59fbd09efd826db1ef2b3f41b902 (patch) | |
| tree | 5a60db6ae8ca2acf316e62ea2e9e7b840801a3e6 | |
| parent | 4ee066381cfe941f58040c117fec83a9712cc80a (diff) | |
| download | emacs-57d54a0edd0c59fbd09efd826db1ef2b3f41b902.tar.gz emacs-57d54a0edd0c59fbd09efd826db1ef2b3f41b902.zip | |
* 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.
| -rw-r--r-- | lisp/textmodes/fill.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 96023265b03..d218db0fac1 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." | |||
| 128 | :type 'regexp | 128 | :type 'regexp |
| 129 | :group 'fill) | 129 | :group 'fill) |
| 130 | 130 | ||
| 131 | (defcustom adaptive-fill-function nil | 131 | (defcustom adaptive-fill-function #'ignore |
| 132 | "Function to call to choose a fill prefix for a paragraph, or nil. | 132 | "Function to call to choose a fill prefix for a paragraph. |
| 133 | A nil value means the function has not determined the fill prefix." | 133 | A nil return value means the function has not determined the fill prefix." |
| 134 | :type '(choice (const nil) function) | 134 | :version "27.1" |
| 135 | :type 'function | ||
| 135 | :group 'fill) | 136 | :group 'fill) |
| 136 | 137 | ||
| 137 | (defvar fill-indent-according-to-mode nil ;Screws up CC-mode's filling tricks. | 138 | (defvar fill-indent-according-to-mode nil ;Screws up CC-mode's filling tricks. |