]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Pass default value to completing-read.
authorKarl Heuer <kwzh@gnu.org>
Thu, 16 Oct 1997 18:12:06 +0000 (18:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 16 Oct 1997 18:12:06 +0000 (18:12 +0000)
(describe-function): Likewise.

lisp/help.el

index 23901132b058456732cc244c007f5a5da7377804..8ea8c405c1900de3d96b037357d7c1330a006518 100644 (file)
@@ -515,7 +515,7 @@ C-w Display information on absence of warranty for GNU Emacs."
      (setq val (completing-read (if fn
                                    (format "Describe function (default %s): " fn)
                                  "Describe function: ")
-                               obarray 'fboundp t))
+                               obarray 'fboundp t nil nil (symbol-name fn)))
      (list (if (equal val "")
               fn (intern val)))))
   (if function
@@ -614,7 +614,7 @@ Returns the documentation as a string, also."
      (setq val (completing-read (if (symbolp v)
                                    (format "Describe variable (default %s): " v)
                                  "Describe variable: ")
-                               obarray 'boundp t))
+                               obarray 'boundp t nil nil (symbol-name v)))
      (list (if (equal val "")
               v (intern val)))))
   (if (symbolp variable)