(enable-recursive-minibuffers t)
(value (completing-read
(if default
- (format "Describe %s (default %s): " topic
- (substring-no-properties default))
+ (format "Describe %s (default %s): " topic default)
(format "Describe %s: " topic))
completions nil nil nil 'info-lookup-history default)))
(list (if (equal value "") default value) mode)))
(> end beg)))
(buffer-substring-no-properties beg end)))))
(error nil)))
-;; We don't need this anymore, because now Custom inserts the unlispified name
-;; in the buffer. (Bug#41905)
-(make-obsolete 'info-lookup-guess-custom-symbol nil "28.1")
(defun info-lookup-guess-gdb-script-symbol ()
"Get symbol at point in GDB script buffers."
:mode 'Custom-mode
:ignore-case t
:regexp "[^][()`'‘’,:\" \t\n]+"
+ :parse-rule 'info-lookup-guess-custom-symbol
:other-modes '(emacs-lisp-mode))
(info-lookup-maybe-add-help