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

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

[elpa] externals/transient efdf91980a 273/366: transient--goto-button: A


From: Jonas Bernoulli
Subject: [elpa] externals/transient efdf91980a 273/366: transient--goto-button: Anchor headings
Date: Tue, 25 Jan 2022 18:54:47 -0500 (EST)

branch: externals/transient
commit efdf91980a6f8bcb151debb877302ead8751ab65
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--goto-button: Anchor headings
    
    This assumes that `transient-force-single-column' is t.
    See #4438.
---
 lisp/transient.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 9af641e523..4984977d04 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -3451,7 +3451,7 @@ See `forward-button' for information about N."
 (defun transient--goto-button (command)
   (cond
    ((stringp command)
-    (when (search-forward command nil t)
+    (when (re-search-forward (concat "^" (regexp-quote command)) nil t)
       (goto-char (match-beginning 0))))
    (command
     (while (and (ignore-errors (forward-button 1))



reply via email to

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