diff options
| author | Basil L. Contovounesios | 2019-03-18 23:45:55 +0000 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-03-31 22:27:21 +0100 |
| commit | 4c9950d015fdb520d29f04c6b1eb7418a442fc60 (patch) | |
| tree | 209c3f339546ea11ad206abf91622e2938ba1d5d /doc | |
| parent | 07d7852b00dc0c91f2450856ac27c17eea7a3e1a (diff) | |
| download | emacs-4c9950d015fdb520d29f04c6b1eb7418a442fc60.tar.gz emacs-4c9950d015fdb520d29f04c6b1eb7418a442fc60.zip | |
Use lexical-binding in text-mode.el
* lisp/textmodes/text-mode.el: Use lexical-binding.
(text-mode, paragraph-indent-minor-mode, text-mode-hook-identify):
Use setq-local.
(toggle-text-mode-auto-fill): Quote function symbols as such.
(center-line): Minor simplification.
* doc/lispref/modes.texi (Example Major Modes): Update code example
for these changes to text-mode.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/modes.texi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 1afbc5a5cee..7b64a56b199 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -1291,10 +1291,9 @@ You can thus get the full benefit of adaptive filling | |||
| 1291 | Turning on Text mode runs the normal hook `text-mode-hook'." | 1291 | Turning on Text mode runs the normal hook `text-mode-hook'." |
| 1292 | @end group | 1292 | @end group |
| 1293 | @group | 1293 | @group |
| 1294 | (set (make-local-variable 'text-mode-variant) t) | 1294 | (setq-local text-mode-variant t) |
| 1295 | (set (make-local-variable 'require-final-newline) | 1295 | (setq-local require-final-newline mode-require-final-newline) |
| 1296 | mode-require-final-newline) | 1296 | (setq-local indent-line-function #'indent-relative)) |
| 1297 | (set (make-local-variable 'indent-line-function) 'indent-relative)) | ||
| 1298 | @end group | 1297 | @end group |
| 1299 | @end smallexample | 1298 | @end smallexample |
| 1300 | 1299 | ||