* Re: [Emacs-diffs] master 36dc39b: * lisp/gnus/gnus-sum.el: Prepare for lexical-binding
[not found] ` <20190408204944.85B29209A7@vcs0.savannah.gnu.org>
@ 2019-04-08 23:07 ` Basil L. Contovounesios
2019-04-09 1:50 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Basil L. Contovounesios @ 2019-04-08 23:07 UTC (permalink / raw)
To: emacs-devel; +Cc: Stefan Monnier
monnier@iro.umontreal.ca (Stefan Monnier) writes:
> branch: master
> commit 36dc39bfbf1a307769bd62dbe1311a1935737b51
> Author: Stefan Monnier <monnier@iro.umontreal.ca>
> Commit: Stefan Monnier <monnier@iro.umontreal.ca>
>
> * lisp/gnus/gnus-sum.el: Prepare for lexical-binding
[...]
> (gnus-summary-move-article): Use dolist.
[...]
> @@ -9979,7 +10038,7 @@ ACTION can be either `move' (the default), `crosspost' or `copy'."
> (crosspost "Crosspost" "Crossposting")))
> (copy-buf (save-excursion
> (nnheader-set-temp-buffer " *copy article*")))
> - art-group to-method new-xref article to-groups
> + art-group to-method new-xref to-groups
> articles-to-update-marks encoded)
> (unless (assq action names)
> (error "Unknown action %s" action))
> @@ -10029,8 +10088,7 @@ ACTION can be either `move' (the default), `crosspost' or `copy'."
> (or (car select-method)
> (gnus-group-decoded-name to-newsgroup))
> articles)
> - (while articles
> - (setq article (pop articles))
> + (dolist (article articles)
> ;; Set any marks that may have changed in the summary buffer.
> (when gnus-preserve-marks
> (gnus-summary-push-marks-to-backend article))
The dolist and while implementations aren't equivalent here (see my own
attempt at this[1] and the resulting bug[2]), so I took the liberty of
re-applying Yamaoka-san's fix[3] on top of your changes in the meantime.
[1: 03e916beb0]: Fix Gnus duplicate article unsuppression
2019-03-24 10:11:29 -0700
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=03e916beb0186f3707cd238650298870bf471575
[2]: https://debbugs.gnu.org/33653#134
[3: 3e5e097fdf]: Make `move article' work again (bug#33653)
2019-04-08 23:55:09 +0100
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3e5e097fdf056f4b3440993dd25ebdbad436abc3
Thanks,
--
Basil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Emacs-diffs] master 36dc39b: * lisp/gnus/gnus-sum.el: Prepare for lexical-binding
2019-04-08 23:07 ` [Emacs-diffs] master 36dc39b: * lisp/gnus/gnus-sum.el: Prepare for lexical-binding Basil L. Contovounesios
@ 2019-04-09 1:50 ` Stefan Monnier
2019-04-09 15:11 ` Andy Moreton
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2019-04-09 1:50 UTC (permalink / raw)
To: Basil L. Contovounesios; +Cc: emacs-devel
> The dolist and while implementations aren't equivalent here (see my own
> attempt at this[1] and the resulting bug[2]), so I took the liberty of
> re-applying Yamaoka-san's fix[3] on top of your changes in the meantime.
Duh, indeed, thanks,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Emacs-diffs] master 36dc39b: * lisp/gnus/gnus-sum.el: Prepare for lexical-binding
2019-04-09 1:50 ` Stefan Monnier
@ 2019-04-09 15:11 ` Andy Moreton
2019-04-09 15:38 ` Basil L. Contovounesios
0 siblings, 1 reply; 4+ messages in thread
From: Andy Moreton @ 2019-04-09 15:11 UTC (permalink / raw)
To: emacs-devel
On Mon 08 Apr 2019, Stefan Monnier wrote:
>> The dolist and while implementations aren't equivalent here (see my own
>> attempt at this[1] and the resulting bug[2]), so I took the liberty of
>> re-applying Yamaoka-san's fix[3] on top of your changes in the meantime.
>
> Duh, indeed, thanks,
>
>
> Stefan
As this problem has now bitten twice, perhaps it merits a comment in the
code to prevent it being "fixed" again...
AndyM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Emacs-diffs] master 36dc39b: * lisp/gnus/gnus-sum.el: Prepare for lexical-binding
2019-04-09 15:11 ` Andy Moreton
@ 2019-04-09 15:38 ` Basil L. Contovounesios
0 siblings, 0 replies; 4+ messages in thread
From: Basil L. Contovounesios @ 2019-04-09 15:38 UTC (permalink / raw)
To: Andy Moreton; +Cc: emacs-devel
Andy Moreton <andrewjmoreton@gmail.com> writes:
> On Mon 08 Apr 2019, Stefan Monnier wrote:
>
>>> The dolist and while implementations aren't equivalent here (see my own
>>> attempt at this[1] and the resulting bug[2]), so I took the liberty of
>>> re-applying Yamaoka-san's fix[3] on top of your changes in the meantime.
>>
>> Duh, indeed, thanks,
>>
>>
>> Stefan
>
> As this problem has now bitten twice, perhaps it merits a comment in the
> code to prevent it being "fixed" again...
Good point; done[1].
[1: e1a457e635]: ; Warn of while/dolist pitfall in gnus-sum.el
2019-04-09 16:32:27 +0100
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e1a457e63530cd566a1bc2957b70221bb6f76984
Thanks,
--
Basil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-09 15:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190408204943.16965.86497@vcs0.savannah.gnu.org>
[not found] ` <20190408204944.85B29209A7@vcs0.savannah.gnu.org>
2019-04-08 23:07 ` [Emacs-diffs] master 36dc39b: * lisp/gnus/gnus-sum.el: Prepare for lexical-binding Basil L. Contovounesios
2019-04-09 1:50 ` Stefan Monnier
2019-04-09 15:11 ` Andy Moreton
2019-04-09 15:38 ` Basil L. Contovounesios
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).