emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 4b1399fb21 1/4: org-goto-map: Do not treat 0-9 as d


From: ELPA Syncer
Subject: [elpa] externals/org 4b1399fb21 1/4: org-goto-map: Do not treat 0-9 as digital arguments by default
Date: Sat, 24 Feb 2024 06:58:46 -0500 (EST)

branch: externals/org
commit 4b1399fb21e8fe474ee2375594e6541ba146aff8
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    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
---
 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 6897752527..84847f4c79 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]