diff options
| author | Paul Eggert | 2015-08-30 23:10:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-30 23:12:31 -0700 |
| commit | 9ffb6ce9a7b5692f8470ea227e677a16a6654f66 (patch) | |
| tree | 6eeb83c937fd5023299604916decb38f511a86e0 | |
| parent | d1729604c4ddb9a5314f3d8a1e0c76536cffad85 (diff) | |
| download | emacs-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.el | 4 | ||||
| -rw-r--r-- | lisp/international/ja-dic-utl.el | 5 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 7 | ||||
| -rw-r--r-- | lisp/international/quail.el | 27 | ||||
| -rw-r--r-- | lisp/international/titdic-cnv.el | 8 | ||||
| -rw-r--r-- | lisp/leim/quail/ethiopic.el | 2 |
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 "Don’t 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 "\ |
| 113 | The library `ja-dic' can't be loaded. | ||
| 113 | 114 | ||
| 114 | The most common case is that you have not yet installed the library | 115 | The most common case is that you have not yet installed the library |
| 115 | included in LEIM (Libraries of Emacs Input Method) which is | 116 | included in LEIM (Libraries of Emacs Input Method) which is |
| 116 | distributed separately from Emacs. | 117 | distributed separately from Emacs. |
| 117 | 118 | ||
| 118 | LEIM is available from the same ftp directory as Emacs.")) | 119 | LEIM 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 | ||
| 259 | The most common case is that you have not yet installed appropriate | 260 | The most common case is that you have not yet installed appropriate |
| 260 | libraries in LEIM (Libraries of Emacs Input Method) which is | 261 | libraries in LEIM (Libraries of Emacs Input Method) which is |
| 261 | distributed separately from Emacs. | 262 | distributed separately from Emacs. |
| 262 | 263 | ||
| 263 | LEIM is available from the same ftp directory as Emacs.")) | 264 | LEIM 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. |
| 626 | See the documentation of `quail-keyboard-layout' for this format. | 627 | See the documentation of `quail-keyboard-layout' for this format. |
| 627 | This layout is almost the same as that of VT100, | 628 | This 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 " |
| 2537 | KEYBOARD LAYOUT | 2538 | KEYBOARD LAYOUT |
| 2538 | --------------- | 2539 | --------------- |
| 2539 | This input method works by translating individual input characters. | 2540 | This input method works by translating individual input characters. |
| 2540 | Assuming that your actual keyboard has the `") | 2541 | Assuming 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, |
| 2546 | translation results in the following \"virtual\" keyboard layout | 2547 | translation 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 |
| 2548 | by each key, with and without holding Shift): | 2549 | by 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 | `") | 2554 | If 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 | ||
| 2558 | will be rearranged in the same way. | 2561 | will be rearranged in the same way. |
| 2559 | 2562 | ||
| 2560 | You can set the variable `quail-keyboard-layout-type' to specify | 2563 | You can set the variable `quail-keyboard-layout-type' to specify |
| 2561 | the physical layout of your keyboard; the tables shown in | 2564 | the physical layout of your keyboard; the tables shown in |
| 2562 | documentation of input methods including this one are based on the | 2565 | documentation of input methods including this one are based on the |
| 2563 | physical keyboard layout as specified with that variable. | 2566 | physical 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 | ||
| 63 | C-' or `M-x ethio-gemination' | 63 | C-\\=' 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." |