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

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

bug#1132: =5397cquote=5397d does not signal error when given 2 or more a


From: xah lee
Subject: bug#1132: =5397cquote=5397d does not signal error when given 2 or more args
Date: Thu, 9 Oct 2008 08:37:29 -0700


Summary: perhaps the “quote” special form should signal an error when given more than one argument?


Detail:

I was trying to write a mode , working on my font-lock-keywords...

after few hours of frustration and help from gnu.emacs.help, it turns out that the “quote” takes one argument only.

i.e.

'(...)
is equivalent to
(quote (...))
not
(quote ...)

However, elisp does not indicate any error when “quote” is given more than one argument. Perhaps this is something that can be improved?

Kevin Rodgers wrote:
«Indeed. Is it a bug that quote does not signal "Wrong number of arguments"? I know that special forms do not necessarily evaluate their arguments, but neither do macros and eval/apply manages to make sure that the number of supplied arguments conforms to a macro's argument list.»

... For what's worth.

  Xah
∑ http://xahlee.org/

reply via email to

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