unofficial mirror of emacs-devel@gnu.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
[parent not found: <46045DA3.9000709@gmail.com>]

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 --
2007-03-23 22:37 describe-variable with string arg Drew Adams
2007-03-23 22:52 ` Stefan Monnier
2007-03-23 22:57 ` Drew Adams
2007-03-23 23:57   ` Drew Adams
     [not found] <46045DA3.9000709@gmail.com>
2007-03-23 23:15 ` Drew Adams

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).