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

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

[elpa] externals/consult dee1f5b03b 1/2: consult-goto-line: Use goto-lin


From: ELPA Syncer
Subject: [elpa] externals/consult dee1f5b03b 1/2: consult-goto-line: Use goto-line-history if available
Date: Sat, 19 Mar 2022 18:57:23 -0400 (EDT)

branch: externals/consult
commit dee1f5b03b2084c844fa05cce0cba022fc7c2b3d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    consult-goto-line: Use goto-line-history if available
---
 consult.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/consult.el b/consult.el
index 7525fa4668..00bed2ed89 100644
--- a/consult.el
+++ b/consult.el
@@ -3251,6 +3251,8 @@ narrowing and the settings `consult-goto-line-numbers' and
       (while (if-let (pos (consult--goto-line-position
                            (consult--prompt
                             :prompt "Go to line: "
+                            ;; goto-line-history is available on Emacs 28
+                            :history (and (boundp 'goto-line-history) 
'goto-line-history)
                             :state (let ((preview (consult--jump-preview)))
                                      (lambda (str restore)
                                        (funcall preview



reply via email to

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