Commit 5effb4d8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(describe-function): Don't pass `nil' as default.

parent f36d46ca
......@@ -113,7 +113,8 @@ With ARG, you are asked to choose which language."
(setq val (completing-read (if fn
(format "Describe function (default %s): " fn)
"Describe function: ")
obarray 'fboundp t nil nil (symbol-name fn)))
obarray 'fboundp t nil nil
(and fn (symbol-name fn))))
(list (if (equal val "")
fn (intern val)))))
(if (null function)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment