unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4096: 23.1.50; forward-char sometimes steps over overlay 'display
@ 2009-08-09 16:08   ` Lennart Borgman
  2009-08-09 20:28     ` Lennart Borgman
       [not found]     ` <handler.4096.D4094.131025781624513.notifdone@debbugs.gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Lennart Borgman @ 2009-08-09 16:08 UTC (permalink / raw)
  To: emacs-pretest-bug

I have two rather similar 'display strings for two invisible
overlays. In one case forward-char steps over the 'display string part
and in the other it stops on it (as it should).

For the case when it steps over the display string looks something like

#("+ <p>...(6 hidden lines)" 0 1
  (face mode-line)
  2 3
  (fontified t)
  3 4
  (face font-lock-function-name-face fontified t)
  4 5
  (fontified t))

and for the case where it stops (expected behaviour) it looks like

#("+...(155 hidden lines)" 0 1
  (face mode-line))

I can reproduce it, but have not made a test case. However the behaviour
can easily be seen in the devel sources for nXhtml. One case is for
outline-minor-mode and one is for hs-minor-mode used in a nxhtml-mode buffer.


In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-08-01
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'





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

* bug#4096: 23.1.50; forward-char sometimes steps over overlay  'display
  2009-08-09 16:08   ` bug#4096: 23.1.50; forward-char sometimes steps over overlay 'display Lennart Borgman
@ 2009-08-09 20:28     ` Lennart Borgman
  2009-08-10  4:13       ` Stefan Monnier
       [not found]     ` <handler.4096.D4094.131025781624513.notifdone@debbugs.gnu.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Lennart Borgman @ 2009-08-09 20:28 UTC (permalink / raw)
  To: 4096

(Please merge this with 4094.)

I think the problem might be in

    adjust_for_invis_intang

or the use of it. This function checks for insertion type.

This is different for the overlays I have mentioned here. One is
created by outline-minor-mode and one by hs-minor-mode. One of them
set insertion type for the beginning of the overlay, the other does
not. In one of the cases at least forward-char works, in the other it
does not. (backward-char still does not work.)

However it must be a mistake to check for insertion type here. Forward
char has nothing to do with that. (Note: adjust_for_invis_intang is
called by set_point_both.)





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

* bug#4096: 23.1.50; forward-char sometimes steps over overlay  'display
  2009-08-09 20:28     ` Lennart Borgman
@ 2009-08-10  4:13       ` Stefan Monnier
  2009-08-10  4:34         ` Lennart Borgman
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2009-08-10  4:13 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 4096

> I think the problem might be in

>     adjust_for_invis_intang

> or the use of it. This function checks for insertion type.

This function should not do anything if you don't have `intangible'
things around.  Do you?  If you do, I'm tempted to say "there's your
problem".


        Stefan





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

* bug#4096: 23.1.50; forward-char sometimes steps over overlay  'display
  2009-08-10  4:13       ` Stefan Monnier
@ 2009-08-10  4:34         ` Lennart Borgman
  0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2009-08-10  4:34 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 4096

On Mon, Aug 10, 2009 at 6:13 AM, Stefan Monnier<monnier@iro.umontreal.ca> wrote:
>> I think the problem might be in
>
>>     adjust_for_invis_intang
>
>> or the use of it. This function checks for insertion type.
>
> This function should not do anything if you don't have `intangible'
> things around.  Do you?  If you do, I'm tempted to say "there's your
> problem".

Not that I know of. I looked for it but could not find it. (I have not
checked that adjust_for_invis_intang is actually called. I looked
around in the code searching for some reasonable explanation.)

The overlays are created by outline-minor-mode and hs-minor-mode +
'display property added by me.





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

* bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display
@ 2010-01-09 20:11 Chong Yidong
  2011-07-10  0:30 ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2010-01-09 20:11 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 4094

> posn-at-point reports bad (X . Y) when on a 'displa part of an invisible
> overlay.
>
> This makes line-move-visual behave strange. (A workaround for this could
> be to step back one char in line-move-visual, but this is of course not
> the correct fix.)

