diff options
author | Phil Sainty <psainty@orcon.net.nz> | 2017-10-21 11:17:56 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-10-21 11:17:56 +0300 |
commit | 0d8e4f45d612ecd77f4997fae30e4d1591f9b8a6 (patch) | |
tree | 72c3d41f678300c07d799d7942ca6b2d8cce6d9d /test/lisp/emacs-lisp/cl-macs-tests.el | |
parent | 79d57f4b7a8dc0d0cd213ce5989886cc9fc9b7f3 (diff) | |
download | emacs-0d8e4f45d612ecd77f4997fae30e4d1591f9b8a6.tar.gz emacs-0d8e4f45d612ecd77f4997fae30e4d1591f9b8a6.tar.bz2 emacs-0d8e4f45d612ecd77f4997fae30e4d1591f9b8a6.zip |
Avoid creating inconsistent buffer states in term-char-mode
* lisp/term.el (term-mode, term-char-mode, term-line-mode)
(term-emulate-terminal): Make buffer read-only in 'term-char-mode',
except for the process filter's output. Use 'read-only-mode-hook' to
track and restore the user-set state of 'buffer-read-only' for
'term-line-mode'. (Bug#24837)
(term-char-mode-buffer-read-only): New user option.
(term-line-mode-buffer-read-only): New buffer-local variable.
(term-line-mode-buffer-read-only-update): New function.
(term-char-mode, term-line-mode): Use 'term-set-goto-process-mark'
in pre-command-hook, and 'term-goto-process-mark-maybe' in
post-command-hook to counter-act unexpected changes to point when
using 'term-char-mode'.
(term-char-mode-point-at-process-mark): New user option.
(term-goto-process-mark): New buffer-local variable.
(term-set-goto-process-mark): New function.
(term-goto-process-mark-maybe): New function.
(term-process-mark): New function.
* etc/NEWS: Mention the new behavior and user options.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-macs-tests.el')
0 files changed, 0 insertions, 0 deletions