all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: xah lee <xah@xahlee.org>
To: bug-gnu-emacs@gnu.org
Subject: bug#1132: =5397cquote=5397d does not signal error when given 2 or more args
Date: Thu, 9 Oct 2008 08:37:29 -0700	[thread overview]
Message-ID: <89A7FFB9-6B34-4E7D-9721-D66E02D4F01A@xahlee.org> (raw)


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	other threads:[~2008-10-09 15:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 15:37 xah lee [this message]
2008-10-09 16:00 ` bug#1132: =5397cquote=5397d does not signal error when given 2 or more args Andreas Schwab
2008-10-09 16:09 ` bug#1132: quote " martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89A7FFB9-6B34-4E7D-9721-D66E02D4F01A@xahlee.org \
    --to=xah@xahlee.org \
    --cc=1132@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.