From: Basil L. Contovounesios Date: Mon, 25 Mar 2019 23:10:59 +0000 (+0000) Subject: Do not set indent-line-function in text-mode X-Git-Tag: emacs-27.0.90~3288 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=63471c837dde50179f3c7bb6d316d61160e9e825;p=emacs.git 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. --- diff --git a/etc/NEWS b/etc/NEWS index 89e07a2f4df..836dd2bb1a8 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -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 diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el index 61144902083..e676a5dae20 100644 --- a/lisp/textmodes/text-mode.el +++ b/lisp/textmodes/text-mode.el @@ -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)))