1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-14 01:50:22 -08:00

; Improve obsolescence of 'text-mode-variant'

* lisp/textmodes/text-mode.el (text-mode-variant): Improve
obsolescence announcement text.

* doc/lispref/modes.texi (Example Major Modes): Update example.
(Bug#78125).
This commit is contained in:
Eli Zaretskii 2025-04-29 10:09:54 +03:00
parent 4858d81848
commit 9adb05422e
2 changed files with 3 additions and 4 deletions

View file

@ -1509,9 +1509,6 @@ You can thus get the full benefit of adaptive filling
(see the variable `adaptive-fill-mode').
\\@{text-mode-map@}
Turning on Text mode runs the normal hook `text-mode-hook'."
@end group
@group
(setq-local text-mode-variant t)
(setq-local require-final-newline mode-require-final-newline))
@end group
@end smallexample

View file

@ -39,7 +39,9 @@
(defvar text-mode-variant nil
"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")
(make-obsolete-variable 'text-mode-variant
"\
Don't set it, and instead of testing its value use `derived-mode-p'." "27.1")
;; Actually defined in textconv.c.
(defvar text-conversion-style)