org-goto-map: Do not treat 0-9 as digital arguments by default
* lisp/org-goto.el (org-goto--set-map): Fix 0-9 being interpreted as digital arguments when `org-goto-auto-isearch' is non-nil. Reported-by: Pan Xie <xiepan@skyguard.com.cn> Link: https://orgmode.org/list/5f491471-af08-49d5-a840-6b2f96be54cf@skyguard.com.cn
This commit is contained in:
parent
e52a480f9f
commit
4b1399fb21
|
@ -102,7 +102,11 @@ When nil, you can use these keybindings to navigate the buffer:
|
|||
mouse-drag-region universal-argument org-occur)))
|
||||
(dolist (cmd cmds)
|
||||
(substitute-key-definition cmd cmd map global-map)))
|
||||
(suppress-keymap map)
|
||||
(if org-goto-auto-isearch
|
||||
;; Suppress 0-9 interpreted as digital arguments.
|
||||
;; Make them initiate isearch instead.
|
||||
(suppress-keymap map t)
|
||||
(suppress-keymap map))
|
||||
(org-defkey map "\C-m" 'org-goto-ret)
|
||||
(org-defkey map [(return)] 'org-goto-ret)
|
||||
(org-defkey map [(left)] 'org-goto-left)
|
||||
|
|
Loading…
Reference in New Issue