GNU bug report logs - #6592
24.0.50; Fringe at scroll bar side is wider (sometimes).

Previous Next

Package: emacs;

Reported by: "Jan D." <jhdgoo <at> gmail.com>

Date: Fri, 9 Jul 2010 16:03:02 UTC

Severity: normal

Found in version 24.0.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

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 6592 in the body.
You can then email your comments to 6592 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Fri, 09 Jul 2010 16:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Jan D." <jhdgoo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 09 Jul 2010 16:03:02 GMT) Full text and rfc822 format available.

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

From: "Jan D." <jhdgoo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Fri, 09 Jul 2010 13:49:28 +0200
[Message part 1 (text/plain, inline)]
 This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <at> gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

% emacs -Q -fn -adobe-courier-medium-r-normal--18-180-75-75-m-110-iso10646-1

(or monospace-18 if you have Xft).

Notice that the fringe close to scroll bar is much wider than the other
fringe (see screenshot).  This appears to depend on the font size, as
for smaller fonts, the effect is not that noticable.
For example, with Gtk+ and lucid, monospace-19 shows this rather well,
but for monospace-20, there is little difference.  But for monospace-20
the fringes are much smaller than for monospace-20.  Why?

Seen on lucid, Motif/Lesstif, and Gtk+ Emacs builds.

    Jan D.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/local/share/emacs/24.0.50/etc/DEBUG.


In GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GNU/LessTif Version 2.1 
Release 0.95.2)
 of 2010-07-09 on f13virt.localdomain
Windowing system distributor `Fedora Project', version 11.0.10800000
configured using `configure  '--with-x-toolkit=motif''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: sv_SE.utf8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> C-x k <return>
<down-mouse-1> <mouse-1> x x x x x <help-echo> <help-echo>
<escape> x r e p o r t - e m a c s - b u g <return
>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set

Load-path shadows:
/home/jhd/src/emacs/trunk/leim/leim-list hides 
/home/jhd/src/emacs/obj-motif/leim/leim-list

Features:
(shadow sort gnus-util mail-extr message sendmail regexp-opt rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils
gmm-utils mailheader emacsbug tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting motif x-toolkit
x multi-tty emacs)

