]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/text-mode.el
* doc/lispref/modes.texi (Example Major Modes): Update Lisp example code
[gnu-emacs] / lisp / textmodes / text-mode.el
index 098a545568c355be3417c6f30148fb4cf3c80be8..30e5390a3e176c3f0293ff1db809cf3309c89ae2 100644 (file)
@@ -63,8 +63,7 @@ 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'."
-  (make-local-variable 'text-mode-variant)
-  (setq text-mode-variant t)
+  (set (make-local-variable 'text-mode-variant) t)
   (set (make-local-variable 'require-final-newline)
        mode-require-final-newline)
   (set (make-local-variable 'indent-line-function) 'indent-relative))