all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 29345@debbugs.gnu.org
Subject: bug#29345: 27.0.50; Error message for cl-destructuring-bind could be improved
Date: Wed, 7 Aug 2019 13:09:35 +0200	[thread overview]
Message-ID: <CAArVCkR9Nr=HfeZWoXjK4ieh-C0U+EGaHYkoGA-iNzVZgMTb+Q@mail.gmail.com> (raw)
In-Reply-To: <m3ftmtc2lp.fsf@gnus.org>

Am Do., 25. Juli 2019 um 21:54 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
> > Philipp Stephani <p.stephani2@gmail.com> writes:
> >
> >> $ emacs -Q -batch -l cl-lib -eval '(cl-destructuring-bind (a b) (list 1))'
> >> Wrong number of arguments: nil, 1
> >>
> >> It would be nice if the first error data item weren't nil, but
> >> e.g. `(cl-destructuring-bind (a b))` so that the error is obvious.
> >
> > What about
> >
> > Wrong number of arguments: (a b), 1
> >
> > The following patch achieves that, but since it was explicitly 'cl-none
> > before (which is the magic value that gives you nil in that error
> > message), I'm not sure whether this has any negative effects?  Probably
> > not, because there's this:
> >
> > (defvar cl--bind-block) ;Name of surrounding block, only use for `signal' data.
> >
> > Any opinions?
>
> There weren't any, so I'm applying the patch.

Thanks!





      reply	other threads:[~2019-08-07 11:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-17 20:30 bug#29345: 27.0.50; Error message for cl-destructuring-bind could be improved Philipp Stephani
2019-07-14 19:41 ` Lars Ingebrigtsen
2019-07-25 19:53   ` Lars Ingebrigtsen
2019-08-07 11:09     ` Philipp Stephani [this message]

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='CAArVCkR9Nr=HfeZWoXjK4ieh-C0U+EGaHYkoGA-iNzVZgMTb+Q@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=29345@debbugs.gnu.org \
    --cc=larsi@gnus.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.