forked from mirrors/org-mode
Merge branch 'maint'
This commit is contained in:
commit
864fe7e59a
|
@ -461,9 +461,15 @@ is selected, only the bare key is returned."
|
||||||
;; Display UI and let user select an entry or
|
;; Display UI and let user select an entry or
|
||||||
;; a sub-level prefix.
|
;; a sub-level prefix.
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(unless (pos-visible-in-window-p (point-max))
|
(setq header-line-format nil)
|
||||||
(org-fit-window-to-buffer))
|
(org-fit-window-to-buffer)
|
||||||
|
(unless (pos-visible-in-window-p (1- (point-max)))
|
||||||
|
(setq header-line-format "Use C-n, C-p or C-v to navigate.")
|
||||||
|
(setq allowed-keys (append allowed-keys '("\C-n" "\C-p" "\C-v"))))
|
||||||
(let ((pressed (org--mks-read-key allowed-keys prompt)))
|
(let ((pressed (org--mks-read-key allowed-keys prompt)))
|
||||||
|
(while (and (member pressed '("\C-n" "\C-p" "\C-v")))
|
||||||
|
(org-scroll (string-to-char pressed))
|
||||||
|
(setq pressed (org--mks-read-key allowed-keys prompt)))
|
||||||
(setq current (concat current pressed))
|
(setq current (concat current pressed))
|
||||||
(cond
|
(cond
|
||||||
((equal pressed "\C-g") (user-error "Abort"))
|
((equal pressed "\C-g") (user-error "Abort"))
|
||||||
|
|
Loading…
Reference in a new issue