aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-11-14 11:46:44 +0000
committerKenichi Handa2000-11-14 11:46:44 +0000
commitf0c968ff81ac65dcc461da69e3a9be170cd073dd (patch)
tree1b6bda5874ff28ef56878a6b3caa873acf48f036
parent87eb48b95ed802f40a382ed06f14d2ac69d94782 (diff)
downloademacs-f0c968ff81ac65dcc461da69e3a9be170cd073dd.tar.gz
emacs-f0c968ff81ac65dcc461da69e3a9be170cd073dd.zip
(quail-show-guidance-buf): Call fit-window-to-buffer to assure the
enough height of the guidance buffer. (quail-update-guidance): Avoid making the guidance buffer shorter.
-rw-r--r--lisp/international/quail.el17
1 files changed, 7 insertions, 10 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 32b0c3d635d..e3fae04f161 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -532,7 +532,7 @@ While this input method is active, the variable
532 (setq describe-current-input-method-function nil) 532 (setq describe-current-input-method-function nil)
533 (run-hooks 'quail-inactivate-hook)) 533 (run-hooks 'quail-inactivate-hook))
534 (kill-local-variable 'input-method-function)) 534 (kill-local-variable 'input-method-function))
535 ;; Let's active Quail input method. 535 ;; Let's activate Quail input method.
536 (if (null quail-current-package) 536 (if (null quail-current-package)
537 ;; Quail package is not yet selected. Select one now. 537 ;; Quail package is not yet selected. Select one now.
538 (let (name) 538 (let (name)
@@ -1912,14 +1912,10 @@ or in a newly created frame (if the selected frame has no other windows)."
1912 ;; Here, `split-window' returns a lower window 1912 ;; Here, `split-window' returns a lower window
1913 ;; which is what we wanted. 1913 ;; which is what we wanted.
1914 (setq win (split-window win (- height 2)))) 1914 (setq win (split-window win (- height 2))))
1915 ;; This makes sure that there's really enougth room
1916 ;; for 1 line of text, even if the mode-line is
1917 ;; taller than one line (and so the total
1918 ;; window-height of two wouldn't be enough).
1919 (set-window-text-height win 1)
1920 (set-window-buffer win quail-guidance-buf) 1915 (set-window-buffer win quail-guidance-buf)
1921 ;;(set-window-dedicated-p win t) 1916 (save-excursion
1922 )) 1917 (set-buffer quail-guidance-buf)
1918 (fit-window-to-buffer win nil (window-height win)))))
1923 (set-window-buffer win quail-guidance-buf) 1919 (set-window-buffer win quail-guidance-buf)
1924 (set-minibuffer-window win)) 1920 (set-minibuffer-window win))
1925 (setq quail-guidance-win win))) 1921 (setq quail-guidance-win win)))
@@ -1956,7 +1952,7 @@ or in a newly created frame (if the selected frame has no other windows)."
1956 (let ((guidance (quail-guidance))) 1952 (let ((guidance (quail-guidance)))
1957 (unless (and (eq (selected-frame) (window-frame (minibuffer-window))) 1953 (unless (and (eq (selected-frame) (window-frame (minibuffer-window)))
1958 (eq (selected-frame) (window-frame quail-guidance-win))) 1954 (eq (selected-frame) (window-frame quail-guidance-win)))
1959 ;; The guidance window is not show in this frame, show it 1955 ;; The guidance window is not shown in this frame, show it.
1960 (quail-show-guidance-buf)) 1956 (quail-show-guidance-buf))
1961 (cond ((or (eq guidance t) 1957 (cond ((or (eq guidance t)
1962 (consp guidance)) 1958 (consp guidance))
@@ -1979,7 +1975,8 @@ or in a newly created frame (if the selected frame has no other windows)."
1979 ;; this automatic expansion doesn't happen until then, and we 1975 ;; this automatic expansion doesn't happen until then, and we
1980 ;; want to see the window sizes after the expansion. 1976 ;; want to see the window sizes after the expansion.
1981 (sit-for 0) 1977 (sit-for 0)
1982 (fit-window-to-buffer quail-guidance-win nil 1))) 1978 (fit-window-to-buffer quail-guidance-win nil
1979 (window-height quail-guidance-win))))
1983 1980
1984 ;; Update completion buffer if displayed now. We highlight the 1981 ;; Update completion buffer if displayed now. We highlight the
1985 ;; selected candidate string in *Completion* buffer if any. 1982 ;; selected candidate string in *Completion* buffer if any.