diff options
| author | Basil L. Contovounesios | 2019-03-31 19:39:54 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-03-31 22:30:12 +0100 |
| commit | 2e3deb09bd42d22a9b354937ce63b151fb493d8a (patch) | |
| tree | 03fd9068e492a0c8cf01fd9390069921b406b6fc /etc | |
| parent | 4c9950d015fdb520d29f04c6b1eb7418a442fc60 (diff) | |
| download | emacs-2e3deb09bd42d22a9b354937ce63b151fb493d8a.tar.gz emacs-2e3deb09bd42d22a9b354937ce63b151fb493d8a.zip | |
Do not set indent-line-function in text-mode
For discussion, see thread starting at:
https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg01012.html
* 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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -1371,6 +1371,15 @@ ending character were silently omitted. | |||
| 1371 | For example, '(rx (any "@z-a" (?9 . ?0)))' would match '@' only. | 1371 | For example, '(rx (any "@z-a" (?9 . ?0)))' would match '@' only. |
| 1372 | Now, such rx expressions generate an error. | 1372 | Now, such rx expressions generate an error. |
| 1373 | 1373 | ||
| 1374 | +++ | ||
| 1375 | ** 'text-mode' no longer sets the value of 'indent-line-function'. | ||
| 1376 | The global value of 'indent-line-function', which defaults to | ||
| 1377 | 'indent-relative', will no longer be reset locally when turning on | ||
| 1378 | 'text-mode'. | ||
| 1379 | |||
| 1380 | To get back the old behavior, add a function to 'text-mode-hook' which | ||
| 1381 | performs (setq-local indent-line-function #'indent-relative). | ||
| 1382 | |||
| 1374 | 1383 | ||
| 1375 | * Lisp Changes in Emacs 27.1 | 1384 | * Lisp Changes in Emacs 27.1 |
| 1376 | 1385 | ||