Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0548a7fd
Commit
0548a7fd
authored
May 18, 1998
by
Kenichi Handa
Browse files
(quail-completion): Consecutive call of
this command scrolls the Quail completion buffer.
parent
bb9c978a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
lisp/international/quail.el
lisp/international/quail.el
+23
-8
No files found.
lisp/international/quail.el
View file @
0548a7fd
...
...
@@ -1637,16 +1637,31 @@ All possible translations of the current key and whole possible longer keys
are
shown.
"
(interactive)
(quail-setup-completion-buf)
(let ((key quail-current-key)
(map (quail-lookup-key quail-current-key)))
(let ((win (get-buffer-window quail-completion-buf 'visible))
(key quail-current-key)
(map (quail-lookup-key quail-current-key))
(require-update nil))
(save-excursion
(set-buffer quail-completion-buf)
(erase-buffer)
(insert "
Possible
completion
and
corresponding
translations
are:\n
")
(quail-completion-1 key map 1)
(goto-char (point-min))
(display-buffer (current-buffer)))
(quail-update-guidance)))
(if (and win
(equal key quail-current-key)
(eq last-command 'quail-completion))
;; The window for Quail completion buffer has already been
;; shown. We just scroll it appropriately.
(if (pos-visible-in-window-p (point-max) win)
(set-window-start win (point-min))
(let ((other-window-scroll-buffer quail-completion-buf))
(scroll-other-window)))
(setq quail-current-key key)
(erase-buffer)
(insert "
Possible
completion
and
corresponding
translations
are:\n
")
(quail-completion-1 key map 1)
(goto-char (point-min))
(display-buffer (current-buffer))
(setq require-update t)))
(if require-update
(quail-update-guidance)))
(setq this-command 'quail-completion))
;; List all completions of KEY in MAP with indentation INDENT.
(defun quail-completion-1 (key map indent)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment