GNU bug report logs -
#21885
24.5; Transposing things with a negative argument
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Thu, 12 Nov 2015 08:13:02 UTC
Severity: normal
Merged with 14037,
20698
Found in versions 24.3.50, 24.5, 25.0.50
Fixed in version 25.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21885 in the body.
You can then email your comments to 21885 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 08:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Barzilay <eli <at> barzilay.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 12 Nov 2015 08:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In the past (IIRC, up to around v24.3) transposing things (chars,
words, sexprs, lines) would always leave the point after the
transposed thing. This means that I could always use a `C--' prefix
to "drag" the current thing backwards in the same way that the default
action drags it forwards. This is no longer happenning.
After a few trials the thing that seems to fix it is adding this line
at the end of the `transpose-subr' definition:
(goto-char (+ (car pos2) (- (cdr pos1) (car pos1))))
To be clear, this is not a backward incompatible change -- it fixes
the *current* incompatible change.
Patch file attached.
[0001-Fix-transpose-subr-with-a-negative-argument.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
--
((x=>x(x))(x=>x(x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 16:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 21885 <at> debbugs.gnu.org (full text, mbox):
> From: Eli Barzilay <eli <at> barzilay.org>
> Date: Thu, 12 Nov 2015 03:12:07 -0500
>
> In the past (IIRC, up to around v24.3) transposing things (chars,
> words, sexprs, lines) would always leave the point after the
> transposed thing. This means that I could always use a `C--' prefix
> to "drag" the current thing backwards in the same way that the default
> action drags it forwards. This is no longer happenning.
Could you please describe in more detail what do you see vs what you
expected? I'm not sure I understand the problem; in particular, I do
see point "after the transposed thing", but maybe I don't understand
what you meant by that.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 18:01:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 21885 <at> debbugs.gnu.org (full text, mbox):
> Could you please describe in more detail what do you see vs what you
> expected? I'm not sure I understand the problem; in particular, I do
> see point "after the transposed thing", but maybe I don't understand
> what you meant by that.
Bug#20698?
martin
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 18:12:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 21885 <at> debbugs.gnu.org (full text, mbox):
Eli Barzilay <eli <at> barzilay.org> writes:
> In the past (IIRC, up to around v24.3) transposing things (chars,
> words, sexprs, lines) would always leave the point after the
> transposed thing. ... This is no longer happenning.
I can't reproduce this. In Emacs 24.3, emacs -Q, in *scratch* buffer,
where | is point:
fob|ar
invoke C-t transpose-char gives:
foab|r
Same behavior in emacs master.
Please post a recipe.
--
-- Stephe
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 18:18:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 21885 <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 12 Nov 2015 19:00:35 +0100
> From: martin rudalics <rudalics <at> gmx.at>
> CC: 21885 <at> debbugs.gnu.org
>
> > Could you please describe in more detail what do you see vs what you
> > expected? I'm not sure I understand the problem; in particular, I do
> > see point "after the transposed thing", but maybe I don't understand
> > what you meant by that.
>
> Bug#20698?
Looks like that, thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 18:25:03 GMT)
Full text and
rfc822 format available.
Message #20 received at 21885 <at> debbugs.gnu.org (full text, mbox):
> From: Stephen Leake <stephen_leake <at> stephe-leake.org>
> Date: Thu, 12 Nov 2015 12:11:42 -0600
> Cc: 21885 <at> debbugs.gnu.org
>
> Eli Barzilay <eli <at> barzilay.org> writes:
>
> > In the past (IIRC, up to around v24.3) transposing things (chars,
> > words, sexprs, lines) would always leave the point after the
> > transposed thing. ... This is no longer happenning.
>
> I can't reproduce this. In Emacs 24.3, emacs -Q, in *scratch* buffer,
> where | is point:
>
> fob|ar
>
> invoke C-t transpose-char gives:
>
> foab|r
>
> Same behavior in emacs master.
I think I know the answer: the difference is visible only if you
invoke C-t with a negative argument, as in "C-- C-t".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Thu, 12 Nov 2015 19:28:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 21885 <at> debbugs.gnu.org (full text, mbox):
On Thu, Nov 12, 2015 at 1:24 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Stephen Leake <stephen_leake <at> stephe-leake.org>
>> Date: Thu, 12 Nov 2015 12:11:42 -0600
>> Cc: 21885 <at> debbugs.gnu.org
>>
>> Eli Barzilay <eli <at> barzilay.org> writes:
>>
>> > In the past (IIRC, up to around v24.3) transposing things (chars,
>> > words, sexprs, lines) would always leave the point after the
>> > transposed thing. ... This is no longer happenning.
> [...]
>
> I think I know the answer: the difference is visible only if you
> invoke C-t with a negative argument, as in "C-- C-t".
Yes, exactly -- and yes, this is the same bug as #20698. I looked at
the code a bit more since then, and I think that my patch is a fine fix.
--
((x=>x(x))(x=>x(x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
Merged 20698 21885.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 12 Nov 2015 19:46:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 13 Nov 2015 09:49:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eli Barzilay <eli <at> barzilay.org>
:
bug acknowledged by developer.
(Fri, 13 Nov 2015 09:49:03 GMT)
Full text and
rfc822 format available.
Message #30 received at 21885-done <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 12 Nov 2015 14:27:07 -0500
> From: Eli Barzilay <eli <at> barzilay.org>
> Cc: Stephen Leake <stephen_leake <at> stephe-leake.org>, 21885 <at> debbugs.gnu.org,
> martin rudalics <rudalics <at> gmx.at>
>
> On Thu, Nov 12, 2015 at 1:24 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> >> From: Stephen Leake <stephen_leake <at> stephe-leake.org>
> >> Date: Thu, 12 Nov 2015 12:11:42 -0600
> >> Cc: 21885 <at> debbugs.gnu.org
> >>
> >> Eli Barzilay <eli <at> barzilay.org> writes:
> >>
> >> > In the past (IIRC, up to around v24.3) transposing things (chars,
> >> > words, sexprs, lines) would always leave the point after the
> >> > transposed thing. ... This is no longer happenning.
> > [...]
> >
> > I think I know the answer: the difference is visible only if you
> > invoke C-t with a negative argument, as in "C-- C-t".
>
> Yes, exactly -- and yes, this is the same bug as #20698. I looked at
> the code a bit more since then, and I think that my patch is a fine fix.
Thanks, pushed.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 13 Nov 2015 09:49:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Fri, 13 Nov 2015 09:49:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Fri, 13 Nov 2015 13:15:02 GMT)
Full text and
rfc822 format available.
Message #38 received at 21885 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Fri, Nov 13, 2015 at 10:47 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> Thanks, pushed.
Commit a731c2f163071ed6efe7d93fa9585dd66ddf2fbb adds a test for this bug
(based on the use case in bug#20698).
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Fri, 13 Nov 2015 13:15:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Fri, 13 Nov 2015 13:37:01 GMT)
Full text and
rfc822 format available.
Message #44 received at 21885 <at> debbugs.gnu.org (full text, mbox):
> From: Juanma Barranquero <lekktu <at> gmail.com>
> Date: Fri, 13 Nov 2015 14:13:37 +0100
> Cc: 21885-done <at> debbugs.gnu.org, Stephen Leake <stephen_leake <at> stephe-leake.org>
>
> On Fri, Nov 13, 2015 at 10:47 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > Thanks, pushed.
>
> Commit a731c2f163071ed6efe7d93fa9585dd66ddf2fbb adds a test for this bug (based
> on the use case in bug#20698).
Thanks!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#21885
; Package
emacs
.
(Fri, 13 Nov 2015 13:37:02 GMT)
Full text and
rfc822 format available.
Merged 14037 20698 21885.
Request was from
Ivan Andrus <darthandrus <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 13 Nov 2015 15:30:05 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 12 Dec 2015 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 195 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.