unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4335: evaluationg documentation on *some-vars* returns => "Keyboard macro."
@ 2009-09-03 18:02 MON KEY
  2009-09-03 21:44 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: MON KEY @ 2009-09-03 18:02 UTC (permalink / raw)
  To: bug-gnu-emacs

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#4335: evaluationg documentation on *some-vars* returns => "Keyboard macro."
  2009-09-03 18:02 bug#4335: evaluationg documentation on *some-vars* returns => "Keyboard macro." MON KEY
@ 2009-09-03 21:44 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2009-09-03 21:44 UTC (permalink / raw)
  To: MON KEY; +Cc: bug-gnu-emacs, 4335

MON KEY <monkey@sandpframing.com> writes:

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

Any string is also a keyboard macro.

> Case 1 isn't correct.

Not a bug, it works as designed.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-03 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-03 18:02 bug#4335: evaluationg documentation on *some-vars* returns => "Keyboard macro." MON KEY
2009-09-03 21:44 ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).