diff options
| author | Basil L. Contovounesios | 2019-03-31 19:39:54 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-03-31 22:30:12 +0100 |
| commit | 2e3deb09bd42d22a9b354937ce63b151fb493d8a (patch) | |
| tree | 03fd9068e492a0c8cf01fd9390069921b406b6fc /lisp | |
| parent | 4c9950d015fdb520d29f04c6b1eb7418a442fc60 (diff) | |
| download | emacs-2e3deb09bd42d22a9b354937ce63b151fb493d8a.tar.gz emacs-2e3deb09bd42d22a9b354937ce63b151fb493d8a.zip | |
Do not set indent-line-function in text-mode
For discussion, see thread starting at:
https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg01012.html
* lisp/textmodes/text-mode.el (text-mode): Do not reset
indent-line-function to its global default value of indent-relative.
* doc/lispref/modes.texi (Example Major Modes):
* etc/NEWS: Document change accordingly.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/textmodes/text-mode.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el index 90bb3eb3b53..61144902083 100644 --- a/lisp/textmodes/text-mode.el +++ b/lisp/textmodes/text-mode.el | |||
| @@ -105,8 +105,7 @@ You can thus get the full benefit of adaptive filling | |||
| 105 | \\{text-mode-map} | 105 | \\{text-mode-map} |
| 106 | Turning on Text mode runs the normal hook `text-mode-hook'." | 106 | Turning on Text mode runs the normal hook `text-mode-hook'." |
| 107 | (setq-local text-mode-variant t) | 107 | (setq-local text-mode-variant t) |
| 108 | (setq-local require-final-newline mode-require-final-newline) | 108 | (setq-local require-final-newline mode-require-final-newline)) |
| 109 | (setq-local indent-line-function #'indent-relative)) | ||
| 110 | 109 | ||
| 111 | (define-derived-mode paragraph-indent-text-mode text-mode "Parindent" | 110 | (define-derived-mode paragraph-indent-text-mode text-mode "Parindent" |
| 112 | "Major mode for editing text, with leading spaces starting a paragraph. | 111 | "Major mode for editing text, with leading spaces starting a paragraph. |