all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: Alex <agrambot@gmail.com>
Cc: 27559@debbugs.gnu.org, Tino Calancha <tino.calancha@gmail.com>
Subject: bug#27559: 26.0.50; [PATCH] Add tests for cl-macs.el
Date: Wed, 5 Jul 2017 22:29:02 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1707052225440.2184@calancha-pc> (raw)
In-Reply-To: <87bmp0c794.fsf@lylat>



On Tue, 4 Jul 2017, Alex wrote:

> Tino Calancha <tino.calancha@gmail.com> writes:
>
>> Alex <agrambot@gmail.com> writes:
>>
>>> That's more or less what I did at first, but I figured since cl-loop is
>>> a large macro, that it's best to quote the macro so that an accidental
>>> error doesn't halt testing.
>> I prefer just use (eval '...) in those cases where the expansion fails.
>> That way the file is more readable, and a reader focus her eye in those
>> failing expansions.
>
> I agree that it's more readable, and if I was doing this for my own
> project I'd just leave the (eval '...) out where possible.
>
>> Maybe we could add a comment in the file saying that those
>> `should-error' are failing expansions to be fixed.
>
> Part of the problem is that the "failing expansions that should be fixed" aren't
> wrapped in a should-error, but are wrapped in a should. The test itself
> is marked as ":expected-result :failed".
Feel free to adapt the patch to your taste: in the way you find it more
convenient.

> I also have a patch that appears to do this, but it breaks a few tests
> due to Bug#24402[1]. Perhaps a fix to that bug will also make it so that
> macro-expansion errors will be caught be should*.
>
> I hope that Bug#24402 can be fixed before committing these tests, so we
> can just remove the (eval '...) noise altogether.
I agree with you.  Thanks for point me out to such bug report (i wasn't 
aware of it).
I will teletransport to that bug report.  See you there!





  reply	other threads:[~2017-07-05 13:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  5:54 bug#27559: 26.0.50; [PATCH] Add tests for cl-macs.el Alex
2017-07-03  9:42 ` Tino Calancha
2017-07-03 20:23   ` Alex
2017-07-04  5:04     ` Tino Calancha
2017-07-04 19:49       ` Alex
2017-07-05 13:29         ` Tino Calancha [this message]
2017-08-11  1:17         ` npostavs
2017-08-12  0:02           ` Alex
2017-08-22  0:55             ` npostavs

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=alpine.DEB.2.20.1707052225440.2184@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=27559@debbugs.gnu.org \
    --cc=agrambot@gmail.com \
    /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.