aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-16 21:16:27 +0000
committerRichard M. Stallman1997-08-16 21:16:27 +0000
commit105ef6bf251099563f3e1361430b6e1270db7c91 (patch)
treeb84fbb26a9494be1908d8316b71e831128136801
parent8dc586a7a6f67a9a8e30ba8ef6e6b74382721349 (diff)
downloademacs-105ef6bf251099563f3e1361430b6e1270db7c91.tar.gz
emacs-105ef6bf251099563f3e1361430b6e1270db7c91.zip
(quail-guidance-buf): Now a permanent local.
(quail-update-guidance, quail-show-guidance-buf): Test input-method-verbose-flag. (quail-setup-overlays): Underline quail-conv-overlay only if input-method-highlight-flag is non-nil.
-rw-r--r--lisp/international/quail.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 1e9ac927846..022b251caf8 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -48,7 +48,7 @@
48;; Buffer local variables 48;; Buffer local variables
49 49
50(defvar quail-current-package nil 50(defvar quail-current-package nil
51 "The current Quail package to input multilingual text in Quail minor mode. 51 "The current Quail package, which depends on the current input method.
52See the documentation of `quail-package-alist' for the format.") 52See the documentation of `quail-package-alist' for the format.")
53(make-variable-buffer-local 'quail-current-package) 53(make-variable-buffer-local 'quail-current-package)
54(put 'quail-current-package 'permanent-local t) 54(put 'quail-current-package 'permanent-local t)
@@ -62,6 +62,7 @@ See the documentation of `quail-package-alist' for the format.")
62;; Each buffer in which Quail is activated should use different 62;; Each buffer in which Quail is activated should use different
63;; guidance buffers. 63;; guidance buffers.
64(make-variable-buffer-local 'quail-guidance-buf) 64(make-variable-buffer-local 'quail-guidance-buf)
65(put 'quail-guidance-buf 'permanent-local t)
65 66
66;; A main window showing Quail guidance buffer. 67;; A main window showing Quail guidance buffer.
67(defvar quail-guidance-win nil) 68(defvar quail-guidance-win nil)
@@ -440,7 +441,8 @@ vs. corresponding command to be called."
440 (if (overlayp quail-conv-overlay) 441 (if (overlayp quail-conv-overlay)
441 (move-overlay quail-conv-overlay pos pos) 442 (move-overlay quail-conv-overlay pos pos)
442 (setq quail-conv-overlay (make-overlay pos pos nil nil t)) 443 (setq quail-conv-overlay (make-overlay pos pos nil nil t))
443 (overlay-put quail-conv-overlay 'face 'underline) 444 (if input-method-highlight-flag
445 (overlay-put quail-conv-overlay 'face 'underline))
444 ;;(overlay-put quail-conv-overlay 'modification-hooks 446 ;;(overlay-put quail-conv-overlay 'modification-hooks
445 ;;'(quail-conv-overlay-modification-hook)) 447 ;;'(quail-conv-overlay-modification-hook))
446 ))) 448 )))
@@ -610,7 +612,8 @@ We assume there are six rows and each row has 15 keys (columns),
610 the sixth row is below the `z' - `/' row. 612 the sixth row is below the `z' - `/' row.
611Nth (N is even) and (N+1)th characters in the string are non-shifted 613Nth (N is even) and (N+1)th characters in the string are non-shifted
612 and shifted characters respectively at the same location. 614 and shifted characters respectively at the same location.
613The location of Nth character is row (N / 30) and column ((N mod 30) / 2).") 615The location of Nth character is row (N / 30) and column ((N mod 30) / 2).
616The command `quail-set-keyboard-layout' usually sets this variable.")
614 617
615(defconst quail-keyboard-layout-len 180) 618(defconst quail-keyboard-layout-len 180)
616 619
@@ -1354,7 +1357,7 @@ The buffer is normally displayed at the echo area,
1354but if the current buffer is a minibuffer, it is shown in 1357but if the current buffer is a minibuffer, it is shown in
1355the bottom-most ordinary window of the same frame, 1358the bottom-most ordinary window of the same frame,
1356or in a newly created frame (if the selected frame has no other windows)." 1359or in a newly created frame (if the selected frame has no other windows)."
1357 (if (and input-method-tersely-flag 1360 (if (and (not input-method-verbose-flag)
1358 (eq (selected-window) (minibuffer-window))) 1361 (eq (selected-window) (minibuffer-window)))
1359 ;; We don't need the guidance buffer. 1362 ;; We don't need the guidance buffer.
1360 nil 1363 nil
@@ -1433,7 +1436,7 @@ or in a newly created frame (if the selected frame has no other windows)."
1433(defun quail-update-guidance () 1436(defun quail-update-guidance ()
1434 "Update the Quail guidance buffer and completion buffer (if displayed now)." 1437 "Update the Quail guidance buffer and completion buffer (if displayed now)."
1435 ;; Update guidance buffer. 1438 ;; Update guidance buffer.
1436 (if (or (null input-method-tersely-flag) 1439 (if (or input-method-verbose-flag
1437 (not (eq (selected-window) (minibuffer-window)))) 1440 (not (eq (selected-window) (minibuffer-window))))
1438 (let ((guidance (quail-guidance))) 1441 (let ((guidance (quail-guidance)))
1439 (cond ((eq guidance t) 1442 (cond ((eq guidance t)