diff options
| author | Stefan Kangas | 2020-05-02 22:50:14 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-05-02 22:50:14 +0200 |
| commit | 4be16866b959dd173e4016b8a16590093686e1f1 (patch) | |
| tree | 6e144258afd69ecec5caac037ef0bc9834b719bf | |
| parent | 11fd01c9941cc9fcf760750a7e287edae02779c9 (diff) | |
| download | emacs-4be16866b959dd173e4016b8a16590093686e1f1.tar.gz emacs-4be16866b959dd173e4016b8a16590093686e1f1.zip | |
Use lexical-binding for some term libraries
This takes care of the most trivial cases, but there are more that
could be easily converted.
* lisp/term/bobcat.el:
* lisp/term/cygwin.el:
* lisp/term/konsole.el:
* lisp/term/linux.el:
* lisp/term/vt100.el:
* lisp/term/vt200.el: Use lexical-binding.
| -rw-r--r-- | lisp/term/bobcat.el | 1 | ||||
| -rw-r--r-- | lisp/term/cygwin.el | 2 | ||||
| -rw-r--r-- | lisp/term/konsole.el | 2 | ||||
| -rw-r--r-- | lisp/term/linux.el | 2 | ||||
| -rw-r--r-- | lisp/term/vt100.el | 2 | ||||
| -rw-r--r-- | lisp/term/vt200.el | 2 |
6 files changed, 7 insertions, 4 deletions
diff --git a/lisp/term/bobcat.el b/lisp/term/bobcat.el index a32da6ae8f2..983c8cded2f 100644 --- a/lisp/term/bobcat.el +++ b/lisp/term/bobcat.el | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | ;;; bobcat.el -*- lexical-binding:t -*- | ||
| 1 | 2 | ||
| 2 | (defun terminal-init-bobcat () | 3 | (defun terminal-init-bobcat () |
| 3 | "Terminal initialization function for bobcat." | 4 | "Terminal initialization function for bobcat." |
diff --git a/lisp/term/cygwin.el b/lisp/term/cygwin.el index edc64b4404d..8f0d751cf29 100644 --- a/lisp/term/cygwin.el +++ b/lisp/term/cygwin.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; cygwin.el --- support for the Cygwin terminal | 1 | ;;; cygwin.el --- support for the Cygwin terminal -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;;; The Cygwin terminal can't really display underlines. | 3 | ;;; The Cygwin terminal can't really display underlines. |
| 4 | 4 | ||
diff --git a/lisp/term/konsole.el b/lisp/term/konsole.el index 8b2e7e1d5f8..4af818b4a63 100644 --- a/lisp/term/konsole.el +++ b/lisp/term/konsole.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; konsole.el --- terminal initialization for konsole | 1 | ;;; konsole.el --- terminal initialization for konsole -*- lexical-binding:t -*- |
| 2 | ;; Copyright (C) 2017-2020 Free Software Foundation, Inc. | 2 | ;; Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | (require 'term/xterm) | 4 | (require 'term/xterm) |
diff --git a/lisp/term/linux.el b/lisp/term/linux.el index 70730dc5844..35bd3ac0acb 100644 --- a/lisp/term/linux.el +++ b/lisp/term/linux.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;; The Linux console handles Latin-1 by default. | 1 | ;; The Linux console handles Latin-1 by default. -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | (declare-function gpm-mouse-enable "t-mouse" ()) | 3 | (declare-function gpm-mouse-enable "t-mouse" ()) |
| 4 | 4 | ||
diff --git a/lisp/term/vt100.el b/lisp/term/vt100.el index 7ddbe38a287..2df14145231 100644 --- a/lisp/term/vt100.el +++ b/lisp/term/vt100.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; vt100.el --- define VT100 function key sequences in function-key-map | 1 | ;;; vt100.el --- define VT100 function key sequences in function-key-map -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1989, 1993, 2001-2020 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1989, 1993, 2001-2020 Free Software Foundation, Inc. |
| 4 | 4 | ||
diff --git a/lisp/term/vt200.el b/lisp/term/vt200.el index dde2e229068..569b79e25a1 100644 --- a/lisp/term/vt200.el +++ b/lisp/term/vt200.el | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | ;;; vt200.el -*- lexical-binding:t -*- | ||
| 2 | |||
| 1 | ;; For our purposes we can treat the vt200 and vt100 almost alike. | 3 | ;; For our purposes we can treat the vt200 and vt100 almost alike. |
| 2 | ;; Most differences are handled by the termcap entry. | 4 | ;; Most differences are handled by the termcap entry. |
| 3 | (defun terminal-init-vt200 () | 5 | (defun terminal-init-vt200 () |