aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-10-20 22:56:41 +0000
committerMiles Bader2000-10-20 22:56:41 +0000
commit2253894d74185cb55fcef8a9669a27970b454e07 (patch)
treeba233e0b9cd28eeff334fa6655b35e5c3e75d5d2
parentf29906f81219ca87a3368d1d5c58d185a843ccad (diff)
downloademacs-2253894d74185cb55fcef8a9669a27970b454e07.tar.gz
emacs-2253894d74185cb55fcef8a9669a27970b454e07.zip
(quail-update-guidance): Force a redisplay before setting the guidance
window size, to ensure we see any minibuffer expansion it causes.
-rw-r--r--lisp/international/quail.el21
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 6fc01468a76..2743126b089 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -1955,14 +1955,19 @@ or in a newly created frame (if the selected frame has no other windows)."
1955 ;; Update guidance buffer. 1955 ;; Update guidance buffer.
1956 (if (quail-require-guidance-buf) 1956 (if (quail-require-guidance-buf)
1957 (let ((guidance (quail-guidance))) 1957 (let ((guidance (quail-guidance)))
1958 (if (and (eq (selected-frame) (window-frame (minibuffer-window))) 1958 (if (not (and (eq (selected-frame) (window-frame (minibuffer-window)))
1959 (eq (selected-frame) (window-frame quail-guidance-win))) 1959 (eq (selected-frame) (window-frame quail-guidance-win))))
1960 ;; Make sure the height of the guidance window is OK 1960 ;; The guidance window is not show in this frame, show it
1961 ;; (sometimes, if the minibuffer window has expanded due to 1961 (quail-show-guidance-buf)
1962 ;; user input, it will cause the guidance window to be only 1962 ;; Make sure the height of the guidance window is OK --
1963 ;; partially visible). 1963 ;; sometimes, if the minibuffer window expands due to user
1964 (set-window-text-height quail-guidance-win 1) 1964 ;; input (for instance if the newly inserted character is in a
1965 (quail-show-guidance-buf)) 1965 ;; different font), it will cause the guidance window to be
1966 ;; only partially visible. We force a redisplay first because
1967 ;; this automatic expansion doesn't happen until then, and we
1968 ;; want to see the window sizes after the expansion.
1969 (sit-for 0)
1970 (set-window-text-height quail-guidance-win 1))
1966 (cond ((or (eq guidance t) 1971 (cond ((or (eq guidance t)
1967 (consp guidance)) 1972 (consp guidance))
1968 ;; Show the current possible translations. 1973 ;; Show the current possible translations.