--- Begin Message ---
Subject: |
Subject: 29.0.60; Breaking change in forward-sentence/backward-sentence |
Date: |
Tue, 07 Mar 2023 08:31:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi.
Commit 460d5fd971489ba7b573d71a94cdaac2f9f1a767 introduced a new
function `count-sentences', which is nice, but it also silently changed
the return value of `forward-sentence' (and thus also
`backward-sentence') from returning the new value of point to returning
t/nil based on whether point moved or not.
I just discovered this because it caused one of my packages to break,
since it relies on the previous style return values from
`forward-sentence'/`backward-sentence'. It would be easy enough fix on
my part, but I'm wondering whether this change was intended, and if so,
whether it should be documented somewhere so package authors can adapt
more easily?
Or could perhaps the change in return values from
`forward-sentence'/`backward-sentence' be reverted to old behavior, and
the counting logic be left to `count-sentences' instead?
-- Simen
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#62027: Subject: 29.0.60; Breaking change in forward-sentence/backward-sentence |
Date: |
Tue, 07 Mar 2023 21:32:32 +0200 |
> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Cc: mardani29@yahoo.es, 62027@debbugs.gnu.org, simenheg@runbox.com
> Date: Tue, 07 Mar 2023 20:07:44 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> [...]
>
> > I tried, but it doesn't apply. Did you produce the patch from the
> > emacs-29 branch or from some other branch?
>
> Sorry, I produced it on master. Here is the one for emacs-29.
Thanks, installed.
> Will this appear on master at a later time?
Yes, in a day or two.
--- End Message ---