mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-05 20:43:08 +00:00
(Info-follow-reference): Fix completion defaulting.
This commit is contained in:
parent
6028d553ed
commit
b0ebdfe551
12
lisp/info.el
12
lisp/info.el
@ -661,11 +661,13 @@ NAME may be an abbreviation of the reference name."
|
||||
(cons (cons str nil)
|
||||
completions))))
|
||||
(if completions
|
||||
(list (completing-read (if default
|
||||
(concat "Follow reference named: ("
|
||||
default ") ")
|
||||
"Follow reference named: ")
|
||||
completions default t))
|
||||
(let ((input (completing-read (if default
|
||||
(concat "Follow reference named: ("
|
||||
default ") ")
|
||||
"Follow reference named: ")
|
||||
completions nil t)))
|
||||
(list (if (equal input "")
|
||||
default input)))
|
||||
(error "No cross-references in this node"))))
|
||||
(let (target beg i (str (concat "\\*note " footnotename)))
|
||||
(while (setq i (string-match " " str i))
|
||||
|
Loading…
x
Reference in New Issue
Block a user