all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* describe-variable with string arg
@ 2007-03-23 22:37 Drew Adams
  2007-03-23 22:52 ` Stefan Monnier
  2007-03-23 22:57 ` Drew Adams
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2007-03-23 22:37 UTC (permalink / raw)
  To: Emacs-Devel

describe-variable expects a symbol, not a symbol-name (string).

In Emacs 20, passing it a symbol name leads to an error message. Starting
with Emacs 21, the message is displayed via `message', not `error'. AFAICT,
no Emacs code depends on this use of `message' instead of `error'. The
latter makes more sense to me.

Beyond that, why not let `describe-variable' try a little harder, to use
`intern' applied to its arg, if that is a string?

That would be friendlier to possible 3rd-party code that might generically
apply a function such as `describe-variable' to an arg that might be a
symbol name instead of a symbol.

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

end of thread, other threads:[~2007-03-23 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <46045DA3.9000709@gmail.com>
2007-03-23 23:15 ` describe-variable with string arg Drew Adams
2007-03-23 22:37 Drew Adams
2007-03-23 22:52 ` Stefan Monnier
2007-03-23 22:57 ` Drew Adams
2007-03-23 23:57   ` Drew Adams

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.