diff options
| -rw-r--r-- | lisp/international/quail.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 3451321f24a..2f275a59dca 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -2289,8 +2289,8 @@ should be made by `quail-build-decode-map' (which see)." | |||
| 2289 | (or (> (length x) (length y)) | 2289 | (or (> (length x) (length y)) |
| 2290 | (and (= (length x) (length y)) | 2290 | (and (= (length x) (length y)) |
| 2291 | (not (string< x y)))))))) | 2291 | (not (string< x y)))))))) |
| 2292 | (let ((frame-width (frame-width (window-frame (get-buffer-window | 2292 | (let ((window-width (window-width (get-buffer-window |
| 2293 | (current-buffer) 'visible)))) | 2293 | (current-buffer) 'visible))) |
| 2294 | (single-key-width 3) | 2294 | (single-key-width 3) |
| 2295 | (single-trans-width 4) | 2295 | (single-trans-width 4) |
| 2296 | (multiple-key-width 3) | 2296 | (multiple-key-width 3) |
| @@ -2319,7 +2319,7 @@ should be made by `quail-build-decode-map' (which see)." | |||
| 2319 | (setq multiple-key-width width))) | 2319 | (setq multiple-key-width width))) |
| 2320 | (when single-list | 2320 | (when single-list |
| 2321 | (setq col-width (+ single-key-width 1 single-trans-width 1) | 2321 | (setq col-width (+ single-key-width 1 single-trans-width 1) |
| 2322 | cols (/ frame-width col-width) | 2322 | cols (/ window-width col-width) |
| 2323 | rows (/ (length single-list) cols)) | 2323 | rows (/ (length single-list) cols)) |
| 2324 | (if (> (% (length single-list) cols) 0) | 2324 | (if (> (% (length single-list) cols) 0) |
| 2325 | (setq rows (1+ rows))) | 2325 | (setq rows (1+ rows))) |
| @@ -2365,7 +2365,7 @@ should be made by `quail-build-decode-map' (which see)." | |||
| 2365 | (lambda (x) | 2365 | (lambda (x) |
| 2366 | (let ((width (if (integerp x) (char-width x) | 2366 | (let ((width (if (integerp x) (char-width x) |
| 2367 | (string-width x)))) | 2367 | (string-width x)))) |
| 2368 | (when (> (+ (current-column) 1 width) frame-width) | 2368 | (when (> (+ (current-column) 1 width) window-width) |
| 2369 | (insert "\n") | 2369 | (insert "\n") |
| 2370 | (indent-to multiple-key-width)) | 2370 | (indent-to multiple-key-width)) |
| 2371 | (insert " " x)))) | 2371 | (insert " " x)))) |
| @@ -2402,7 +2402,7 @@ package to describe." | |||
| 2402 | (with-current-buffer standard-output | 2402 | (with-current-buffer standard-output |
| 2403 | (setq quail-current-package package-def)))) | 2403 | (setq quail-current-package package-def)))) |
| 2404 | ;; Then, insert text in the help buffer while paying attention to | 2404 | ;; Then, insert text in the help buffer while paying attention to |
| 2405 | ;; the width of the frame in which the buffer displayed. | 2405 | ;; the width of the window in which the buffer displayed. |
| 2406 | (with-current-buffer (help-buffer) | 2406 | (with-current-buffer (help-buffer) |
| 2407 | (setq buffer-read-only nil) | 2407 | (setq buffer-read-only nil) |
| 2408 | (insert "Input method: " (quail-name) | 2408 | (insert "Input method: " (quail-name) |