Skip to content

Commit

Permalink
Use lexical-binding in lisp/{term,nxml,language}
Browse files Browse the repository at this point in the history
* test/lisp/electric-tests.el:
* lisp/term/w32console.el:
* lisp/nxml/rng-util.el:
* leim/leim-ext.el: Use lexical-binding.

* lisp/international/titdic-cnv.el (tit-process-header)
(miscdic-convert):
* lisp/international/mule-cmds.el (leim-list-header):
* lisp/international/ja-dic-cnv.el (skkdic-convert):
Use lexical-binding in the generated file.
  • Loading branch information
monnier committed Jan 28, 2021
1 parent 0120f45 commit 62233c9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
12 changes: 6 additions & 6 deletions leim/leim-ext.el
@@ -1,4 +1,4 @@
;; leim-ext.el -- extra leim configuration -*- coding:utf-8; -*-
;; leim-ext.el -- extra leim configuration -*- lexical-binding: t; -*-

;; Copyright (C) 2004-2021 Free Software Foundation, Inc.
;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Expand Down Expand Up @@ -39,13 +39,13 @@
(eval-after-load "quail/Punct-b5"
'(quail-defrule " " ?  nil t))

(register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+"
(register-input-method "ucs" "UTF-8" #'ucs-input-activate "U+"
"Unicode input as hex in the form Uxxxx.")

(register-input-method
"korean-hangul"
"UTF-8"
'hangul-input-method-activate
#'hangul-input-method-activate
"한2"
"Hangul 2-Bulsik Input"
'hangul2-input-method
Expand All @@ -54,7 +54,7 @@
(register-input-method
"korean-hangul3f"
"UTF-8"
'hangul-input-method-activate
#'hangul-input-method-activate
"한3f"
"Hangul 3-Bulsik final Input"
'hangul3-input-method
Expand All @@ -63,7 +63,7 @@
(register-input-method
"korean-hangul390"
"UTF-8"
'hangul-input-method-activate
#'hangul-input-method-activate
"한390"
"Hangul 3-Bulsik 390 Input"
'hangul390-input-method
Expand All @@ -72,7 +72,7 @@
(register-input-method
"korean-hangul3"
"UTF-8"
'hangul-input-method-activate
#'hangul-input-method-activate
"한390"
"Hangul 3-Bulsik 390 Input"
'hangul390-input-method
Expand Down
3 changes: 2 additions & 1 deletion lisp/international/ja-dic-cnv.el
Expand Up @@ -342,7 +342,8 @@ The name of generated file is specified by the variable `ja-dic-filename'."
(with-current-buffer buf
(erase-buffer)
(buffer-disable-undo)
(insert ";;; ja-dic.el --- dictionary for Japanese input method\n"
(insert ";;; ja-dic.el --- dictionary for Japanese input method"
" -*- lexical-binding:t -*-\n"
";;\tGenerated by the command `skkdic-convert'\n"
";;\tOriginal SKK dictionary file: "
(file-relative-name (expand-file-name filename) dirname)
Expand Down
2 changes: 1 addition & 1 deletion lisp/international/mule-cmds.el
Expand Up @@ -1279,7 +1279,7 @@ in the format of Lisp expression for registering each input method.
Emacs loads this file at startup time.")

(defconst leim-list-header (format-message
";;; %s -- list of LEIM (Library of Emacs Input Method) -*-coding: utf-8;-*-
";;; %s --- list of LEIM (Library of Emacs Input Method) -*- lexical-binding:t -*-
;;
;; This file is automatically generated.
;;
Expand Down
2 changes: 1 addition & 1 deletion lisp/international/quail.el
Expand Up @@ -3013,7 +3013,7 @@ of each directory."

;; At first, clean up the file.
(with-current-buffer list-buf
(goto-char 1)
(goto-char (point-min))

;; Insert the correct header.
(if (looking-at (regexp-quote leim-list-header))
Expand Down
4 changes: 4 additions & 0 deletions lisp/international/titdic-cnv.el
Expand Up @@ -269,6 +269,8 @@ SPC, 6, 3, 4, or 7 specifying a tone (SPC:陰平, 6:陽平, 3:上聲, 4:去聲,
(tit-moveleft ",<")
(tit-keyprompt nil))

(princ (format ";;; %s -*- lexical-binding:t -*-\n"
(file-name-nondirectory filename)))
(princ ";; Quail package `")
(princ package)
(princ "\n")
Expand Down Expand Up @@ -1133,6 +1135,8 @@ the generated Quail package is saved."
;; Explicitly set eol format to `unix'.
(setq coding-system-for-write 'utf-8-unix)
(with-temp-file (expand-file-name quailfile dirname)
(insert (format ";;; %s -*- lexical-binding:t -*-\n"
(file-name-nondirectory quailfile)))
(insert (format-message ";; Quail package `%s'\n" name))
(insert (format-message
";; Generated by the command `miscdic-convert'\n"))
Expand Down
2 changes: 1 addition & 1 deletion lisp/nxml/rng-util.el
@@ -1,4 +1,4 @@
;;; rng-util.el --- utility functions for RELAX NG library
;;; rng-util.el --- utility functions for RELAX NG library -*- lexical-binding: t; -*-

;; Copyright (C) 2003, 2007-2021 Free Software Foundation, Inc.

Expand Down
2 changes: 1 addition & 1 deletion lisp/term/w32console.el
@@ -1,4 +1,4 @@
;;; w32console.el -- Setup w32 console keys and colors.
;;; w32console.el -- Setup w32 console keys and colors. -*- lexical-binding: t; -*-

;; Copyright (C) 2007-2021 Free Software Foundation, Inc.

Expand Down
2 changes: 1 addition & 1 deletion test/lisp/electric-tests.el
@@ -1,4 +1,4 @@
;;; electric-tests.el --- tests for electric.el
;;; electric-tests.el --- tests for electric.el -*- lexical-binding: t; -*-

;; Copyright (C) 2013-2021 Free Software Foundation, Inc.

Expand Down

0 comments on commit 62233c9

Please sign in to comment.