all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [Emacs-diffs] master 39355bc: Revert "* lisp/subr.el (when): Use `macroexp-progn'"
       [not found] ` <E1Ztyxh-000568-UG@vcs.savannah.gnu.org>
@ 2015-11-05 21:44   ` Ken Brown
  2015-11-05 22:17     ` Artur Malabarba
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2015-11-05 21:44 UTC (permalink / raw)
  To: emacs-devel, Artur Malabarba

On 11/4/2015 9:22 AM, Artur Malabarba wrote:
> branch: master
> commit 39355bc045874874eb83cecdf2e2e04c3b81d3f7
> Author: Artur Malabarba <bruce.connor.am@gmail.com>
> Commit: Artur Malabarba <bruce.connor.am@gmail.com>
>
>      Revert "* lisp/subr.el (when): Use `macroexp-progn'"
>
>      This reverts commit 8e843831eaf271801836b7a3e4dd3b4fb0bb72b8.
>      It breaks bootstrapping (duh).
> ---
>   lisp/subr.el |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lisp/subr.el b/lisp/subr.el
> index 91647a6..ea926ae 100644
> --- a/lisp/subr.el
> +++ b/lisp/subr.el
> @@ -179,7 +179,7 @@ value of last one, or nil if there are none.
>
>   \(fn COND BODY...)"
>     (declare (indent 1) (debug t))
> -  (list 'if cond (macroexp-progn body)))
> +  (list 'if cond (cons 'progn body)))
>
>   (defmacro unless (cond &rest body)
>     "If COND yields nil, do BODY, else return nil.

You only reverted part of the commit, leaving the new test in place. 
Was that intentional?

Ken




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Emacs-diffs] master 39355bc: Revert "* lisp/subr.el (when): Use `macroexp-progn'"
  2015-11-05 21:44   ` [Emacs-diffs] master 39355bc: Revert "* lisp/subr.el (when): Use `macroexp-progn'" Ken Brown
@ 2015-11-05 22:17     ` Artur Malabarba
  2015-11-05 22:44       ` Ken Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Artur Malabarba @ 2015-11-05 22:17 UTC (permalink / raw)
  To: Ken Brown; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

> You only reverted part of the commit, leaving the new test in place. Was
that intentional?

Yes. No reason to delete the test. :-)

[-- Attachment #2: Type: text/html, Size: 169 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Emacs-diffs] master 39355bc: Revert "* lisp/subr.el (when): Use `macroexp-progn'"
  2015-11-05 22:17     ` Artur Malabarba
@ 2015-11-05 22:44       ` Ken Brown
  2015-11-06  0:12         ` Artur Malabarba
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2015-11-05 22:44 UTC (permalink / raw)
  To: bruce.connor.am; +Cc: emacs-devel

On 11/5/2015 5:17 PM, Artur Malabarba wrote:
>  > You only reverted part of the commit, leaving the new test in place.
> Was that intentional?
>
> Yes. No reason to delete the test. :-)

This part fails:

   (should (equal (macroexpand-all '(when a b))
                  '(if a b)))

It should be

   (should (equal (macroexpand-all '(when a b))
                  '(if a (progn b))))

Ken



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Emacs-diffs] master 39355bc: Revert "* lisp/subr.el (when): Use `macroexp-progn'"
  2015-11-05 22:44       ` Ken Brown
@ 2015-11-06  0:12         ` Artur Malabarba
  0 siblings, 0 replies; 4+ messages in thread
From: Artur Malabarba @ 2015-11-06  0:12 UTC (permalink / raw)
  To: Ken Brown; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

On 5 Nov 2015 10:44 pm, "Ken Brown" <kbrown@cornell.edu> wrote:
>
> On 11/5/2015 5:17 PM, Artur Malabarba wrote:
>>
>>  > You only reverted part of the commit, leaving the new test in place.
>> Was that intentional?
>>
>> Yes. No reason to delete the test. :-)
>
>
> This part fails:
>
>   (should (equal (macroexpand-all '(when a b))
>                  '(if a b)))
>
> It should be
>
>   (should (equal (macroexpand-all '(when a b))
>                  '(if a (progn b))))

Yep. Thanks for catching that.

[-- Attachment #2: Type: text/html, Size: 802 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-06  0:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20151104142253.19562.42500@vcs.savannah.gnu.org>
     [not found] ` <E1Ztyxh-000568-UG@vcs.savannah.gnu.org>
2015-11-05 21:44   ` [Emacs-diffs] master 39355bc: Revert "* lisp/subr.el (when): Use `macroexp-progn'" Ken Brown
2015-11-05 22:17     ` Artur Malabarba
2015-11-05 22:44       ` Ken Brown
2015-11-06  0:12         ` Artur Malabarba

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.