emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17974: closed (24.3.92; scrolled wrapped tab start


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17974: closed (24.3.92; scrolled wrapped tab starts with wrong position)
Date: Wed, 09 Jul 2014 14:17:02 +0000

Your message dated Wed, 09 Jul 2014 17:16:17 +0300
with message-id <address@hidden>
and subject line Re: bug#17974: 24.3.92; scrolled wrapped tab starts with wrong 
position
has caused the debbugs.gnu.org bug report #17974,
regarding 24.3.92; scrolled wrapped tab starts with wrong position
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17974: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17974
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.92; scrolled wrapped tab starts with wrong position Date: Wed, 09 Jul 2014 08:44:41 +0900 User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)
I'm not sure if this should be counted as a bug.  This is not a
serious one, but causes a strange look in pixel-based smooth scrolling
a window with scaled text in the Mac port.  The recipe below can also
be reproduced in various X11 builds.  Probably this is related to
Bug#17969.

Steps to reproduce:

1. $ emacs -Q -D &
2. (setq frame-resize-pixelwise t) C-j
3. C-x 5 2
4. (progn
     (text-scale-set 5)
     (dotimes (i 10) (insert (make-string 7 (+ ?a i)) ?\t))
     (insert ?\n)) C-j
5. Resize the newly created frame so it looks like the first
   screenshot.  Notice that there is some space before "fffffff"
6. Type "(scroll-up 1)" and repeatedly hit "C-x C-e" until the line
   starting with "fffffff" comes at the top.

Result:

The line starting with "fffffff" is shown without leading space (the
second screenshot) whereas there was some space before the last scroll
up.

                                     YAMAMOTO Mitsuharu
                                address@hidden

In GNU Emacs 24.3.92.1 (x86_64-apple-darwin13.2.0, GTK+ Version 3.12.2)
 of 2014-07-09 on YAMAMOTO-no-iMac.local
Repository revision: 117365 address@hidden
Windowing system distributor `The X.Org Foundation', version 11.0.11406000
Configured using:
 `configure --without-imagemagick LDFLAGS=-L/opt/local/lib
 CPPFLAGS=-I/opt/local/include'

PNG image

PNG image


--- End Message ---
--- Begin Message --- Subject: Re: bug#17974: 24.3.92; scrolled wrapped tab starts with wrong position Date: Wed, 09 Jul 2014 17:16:17 +0300
> Date: Wed, 09 Jul 2014 08:44:41 +0900
> From: YAMAMOTO Mitsuharu <address@hidden>
> 
> 1. $ emacs -Q -D &
> 2. (setq frame-resize-pixelwise t) C-j
> 3. C-x 5 2
> 4. (progn
>      (text-scale-set 5)
>      (dotimes (i 10) (insert (make-string 7 (+ ?a i)) ?\t))
>      (insert ?\n)) C-j
> 5. Resize the newly created frame so it looks like the first
>    screenshot.  Notice that there is some space before "fffffff"
> 6. Type "(scroll-up 1)" and repeatedly hit "C-x C-e" until the line
>    starting with "fffffff" comes at the top.
> 
> Result:
> 
> The line starting with "fffffff" is shown without leading space (the
> second screenshot) whereas there was some space before the last scroll
> up.

This is not a bug, but rather an explicitly coded feature: tab stops
in a continued line are calculated from the beginning of the visible
portion of the (physical) line, and tab stops the distance to which
appears narrower than the font's space glyph are skipped (i.e. the
display engine goes to the next tab stop).

Scroll commands force window-start to be at a certain buffer position,
in this case in the middle of a continued line.  The portion of the
line before window-start is not displayed, and its tab stops are not
counted, which changes the position of the tab stops in the visible
portion of the line.  (Going back to the beginning of a long line for
the purpose of taking into account the tab stops there would be a
performance killer, especially in very long lines.)

This situation is relatively rare, because for most "normal-sized"
fonts the probability of a tab stop to be spilled to the next line
with less pixels than a space glyph is very small.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]