From d56458467b9369000cefd1b41acb77736bf8c8a9 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 20 Nov 1997 21:59:02 +0000 Subject: [PATCH] (describe-variable): Don't use symbol-name if v isn't symbol. --- lisp/help.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/help.el b/lisp/help.el index a7d0155c89c..2ab2c9cb0a1 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -633,7 +633,8 @@ 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 nil nil (symbol-name v))) + obarray 'boundp t nil nil + (if (symbolp v) (symbol-name v)))) (list (if (equal val "") v (intern val))))) (if (symbolp variable) -- 2.39.2