diff options
author | Noam Postavsky <npostavs@gmail.com> | 2018-01-18 08:22:47 -0500 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2018-01-18 22:25:35 -0500 |
commit | 47019a521f774fbd13441e178a6a82c9989b9912 (patch) | |
tree | aa36a88fe09995b83b18ca615d7e7df78690fc27 /lisp/emacs-lisp/advice.el | |
parent | 256bd99a8bfae91a3c91ae20166af45918d1e986 (diff) | |
download | emacs-47019a521f774fbd13441e178a6a82c9989b9912.tar.gz emacs-47019a521f774fbd13441e178a6a82c9989b9912.tar.bz2 emacs-47019a521f774fbd13441e178a6a82c9989b9912.zip |
Switch term.el to lexical binding, and clean up code a bit
* lisp/term.el (term-terminal-state): Remove.
(term-do-line-wrapping): New variable, equivalent to state 1.
(term-terminal-previous-parameter, term-terminal-parameter)
(term-terminal-more-parameters)
(term-terminal-previous-parameter-2)
(term-terminal-previous-parameter-3)
(term-terminal-previous-parameter-4): Remove.
(term-move-to-column): New function, for absolute column movement.
(term-control-seq-regexp, term-control-seq-prefix-regexp): New
constants.
(term-emulate-terminal, term-pager-discard): Use them via string-match
instead of implementing a state machine in elisp. Handle all
unprocessed input via term-terminal-undecoded-bytes (this solves
Bug#17231).
(term-handle-ansi-escape): Take a list of escape sequence parameters
as an argument, rather than via dynamic variables.
(term-erase-in-display): Consult the argument, not the dynamically
bound term-terminal-parameter (which happened to be the same as the
argument up until now).
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
0 files changed, 0 insertions, 0 deletions