unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8874: Redisplay confusion in Info, due to recentering fix
@ 2011-06-15 20:22 Chong Yidong
  2011-06-16 15:49 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2011-06-15 20:22 UTC (permalink / raw)
  To: 8874

Recipe to reproduce:

emacs -q
M-: (setq scroll-conservatively 300) RET
C-h i
m CC mode RET
C-s k&r
C-s C-s C-s C-s

Emacs redisplay now shows a garbage window with no cursor.  C-l redraws
the window correctly.

This is caused by the recentering changes from March (revision 103792).
Reverting it eliminates the bug.





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

* bug#8874: Redisplay confusion in Info, due to recentering fix
  2011-06-15 20:22 bug#8874: Redisplay confusion in Info, due to recentering fix Chong Yidong
@ 2011-06-16 15:49 ` Eli Zaretskii
  2011-06-17  2:58   ` Stefan Monnier
  2011-06-18 18:07   ` Chong Yidong
  0 siblings, 2 replies; 7+ messages in thread
From: Eli Zaretskii @ 2011-06-16 15:49 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 8874

> From: Chong Yidong <cyd@stupidchicken.com>
> Date: Wed, 15 Jun 2011 16:22:34 -0400
> 
> Recipe to reproduce:
> 
> emacs -q
> M-: (setq scroll-conservatively 300) RET
> C-h i
> m CC mode RET
> C-s k&r
> C-s C-s C-s C-s
> 
> Emacs redisplay now shows a garbage window with no cursor.  C-l redraws
> the window correctly.

Confirmed.

How urgent is it to fix this?  Can it be postponed until I'm done with
bidi reordering of display strings, and we enter code freeze?





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

* bug#8874: Redisplay confusion in Info, due to recentering fix
  2011-06-16 15:49 ` Eli Zaretskii
@ 2011-06-17  2:58   ` Stefan Monnier
  2011-06-17  7:03     ` Eli Zaretskii
  2011-06-18 18:07   ` Chong Yidong
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2011-06-17  2:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Chong Yidong, 8874

> bidi reordering of display strings, and we enter code freeze?

Feature freeze is close, but code freeze is still far.


        Stefan





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

* bug#8874: Redisplay confusion in Info, due to recentering fix
  2011-06-17  2:58   ` Stefan Monnier
@ 2011-06-17  7:03     ` Eli Zaretskii
  2011-06-17 13:23       ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2011-06-17  7:03 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: cyd, 8874

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Chong Yidong <cyd@stupidchicken.com>,  8874@debbugs.gnu.org
> Date: Thu, 16 Jun 2011 22:58:57 -0400
> 
> > bidi reordering of display strings, and we enter code freeze?
> 
> Feature freeze is close, but code freeze is still far.

So is it a yes or a no to my question?





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

* bug#8874: Redisplay confusion in Info, due to recentering fix
  2011-06-17  7:03     ` Eli Zaretskii
@ 2011-06-17 13:23       ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2011-06-17 13:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: cyd, 8874

>> > bidi reordering of display strings, and we enter code freeze?
>> Feature freeze is close, but code freeze is still far.
> So is it a yes or a no to my question?

I think it's OK to delay bug-fixing in order to get the missing
bidi-features installed sooner.


        Stefan





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

* bug#8874: Redisplay confusion in Info, due to recentering fix
  2011-06-16 15:49 ` Eli Zaretskii
  2011-06-17  2:58   ` Stefan Monnier
@ 2011-06-18 18:07   ` Chong Yidong
  2011-08-23 10:40     ` Eli Zaretskii
  1 sibling, 1 reply; 7+ messages in thread
From: Chong Yidong @ 2011-06-18 18:07 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 8874

Eli Zaretskii <eliz@gnu.org> writes:

> How urgent is it to fix this?  Can it be postponed until I'm done with
> bidi reordering of display strings, and we enter code freeze?

The bidi work is more urgent, so feel free to postphone the fix for this
until you have the time.

FWIW, I took a quick look, and it appears that the following should do
the trick.  But it can wait till you have time to double-check the code.

*** src/xdisp.c	2011-06-14 18:57:19 +0000
--- src/xdisp.c	2011-06-18 18:03:55 +0000
***************
*** 14391,14397 ****
  	      if (pt_offset)
  		centering_position -= pt_offset;
  	      centering_position -=
! 		FRAME_LINE_HEIGHT (f) * (1 + margin + (last_line_misfit != 0));
  	      /* Don't let point enter the scroll margin near top of
  		 the window.  */
  	      if (centering_position < margin * FRAME_LINE_HEIGHT (f))
--- 14391,14397 ----
  	      if (pt_offset)
  		centering_position -= pt_offset;
  	      centering_position -=
! 		FRAME_LINE_HEIGHT (f) * (2 + margin + (last_line_misfit != 0));
  	      /* Don't let point enter the scroll margin near top of
  		 the window.  */
  	      if (centering_position < margin * FRAME_LINE_HEIGHT (f))





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

* bug#8874: Redisplay confusion in Info, due to recentering fix
  2011-06-18 18:07   ` Chong Yidong
@ 2011-08-23 10:40     ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2011-08-23 10:40 UTC (permalink / raw)
  To: Chong Yidong; +Cc: 8874-done

> From: Chong Yidong <cyd@stupidchicken.com>
> Cc: 8874@debbugs.gnu.org
> Date: Sat, 18 Jun 2011 14:07:10 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > How urgent is it to fix this?  Can it be postponed until I'm done with
> > bidi reordering of display strings, and we enter code freeze?
> 
> The bidi work is more urgent, so feel free to postphone the fix for this
> until you have the time.
> 
> FWIW, I took a quick look, and it appears that the following should do
> the trick.  But it can wait till you have time to double-check the code.

The problem was with the header line that Info uses by default, and
which was not accounted for when computing the new window start
position.  (If you set Info-use-header-line to nil, the bug goes
away.)

I fixed (in trunk revision 105541) the calculation of the window start
to account for the header line when it's present, and that solves the
bug.

Thanks.





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

end of thread, other threads:[~2011-08-23 10:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 20:22 bug#8874: Redisplay confusion in Info, due to recentering fix Chong Yidong
2011-06-16 15:49 ` Eli Zaretskii
2011-06-17  2:58   ` Stefan Monnier
2011-06-17  7:03     ` Eli Zaretskii
2011-06-17 13:23       ` Stefan Monnier
2011-06-18 18:07   ` Chong Yidong
2011-08-23 10:40     ` Eli Zaretskii

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