Do not set indent-line-function in text-mode

* 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.
This commit is contained in:
Basil L. Contovounesios 2019-03-25 23:10:59 +00:00
parent 2e3deb09bd
commit 63471c837d
2 changed files with 7 additions and 2 deletions

View file

@ -1233,6 +1233,11 @@ near the current column in Tabulated Lists (see variables
'tabulated-list-tty-sort-indicator-asc', and
'tabulated-list-tty-sort-indicator-desc').
** Text mode
+++
*** 'text-mode-variant' is now obsolete, use 'derived-mode-p' instead.
* New Modes and Packages in Emacs 27.1

View file

@ -38,8 +38,8 @@
:group 'text)
(defvar text-mode-variant nil
"Non-nil if this buffer's major mode is a variant of Text mode.
Use (derived-mode-p \\='text-mode) instead.")
"Non-nil if this buffer's major mode is a variant of Text mode.")
(make-obsolete-variable 'text-mode-variant 'derived-mode-p "27.1")
(defvar text-mode-syntax-table
(let ((st (make-syntax-table)))