bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#4335: evaluationg documentation on *some-vars* returns => "Keyboard


From: MON KEY
Subject: bug#4335: evaluationg documentation on *some-vars* returns => "Keyboard macro."
Date: Thu, 3 Sep 2009 14:02:31 -0400

When a defvar such as: `*not-a-keyboard-macro*'
is bound to a regexp such-as: "^\\(some-regexp\\)"

(defvar *not-a-keyboard-macro* "^\\(some-regexp\\)" "*I'm not a kbd-macro")

EVALUATING:

;; 1)
(documentation *not-a-keyboard-macro*)
;;=> "Keyboard macro."

;; 2)
(documentation '*not-a-keyboard-macro*)
;;=> (void-function *not-a-keyboard-macro*)

;; 3)
(documentation *any-unbound-var*)
;;=>(void-variable *any-unbound-var*)

;; 4)
(documentation '*any-unbound-var*)
;;=> (void-function *any-unbound-var*)


Case 1 isn't correct.
Evaluating `documentation' for a variable whether bound or
unbound/quoted or unquoted _should_ throw an error.

;;;(progn (makunbound '*not-a-keyboard-macro*) (unintern
'*not-a-keyboard-macro*))

SYSTEM:
GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-06-30 on LENNART-69DE564 (patched)

s_P






reply via email to

[Prev in Thread] Current Thread [Next in Thread]