[left.png (image/png, attachment)]
[right.png (image/png, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Fri, 09 Jul 2010 17:03:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: 6592 <at> debbugs.gnu.org
Subject: Re: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Fri, 09 Jul 2010 19:02:12 +0200
FWIW, I see that the 23-branch has some fringe patches that trunk hasn't.  But 
the same problem is in the 23-branch.

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Fri, 09 Jul 2010 18:50:02 GMT) Full text and rfc822 format available.

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

From: Stephen Berman <stephen.berman <at> gmx.net>
To: "Jan D." <jhdgoo <at> gmail.com>
Cc: 6592 <at> debbugs.gnu.org
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Fri, 09 Jul 2010 20:49:31 +0200
On Fri, 09 Jul 2010 13:49:28 +0200 "Jan D." <jhdgoo <at> gmail.com> wrote:

> Notice that the fringe close to scroll bar is much wider than the other
> fringe (see screenshot).  This appears to depend on the font size, as
> for smaller fonts, the effect is not that noticable.
> For example, with Gtk+ and lucid, monospace-19 shows this rather well,
> but for monospace-20, there is little difference.  But for monospace-20
> the fringes are much smaller than for monospace-20.  Why?

Hasn't it been like that since this change?

2007-07-27  YAMAMOTO Mitsuharu  <mituharu <at> math.s.chiba-u.ac.jp>

	* w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
	scroll bar gap.
	(x_scroll_bar_create): Set bar->fringe_extended_p.
	(w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
	on frame edge.  Check fringe background extension.  Don't clear
	extended fringe background area.

	* w32term.h (struct scroll_bar): New member fringe_extended_p.
	(w32_fill_area): Enclose multiple statements with do ... while (0).

	* xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
	Extend fringe background to scroll bar gap.
	(x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
	Set bar->fringe_extended_p.
	(XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
	Put leftmost/rightmost scroll bars on frame edge.  Check fringe
	background extension.  Don't clear extended fringe background area.

	* xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
	New member fringe_extended_p.

Steve Berman




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Sat, 10 Jul 2010 00:44:01 GMT) Full text and rfc822 format available.

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

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: "Jan D." <jhdgoo <at> gmail.com>, 6592 <at> debbugs.gnu.org
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Sat, 10 Jul 2010 09:42:59 +0900
>>>>> On Fri, 09 Jul 2010 20:49:31 +0200, Stephen Berman <stephen.berman <at> gmx.net> said:

> On Fri, 09 Jul 2010 13:49:28 +0200 "Jan D." <jhdgoo <at> gmail.com>
> wrote:
>> Notice that the fringe close to scroll bar is much wider than the
>> other fringe (see screenshot).  This appears to depend on the font
>> size, as for smaller fonts, the effect is not that noticable.  For
>> example, with Gtk+ and lucid, monospace-19 shows this rather well,
>> but for monospace-20, there is little difference.  But for
>> monospace-20 the fringes are much smaller than for monospace-20.
>> Why?

> Hasn't it been like that since this change?

> 2007-07-27 YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Exactly.  For more info, see the thread starting from 
http://lists.gnu.org/archive/html/emacs-devel/2007-03/msg00295.html

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Sat, 10 Jul 2010 09:04:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 6592 <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Sat, 10 Jul 2010 11:03:08 +0200
[Message part 1 (text/plain, inline)]

YAMAMOTO Mitsuharu skrev 2010-07-10 02.42:
>>>>>> On Fri, 09 Jul 2010 20:49:31 +0200, Stephen Berman<stephen.berman <at> gmx.net>  said:
>
>> On Fri, 09 Jul 2010 13:49:28 +0200 "Jan D."<jhdgoo <at> gmail.com>
>> wrote:
>>> Notice that the fringe close to scroll bar is much wider than the
>>> other fringe (see screenshot).  This appears to depend on the font
>>> size, as for smaller fonts, the effect is not that noticable.  For
>>> example, with Gtk+ and lucid, monospace-19 shows this rather well,
>>> but for monospace-20, there is little difference.  But for
>>> monospace-20 the fringes are much smaller than for monospace-20.
>>> Why?
>
>> Hasn't it been like that since this change?
>
>> 2007-07-27 YAMAMOTO Mitsuharu<mituharu <at> math.s.chiba-u.ac.jp>
>
> Exactly.  For more info, see the thread starting from
> http://lists.gnu.org/archive/html/emacs-devel/2007-03/msg00295.html
>

There is something off with the calculations for the frame size then.  Check 
attached screen shots.  The right fringe is not visible.

The frame size calculation uses f->scroll_bar_actual_width which in this case 
is 16.  But the finge padding must be 14 pixels (font width is 15, so I assume 
padding to 30 is done).

In what frame parameter or struct frame member is this padding seen if not in 
scroll_bar_actual_width?

Please don't suggest using columns * font width, it would just make the 
restriction of integral font width harder to remove.

	Jan D.


[left2.png (image/png, attachment)]
[right2.png (image/png, attachment)]

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Sun, 11 Jul 2010 03:49:01 GMT) Full text and rfc822 format available.

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

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 6592 <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Sun, 11 Jul 2010 12:48:35 +0900
>>>>> On Sat, 10 Jul 2010 11:03:08 +0200, Jan Djärv <jan.h.d <at> swipnet.se> said:

>>> Hasn't it been like that since this change?
>> 
>>> 2007-07-27 YAMAMOTO Mitsuharu<mituharu <at> math.s.chiba-u.ac.jp>
>> 
>> Exactly.  For more info, see the thread starting from
>> http://lists.gnu.org/archive/html/emacs-devel/2007-03/msg00295.html
>> 

> There is something off with the calculations for the frame size
> then.  Check attached screen shots.  The right fringe is not
> visible.

The change I made in 2007-07-27 has nothing to do with the calculation
of fringe width, the position of fringes, or frame size calculation.
It just fills the gap between a fringe and a scroll bar with the
fringe background color when appropriate.  The gap is still a part of
scroll bar area painted by the same color with the adjacent fringe
background.  So if something is wrong with frame size calculation,
then that should have happened without my change.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Sun, 11 Jul 2010 08:16:02 GMT) Full text and rfc822 format available.

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

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 6592 <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Sun, 11 Jul 2010 10:15:54 +0200

YAMAMOTO Mitsuharu skrev 2010-07-11 05.48:
>>>>>> On Sat, 10 Jul 2010 11:03:08 +0200, Jan Djärv<jan.h.d <at> swipnet.se>  said:
>
>>>> Hasn't it been like that since this change?
>>>
>>>> 2007-07-27 YAMAMOTO Mitsuharu<mituharu <at> math.s.chiba-u.ac.jp>
>>>
>>> Exactly.  For more info, see the thread starting from
>>> http://lists.gnu.org/archive/html/emacs-devel/2007-03/msg00295.html
>>>
>
>> There is something off with the calculations for the frame size
>> then.  Check attached screen shots.  The right fringe is not
>> visible.
>
> The change I made in 2007-07-27 has nothing to do with the calculation
> of fringe width, the position of fringes, or frame size calculation.
> It just fills the gap between a fringe and a scroll bar with the
> fringe background color when appropriate.  The gap is still a part of
> scroll bar area painted by the same color with the adjacent fringe
> background.  So if something is wrong with frame size calculation,
> then that should have happened without my change.

That is true.  I see your patch uses WINDOW_CONFIG_SCROLL_BAR_WIDTH, and there 
is a corresponding FRAME_CONFIG_SCROLL_BAR_WIDTH, but that is never set.

However, I think that scroll bars at the frame level (i.e. left or right edge 
of the frame) don't need any padding.  It is only on other window scroll bars
that padding is needed, to keep integral column width.

I'll try something based on that.

	Jan D.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6592; Package emacs. (Mon, 12 Jul 2010 00:27:02 GMT) Full text and rfc822 format available.

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

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 6592 <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Mon, 12 Jul 2010 09:26:50 +0900
>>>>> On Sun, 11 Jul 2010 10:15:54 +0200, Jan Djärv <jan.h.d <at> swipnet.se> said:

> However, I think that scroll bars at the frame level (i.e. left or
> right edge of the frame) don't need any padding.  It is only on
> other window scroll bars that padding is needed, to keep integral
> column width.

Even for a leftmost/rightmost scroll bar, some adjustment is necessary
if its width/position is configured differently from what the frame
parameter specifies (scroll bar width/position can be specified per
frame, per buffer, and per window).  Perhaps the current fringe
background extension code can be reused for such cases.

> I'll try something based on that.

Good luck!

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Wed, 14 Jul 2010 15:18:02 GMT) Full text and rfc822 format available.

Notification sent to "Jan D." <jhdgoo <at> gmail.com>:
bug acknowledged by developer. (Wed, 14 Jul 2010 15:18:02 GMT) Full text and rfc822 format available.

Message #31 received at 6592-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: 6592-done <at> debbugs.gnu.org
Subject: Re: bug#6592: 24.0.50; Fringe at scroll bar side is wider (sometimes).
Date: Wed, 14 Jul 2010 17:17:27 +0200
Simple fix checked in.  Complete solution (remove scroll bar width 
restriction) is a longer undertaking.

	Jan D.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Aug 2010 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 317 days ago.

Previous Next


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