aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/info-look.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index c798bb769b4..113306dc69e 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -465,12 +465,13 @@ Return nil if there is nothing appropriate."
465;;;###autoload 465;;;###autoload
466(defun info-complete-symbol (&optional mode) 466(defun info-complete-symbol (&optional mode)
467 "Perform completion on symbol preceding point." 467 "Perform completion on symbol preceding point."
468 (interactive 468 (interactive)
469 (list (if (info-lookup->mode-value 469 (info-complete 'symbol
470 'symbol (or info-lookup-mode major-mode)) 470 (or mode
471 (or info-lookup-mode major-mode) 471 (if (info-lookup->mode-value
472 (info-lookup-change-mode 'symbol)))) 472 'symbol (or info-lookup-mode major-mode))
473 (info-complete 'symbol mode)) 473 (or info-lookup-mode major-mode)
474 (info-lookup-change-mode 'symbol)))))
474 475
475;;;###autoload 476;;;###autoload
476(defun info-complete-file (&optional mode) 477(defun info-complete-file (&optional mode)