aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-08-30 23:10:51 -0700
committerPaul Eggert2015-08-30 23:12:31 -0700
commit9ffb6ce9a7b5692f8470ea227e677a16a6654f66 (patch)
tree6eeb83c937fd5023299604916decb38f511a86e0
parentd1729604c4ddb9a5314f3d8a1e0c76536cffad85 (diff)
downloademacs-9ffb6ce9a7b5692f8470ea227e677a16a6654f66.tar.gz
emacs-9ffb6ce9a7b5692f8470ea227e677a16a6654f66.zip
Quoting fixes in lisp/international and lisp/leim
* lisp/international/ccl.el (ccl-dump, ccl-dump-call): * lisp/international/ja-dic-utl.el (skkdic-lookup-key): * lisp/international/mule-cmds.el: (select-safe-coding-system-interactively, leim-list-file-name): * lisp/international/quail.el (quail-use-package, quail-help): * lisp/international/titdic-cnv.el (tit-process-header) (miscdic-convert): Respect text quoting style in doc strings and diagnostics. * lisp/international/quail.el (lisp/international/quail.el): * lisp/leim/quail/ethiopic.el ("ethiopic"): Escape apostrophes in doc strings.
-rw-r--r--lisp/international/ccl.el4
-rw-r--r--lisp/international/ja-dic-utl.el5
-rw-r--r--lisp/international/mule-cmds.el7
-rw-r--r--lisp/international/quail.el27
-rw-r--r--lisp/international/titdic-cnv.el8
-rw-r--r--lisp/leim/quail/ethiopic.el2
6 files changed, 30 insertions, 23 deletions
diff --git a/lisp/international/ccl.el b/lisp/international/ccl.el
index 429c14b5e44..b9cc1633915 100644
--- a/lisp/international/ccl.el
+++ b/lisp/international/ccl.el
@@ -967,7 +967,7 @@ is a list of CCL-BLOCKs."
967 (let ((len (length ccl-code)) 967 (let ((len (length ccl-code))
968 (buffer-mag (aref ccl-code 0))) 968 (buffer-mag (aref ccl-code 0)))
969 (cond ((= buffer-mag 0) 969 (cond ((= buffer-mag 0)
970 (insert "Don't output anything.\n")) 970 (insert "Dont output anything.\n"))
971 ((= buffer-mag 1) 971 ((= buffer-mag 1)
972 (insert "Out-buffer must be as large as in-buffer.\n")) 972 (insert "Out-buffer must be as large as in-buffer.\n"))
973 (t 973 (t
@@ -1127,7 +1127,7 @@ is a list of CCL-BLOCKs."
1127 1127
1128(defun ccl-dump-call (ignore cc) 1128(defun ccl-dump-call (ignore cc)
1129 (let ((subroutine (car (ccl-get-next-code)))) 1129 (let ((subroutine (car (ccl-get-next-code))))
1130 (insert (format "call subroutine `%s'\n" subroutine)))) 1130 (insert (format-message "call subroutine `%s'\n" subroutine))))
1131 1131
1132(defun ccl-dump-write-const-string (rrr cc) 1132(defun ccl-dump-write-const-string (rrr cc)
1133 (if (= rrr 0) 1133 (if (= rrr 0)
diff --git a/lisp/international/ja-dic-utl.el b/lisp/international/ja-dic-utl.el
index 8400c473afa..7005ba85726 100644
--- a/lisp/international/ja-dic-utl.el
+++ b/lisp/international/ja-dic-utl.el
@@ -109,13 +109,14 @@ without okurigana are placed at the head of the returned list."
109 (load-library "ja-dic/ja-dic") 109 (load-library "ja-dic/ja-dic")
110 (error (ding) 110 (error (ding)
111 (with-output-to-temp-buffer "*Help*" 111 (with-output-to-temp-buffer "*Help*"
112 (princ "The library `ja-dic' can't be loaded. 112 (princ (substitute-command-keys "\
113The library `ja-dic' can't be loaded.
113 114
114The most common case is that you have not yet installed the library 115The most common case is that you have not yet installed the library
115included in LEIM (Libraries of Emacs Input Method) which is 116included in LEIM (Libraries of Emacs Input Method) which is
116distributed separately from Emacs. 117distributed separately from Emacs.
117 118
118LEIM is available from the same ftp directory as Emacs.")) 119LEIM is available from the same ftp directory as Emacs.")))
119 (signal (car err) (cdr err))))) 120 (signal (car err) (cdr err)))))
120 121
121 (let ((vec (make-vector len 0)) 122 (let ((vec (make-vector len 0))
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 4ee3b2831e8..5934919d42e 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -744,7 +744,8 @@ e.g., for sending an email message.\n ")
744 (when unsafe 744 (when unsafe
745 (insert (if rejected "The other coding systems" 745 (insert (if rejected "The other coding systems"
746 "However, each of them") 746 "However, each of them")
747 " encountered characters it couldn't encode:\n") 747 (substitute-command-keys
748 " encountered characters it couldn't encode:\n"))
748 (dolist (coding unsafe) 749 (dolist (coding unsafe)
749 (insert (format " %s cannot encode these:" (car coding))) 750 (insert (format " %s cannot encode these:" (car coding)))
750 (let ((i 0) 751 (let ((i 0)
@@ -1285,9 +1286,9 @@ Emacs loads this file at startup time.")
1285;; INPUT-METHOD LANGUAGE-NAME ACTIVATE-FUNC 1286;; INPUT-METHOD LANGUAGE-NAME ACTIVATE-FUNC
1286;; TITLE DESCRIPTION 1287;; TITLE DESCRIPTION
1287;; ARG ...) 1288;; ARG ...)
1288;; See the function `register-input-method' for the meanings of the arguments. 1289;; See the function register-input-method for the meanings of the arguments.
1289;; 1290;;
1290;; If this directory is included in `load-path', Emacs automatically 1291;; If this directory is included in load-path, Emacs automatically
1291;; loads this file at startup time. 1292;; loads this file at startup time.
1292 1293
1293" 1294"
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 8c9d1457634..01676ac4fba 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -252,15 +252,16 @@ This activates input method defined by PACKAGE-NAME by running
252 (with-output-to-temp-buffer "*Help*" 252 (with-output-to-temp-buffer "*Help*"
253 (princ "Quail package \"") 253 (princ "Quail package \"")
254 (princ package-name) 254 (princ package-name)
255 (princ "\" can't be activated\n because library \"") 255 (princ (substitute-command-keys
256 "\" can't be activated\n because library \""))
256 (princ (car libraries)) 257 (princ (car libraries))
257 (princ "\" is not in `load-path'. 258 (princ (substitute-command-keys "\" is not in `load-path'.
258 259
259The most common case is that you have not yet installed appropriate 260The most common case is that you have not yet installed appropriate
260libraries in LEIM (Libraries of Emacs Input Method) which is 261libraries in LEIM (Libraries of Emacs Input Method) which is
261distributed separately from Emacs. 262distributed separately from Emacs.
262 263
263LEIM is available from the same ftp directory as Emacs.")) 264LEIM is available from the same ftp directory as Emacs.")))
264 (error "Can't use the Quail package `%s'" package-name)) 265 (error "Can't use the Quail package `%s'" package-name))
265 (setq libraries (cdr libraries)))))) 266 (setq libraries (cdr libraries))))))
266 (quail-select-package package-name) 267 (quail-select-package package-name)
@@ -625,7 +626,7 @@ While this input method is active, the variable
625 "Standard keyboard layout of printable characters Quail assumes. 626 "Standard keyboard layout of printable characters Quail assumes.
626See the documentation of `quail-keyboard-layout' for this format. 627See the documentation of `quail-keyboard-layout' for this format.
627This layout is almost the same as that of VT100, 628This layout is almost the same as that of VT100,
628 but the location of key \\ (backslash) is just right of key ' (single-quote), 629 but the location of key \\ (backslash) is just right of key \\=' (single-quote),
629 not right of RETURN key.") 630 not right of RETURN key.")
630 631
631(defconst quail-keyboard-layout-len 180) 632(defconst quail-keyboard-layout-len 180)
@@ -2533,35 +2534,37 @@ package to describe."
2533 (let ((done-list nil)) 2534 (let ((done-list nil))
2534 ;; Show keyboard layout if the current package requests it.. 2535 ;; Show keyboard layout if the current package requests it..
2535 (when (quail-show-layout) 2536 (when (quail-show-layout)
2536 (insert " 2537 (insert (substitute-command-keys "
2537KEYBOARD LAYOUT 2538KEYBOARD LAYOUT
2538--------------- 2539---------------
2539This input method works by translating individual input characters. 2540This input method works by translating individual input characters.
2540Assuming that your actual keyboard has the `") 2541Assuming that your actual keyboard has the `"))
2541 (help-insert-xref-button 2542 (help-insert-xref-button
2542 quail-keyboard-layout-type 2543 quail-keyboard-layout-type
2543 'quail-keyboard-layout-button 2544 'quail-keyboard-layout-button
2544 quail-keyboard-layout-type) 2545 quail-keyboard-layout-type)
2545 (insert "' layout, 2546 (insert (substitute-command-keys "' layout,
2546translation results in the following \"virtual\" keyboard layout 2547translation results in the following \"virtual\" keyboard layout
2547\(the labels on the keys indicate what character will be produced 2548\(the labels on the keys indicate what character will be produced
2548by each key, with and without holding Shift): 2549by each key, with and without holding Shift):
2549") 2550"))
2550 (setq done-list 2551 (setq done-list
2551 (quail-insert-kbd-layout quail-keyboard-layout)) 2552 (quail-insert-kbd-layout quail-keyboard-layout))
2552 (insert "If your keyboard has a different layout, rearranged from 2553 (insert (substitute-command-keys "\
2553`") 2554If your keyboard has a different layout, rearranged from
2555`"))
2554 (help-insert-xref-button 2556 (help-insert-xref-button
2555 "standard" 2557 "standard"
2556 'quail-keyboard-layout-button "standard") 2558 'quail-keyboard-layout-button "standard")
2557 (insert "', the \"virtual\" keyboard you get with this input method 2559 (insert (substitute-command-keys "\
2560', the \"virtual\" keyboard you get with this input method
2558will be rearranged in the same way. 2561will be rearranged in the same way.
2559 2562
2560You can set the variable `quail-keyboard-layout-type' to specify 2563You can set the variable `quail-keyboard-layout-type' to specify
2561the physical layout of your keyboard; the tables shown in 2564the physical layout of your keyboard; the tables shown in
2562documentation of input methods including this one are based on the 2565documentation of input methods including this one are based on the
2563physical keyboard layout as specified with that variable. 2566physical keyboard layout as specified with that variable.
2564") 2567"))
2565 (help-insert-xref-button 2568 (help-insert-xref-button
2566 "[customize keyboard layout]" 2569 "[customize keyboard layout]"
2567 'quail-keyboard-customize-button 'quail-keyboard-layout-type) 2570 'quail-keyboard-customize-button 'quail-keyboard-layout-type)
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el
index 1186c7106cc..6a15bc41e50 100644
--- a/lisp/international/titdic-cnv.el
+++ b/lisp/international/titdic-cnv.el
@@ -273,7 +273,8 @@ SPC, 6, 3, 4, or 7 specifying a tone (SPC:$(0?v(N(B, 6:$(0Dm(N(B, 3:$(0&9Vy
273 (princ ";; Quail package `") 273 (princ ";; Quail package `")
274 (princ package) 274 (princ package)
275 (princ "\n") 275 (princ "\n")
276 (princ ";; Generated by the command `titdic-convert'\n") 276 (princ (substitute-command-keys
277 ";; Generated by the command `titdic-convert'\n"))
277 (princ ";;\tOriginal TIT dictionary file: ") 278 (princ ";;\tOriginal TIT dictionary file: ")
278 (princ (file-name-nondirectory filename)) 279 (princ (file-name-nondirectory filename))
279 (princ "\n\n") 280 (princ "\n\n")
@@ -1150,8 +1151,9 @@ the generated Quail package is saved."
1150 (setq coding-system-for-write 1151 (setq coding-system-for-write
1151 (coding-system-change-eol-conversion coding 'unix)) 1152 (coding-system-change-eol-conversion coding 'unix))
1152 (with-temp-file (expand-file-name quailfile dirname) 1153 (with-temp-file (expand-file-name quailfile dirname)
1153 (insert (format ";; Quail package `%s'\n" name)) 1154 (insert (format-message ";; Quail package `%s'\n" name))
1154 (insert ";; Generated by the command `miscdic-convert'\n") 1155 (insert (format-message
1156 ";; Generated by the command `miscdic-convert'\n"))
1155 (insert ";; Source dictionary file: " dicfile "\n") 1157 (insert ";; Source dictionary file: " dicfile "\n")
1156 (insert ";; Copyright notice of the source file\n") 1158 (insert ";; Copyright notice of the source file\n")
1157 (insert ";;------------------------------------------------------\n") 1159 (insert ";;------------------------------------------------------\n")
diff --git a/lisp/leim/quail/ethiopic.el b/lisp/leim/quail/ethiopic.el
index 7a1cddfff23..eaf3a03bafa 100644
--- a/lisp/leim/quail/ethiopic.el
+++ b/lisp/leim/quail/ethiopic.el
@@ -60,7 +60,7 @@ S-SPC or `M-x ethio-insert-ethio-space'
60 Always insert an Ethiopic word separator `፡'. With a prefix number, 60 Always insert an Ethiopic word separator `፡'. With a prefix number,
61 insert that many word separators. 61 insert that many word separators.
62 62
63C-' or `M-x ethio-gemination' 63C-\\=' or `M-x ethio-gemination'
64 Compose the character before the point with the Ethiopic gemination mark. 64 Compose the character before the point with the Ethiopic gemination mark.
65 If the character is already composed, decompose it and remove the 65 If the character is already composed, decompose it and remove the
66 gemination mark." 66 gemination mark."