branch: externals/consult commit 4a7167c331d3c0c0d60b1d2d54c840f33e446683 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
consult-goto-line: Use goto-line-history unconditionally This works on Emacs older than 28. --- consult.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/consult.el b/consult.el index a3dbef6fd8..ce5dc640b0 100644 --- a/consult.el +++ b/consult.el @@ -3465,9 +3465,7 @@ 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) + :history 'goto-line-history :state (let ((preview (consult--jump-preview))) (lambda (action str)