GNU bug report logs - #16497
24.3.50; `move-to-column' ignores invisible text at the beginning of the line, which create problems when using string-rectangle

Previous Next

Package: emacs;

Reported by: Bastien Guerry <bzg <at> altern.org>

Date: Sun, 19 Jan 2014 16:28:01 UTC

Severity: normal

Found in version 24.3.50

Full log


Message #44 received at 16497 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 16497 <at> debbugs.gnu.org, bzg <at> altern.org
Subject: Re: bug#16497: 24.3.50;
 `move-to-column' ignores invisible text at the beginning of the
 line,	which create problems when using string-rectangle
Date: Mon, 20 Jan 2014 21:19:27 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  16497 <at> debbugs.gnu.org
> Date: Mon, 20 Jan 2014 13:14:37 -0500
> 
> > emacs -Q
> > M-: (insert "abc") RET
> > C-a
> > M-: (put-text-property (point) (1+ (point)) 'invisible t) RET
> > C-a
> > C-a
> > C-a
> 
> > ... !  See the point moving from b to c and back again.
> 
> It's probably due to the post-command processing which tries to move
> point outside of invisible regions and to pretend that invisible regions
> don't exist at all (and paying attention to stickiness so that it
> prefers text positions where `invisible' won't be inherited).

Indeed, and the direction where it moves point depends on the previous
command and/or movement direction.

It's a murky area full of semi-working heuristics.




This bug report was last modified 11 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.