From 4b1399fb21e8fe474ee2375594e6541ba146aff8 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sat, 24 Feb 2024 12:05:47 +0300 Subject: [PATCH] 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 Link: https://orgmode.org/list/5f491471-af08-49d5-a840-6b2f96be54cf@skyguard.com.cn --- lisp/org-goto.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/org-goto.el b/lisp/org-goto.el index 689775252..84847f4c7 100644 --- a/lisp/org-goto.el +++ b/lisp/org-goto.el @@ -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)