lisp/help-fns.el: Revert commit c12838c73e

* lisp/help-fns.el (help-fns--describe-function-or-command-prompt):
Don't allow specifying a non-existing function.
This commit is contained in:
Stefan Monnier 2023-08-15 10:21:51 -04:00
parent 5c101b1ada
commit 7ba76dc9c3

View file

@ -229,11 +229,11 @@ interactive command."
(lambda (f) (if want-command
(commandp f)
(or (fboundp f) (get f 'function-documentation))))
;; We use 'confirm' here, unlike in other describe-*
;; commands, for cases like a function that is advised
;; but not yet defined (e.g., if 'advice-add' is called
;; before defining the function).
'confirm nil nil
;; We used `confirm' for a while because we may want to see the
;; meta-info about a function even if the function itself is not
;; defined, but this use case is too marginal and rarely tested,
;; not worth the trouble (bug#64902).
t nil nil
(and fn (symbol-name fn)))))
(unless (equal val "")
(setq fn (intern val)))