Please provide a precise, step-by-step recipe to reproduce this,
starting with `emacs -Q'.






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

* bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display
  2010-01-09 20:11 bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display Chong Yidong
@ 2011-07-10  0:30 ` Glenn Morris
  2009-08-09 16:08   ` bug#4096: 23.1.50; forward-char sometimes steps over overlay 'display Lennart Borgman
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2011-07-10  0:30 UTC (permalink / raw)
  To: 4094-done


Closed due to lack of response.

Chong Yidong wrote:

> Please provide a precise, step-by-step recipe to reproduce this,
> starting with `emacs -Q'.





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

* bug#4096: closed (Re: bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display)
       [not found]     ` <handler.4096.D4094.131025781624513.notifdone@debbugs.gnu.org>
@ 2011-07-10  0:38       ` Lennart Borgman
  0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2011-07-10  0:38 UTC (permalink / raw)
  To: 4096

Sorry, I do not have time to give a precise recipe.

On Sun, Jul 10, 2011 at 02:31, GNU bug Tracking System
<help-debbugs@gnu.org> wrote:
> Your bug report
>
> #4094: 23.1.50; forward-char sometimes steps over overlay 'display
>
> which was filed against the emacs package, has been closed.
>
> The explanation is attached below, along with your original report.
> If you require more details, please reply to 4096@debbugs.gnu.org.
>
> --
> 4094: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4094
> GNU Bug Tracking System
> Contact help-debbugs@gnu.org with problems
>
>
> ---------- Forwarded message ----------
> From: Glenn Morris <rgm@gnu.org>
> To: 4094-done@debbugs.gnu.org
> Date: Sat, 09 Jul 2011 20:30:08 -0400
> Subject: Re: bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display
>
> Closed due to lack of response.
>
> Chong Yidong wrote:
>
>> Please provide a precise, step-by-step recipe to reproduce this,
>> starting with `emacs -Q'.
>
>
>
> ---------- Forwarded message ----------
> From: Lennart Borgman <lennart.borgman@gmail.com>
> To: emacs-pretest-bug@gnu.org
> Date: Sun, 9 Aug 2009 18:08:39 +0200
> Subject: 23.1.50; forward-char sometimes steps over overlay 'display
> I have two rather similar 'display strings for two invisible
> overlays. In one case forward-char steps over the 'display string part
> and in the other it stops on it (as it should).
>
> For the case when it steps over the display string looks something like
>
> #("+ <p>...(6 hidden lines)" 0 1
>  (face mode-line)
>  2 3
>  (fontified t)
>  3 4
>  (face font-lock-function-name-face fontified t)
>  4 5
>  (fontified t))
>
> and for the case where it stops (expected behaviour) it looks like
>
> #("+...(155 hidden lines)" 0 1
>  (face mode-line))
>
> I can reproduce it, but have not made a test case. However the behaviour
> can easily be seen in the devel sources for nXhtml. One case is for
> outline-minor-mode and one is for hs-minor-mode used in a nxhtml-mode buffer.
>
>
> In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
>  of 2009-08-01
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4) --no-opt --cflags
> -Ic:/g/include -fno-crossjumping'
>
>
>





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

end of thread, other threads:[~2011-07-10  0:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-09 20:11 bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display Chong Yidong
2011-07-10  0:30 ` Glenn Morris
2009-08-09 16:08   ` bug#4096: 23.1.50; forward-char sometimes steps over overlay 'display Lennart Borgman
2009-08-09 20:28     ` Lennart Borgman
2009-08-10  4:13       ` Stefan Monnier
2009-08-10  4:34         ` Lennart Borgman
     [not found]     ` <handler.4096.D4094.131025781624513.notifdone@debbugs.gnu.org>
2011-07-10  0:38       ` bug#4096: closed (Re: bug#4094: 23.1.50; posn-at-point gets upset by overlays with 'invisible and 'display) Lennart Borgman

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).