GNU bug report logs - #13011
24.2; Text flickering moving cursor with box around text enabled

Previous Next

Package: emacs;

Reported by: mario giovinazzo <mario.giovinazzo <at> virgilio.it>

Date: Tue, 27 Nov 2012 16:34:01 UTC

Severity: minor

Tags: fixed

Merged with 13130, 17612

Found in versions 24.2, 24.2.90, 24.3

Fixed in version 28.1

Done: Noam Postavsky <npostavs <at> gmail.com>

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 13011 in the body.
You can then email your comments to 13011 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 bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 27 Nov 2012 16:34:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to mario giovinazzo <mario.giovinazzo <at> virgilio.it>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 Nov 2012 16:34:01 GMT) Full text and rfc822 format available.

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

From: mario giovinazzo <mario.giovinazzo <at> virgilio.it>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Text flickering moving cursor with box around text enabled
Date: Tue, 27 Nov 2012 11:42:24 +0100
*** E-Mail body has been placed on clipboard, please paste it here! ***

The problem occurs when I customize hl-line enabling box around text
to make evident the current line.
The box around text (also 1 pixel) changes the inside text position
thus producing a vertical and horizontal flickering when I move the cursor.
Setting a box of width -1 (a negative number) stops the vertical
flickering but still remains the horizontal one.





In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600)
 of 2012-08-29 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  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: ENG
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  global-hl-line-mode: t
  global-hi-lock-mode: t
  hi-lock-mode: t
  cua-mode: t
  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
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <tool-bar> <kill-buffer> <help-echo> <help-echo> 
M-x C-y <return>

Recent messages:
Loading cua-base...done
Loading delsel...done
Loading hi-lock...done
Loading hl-line...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
.emacs has auto save data; consider M-x recover-this-file

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time windmove cc-styles cc-align cc-engine
cc-vars cc-defs regexp-opt tempo-c-cpp tempo edmacro kmacro uniquify
advice help-fns advice-preload paren hl-line hi-lock delsel cua-base
cus-start cus-load time-date tooltip ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar 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 minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 27 Nov 2012 17:45:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: mario giovinazzo <mario.giovinazzo <at> virgilio.it>
Cc: 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Tue, 27 Nov 2012 19:43:02 +0200
> Date: Tue, 27 Nov 2012 11:42:24 +0100
> From: mario giovinazzo <mario.giovinazzo <at> virgilio.it>
> 
> The problem occurs when I customize hl-line enabling box around text
> to make evident the current line.
> The box around text (also 1 pixel) changes the inside text position
> thus producing a vertical and horizontal flickering when I move the cursor.
> Setting a box of width -1 (a negative number) stops the vertical
> flickering but still remains the horizontal one.

Can you please show a minimal recipe to reproduce this starting with
"emacs -Q"?  That will make the job of looking into this much easier.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Wed, 28 Nov 2012 17:58:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: mario giovinazzo <mario.giovinazzo <at> virgilio.it>
Cc: 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Wed, 28 Nov 2012 19:54:23 +0200
[Please keep the bug address on the CC list.]

> Date: Wed, 28 Nov 2012 16:14:53 +0100
> From: mario giovinazzo <mario.giovinazzo <at> virgilio.it>
> 
> To reproduce the behavior is very easy.
> My .emacs file contains only this 2  lines:
> 
> 
> (custom-set-variables '(global-hl-line-mode t))
> (custom-set-faces '(hl-line ((t (:box (:line-width 1 :color "gray50"))))))

Thanks.

> If you open any text file and move the cursor inside text with arrow key
> (up, down, right, left), the" box around text" follow the cursor,
> and the text flickers (I suppose +- 2 pixels). It is evident.

I see no flickering when moving cursor horizontally within the same
screen line.  None at all.

When moving cursor vertically, I see this:

  . The text of the current line moves slightly up when the current
    line moves up or down.

  . When the current line is empty, the text in all the lines below it
    moves up slightly, then moves back down when the current lines
    becomes a line with some text.

Is this what you call "flicker"?  Or do you see something else?

If the above is what you see, then please tell what you expect Emacs
to do instead.  You've changed the face of the current line such that
it takes slightly more pixels on the screen.  Emacs just obeys your
specifications, it cannot display a line in less pixels than it needs
to draw all of the characters on it in the face you requested.  The
same would happen if you set the hl-line face to use a larger font,
for example.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Thu, 29 Nov 2012 04:42:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 13011 <at> debbugs.gnu.org, mario giovinazzo <mario.giovinazzo <at> virgilio.it>
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Wed, 28 Nov 2012 23:39:04 -0500
>> (custom-set-variables '(global-hl-line-mode t))
>> (custom-set-faces '(hl-line ((t (:box (:line-width 1 :color "gray50"))))))
> Thanks.

Actually the interesting case is when the box is of width -1.

> I see no flickering when moving cursor horizontally within the same
> screen line.  None at all.

The problem is when moving vertically.

> If the above is what you see, then please tell what you expect Emacs
> to do instead.

When the box width is 1, indeed, there's no much Emacs could do, but
when the width is -1 (i.e. drawn "inside" the normal text box),
characters shouldn't move, whereas they do (they get shifted
horizontally by a few pixels, and if you try it in the *Help* buffer
you may see that the number of pixel shifts seems to increase at
transition points between different fonts, such as italics for function
arguments).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Thu, 29 Nov 2012 16:45:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, Kenichi Handa <handa <at> gnu.org>
Cc: 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Thu, 29 Nov 2012 18:42:47 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: mario giovinazzo <mario.giovinazzo <at> virgilio.it>,  13011 <at> debbugs.gnu.org
> Date: Wed, 28 Nov 2012 23:39:04 -0500
> 
> When the box width is 1, indeed, there's no much Emacs could do, but
> when the width is -1 (i.e. drawn "inside" the normal text box),
> characters shouldn't move, whereas they do (they get shifted
> horizontally by a few pixels, and if you try it in the *Help* buffer
> you may see that the number of pixel shifts seems to increase at
> transition points between different fonts, such as italics for function
> arguments).

Looks like this was done on (some) purpose:

In xdisp.c:

	  /* If face has a box, add the box thickness to the character
	     height.  If character has a box line to the left and/or
	     right, add the box line width to the character's width.  */
	  if (face->box != FACE_NO_BOX)
	    {
	      int thick = face->box_line_width;

	      if (thick > 0)
		{
		  it->ascent += thick;
		  it->descent += thick;
		}
	      else
		thick = -thick;   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

	      if (it->start_of_box_run_p)
		it->pixel_width += thick;  <<<<<<<<<<<<<<<<<<<<<<<<<
	      if (it->end_of_box_run_p)
		it->pixel_width += thick;
	    }

Note that the ascent and descent are only enlarged when the value is
positive, but pixel_width is also enlarged when the value is negative.

And then in xterm.c:

  /* If first glyph of S has a left box line, start drawing the text
     of S to the right of that box line.  */
  if (s->face->box != FACE_NO_BOX
      && s->first_glyph->left_box_line_p)
    x = s->x + eabs (s->face->box_line_width);  <<<<<<<<<<<<<<<<<<<<
  else         ^^^^
    x = s->x;

Moreover, the commentary in dispextern.h explicitly says that the
left/right borders are not affected by the sign of the box width (note
the last sentence):

  /* Non-zero means characters in this face have a box of that
     thickness around them.  If this value is negative, its absolute
     value indicates the thickness, and the horizontal (top and
     bottom) borders of box are drawn inside of the character glyphs'
     area.  The vertical (left and right) borders of the box are drawn
     in the same way as when this value is positive.  */
  int box_line_width;

and the doc string in faces.el only mentions the top and bottom borders
of the box as being affected by negative values:

  `:box'

  VALUE specifies whether characters in FACE should have a box drawn
  around them.  If VALUE is nil, explicitly don't draw boxes.  If
  VALUE is t, draw a box with lines of width 1 in the foreground color
  of the face.  If VALUE is a string, the string must be a color name,
  and the box is drawn in that color with a line width of 1.  Otherwise,
  VALUE must be a property list of the form `(:line-width WIDTH
  :color COLOR :style STYLE)'.  If a keyword/value pair is missing from
  the property list, a default value will be used for the value, as
  specified below.  WIDTH specifies the width of the lines to draw; it
  defaults to 1.  If WIDTH is negative, the absolute value is the width
  of the lines, and draw top/bottom lines inside the characters area,
  not around it.

Only the ELisp manual makes it sound like both horizontal and vertical
borders are drawn inside the character cell:

    `(:line-width WIDTH :color COLOR :style STYLE)'
          This way you can explicitly specify all aspects of the box.
          The value WIDTH specifies the width of the lines to draw; it
          defaults to 1.  A negative width -N means to draw a line of
          width N that occupies the space of the underlying text, thus
          avoiding any increase in the character height or width.

I made a provisional change that behaves with left and right borders
like it does with horizontal ones, and it seems to work, at least with
character display (didn't text with images, image slices, composite
characters, etc.).  But I'd like to ask Handa-san (CC'ed), who wrote
the code for this feature (almost 12 years ago!), whether he might
remember why the code deliberately makes the left and right borders
behave differently from top and bottom ones.

To see the original changeset that introduced this feature, type

   bzr diff -r 36005..36010




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Thu, 29 Nov 2012 19:09:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Kenichi Handa <handa <at> gnu.org>, 13011 <at> debbugs.gnu.org,
	mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Thu, 29 Nov 2012 14:06:07 -0500
>      area.  The vertical (left and right) borders of the box are drawn
>      in the same way as when this value is positive.  */
>   int box_line_width;
[...]
> I made a provisional change that behaves with left and right borders
> like it does with horizontal ones, and it seems to work, at least with
> character display (didn't text with images, image slices, composite
> characters, etc.).  But I'd like to ask Handa-san (CC'ed), who wrote
> the code for this feature (almost 12 years ago!), whether he might
> remember why the code deliberately makes the left and right borders
> behave differently from top and bottom ones.

I'm curious as well.  The only think that comes to mind is that in most
fonts, there's usually some empty pixel-line(s) at the top and the
bottom, whereas there often't isn't any empty pixel-lines at all on the
left (and/or on the right) side.  So there's more risk of overwriting
useful pixels on the left&right than at top&bottom.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Fri, 30 Nov 2012 08:16:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: "mario.giovinazzo <at> virgilio.it" <mario.giovinazzo <at> virgilio.it>
Cc: monnier <at> iro.umontreal.ca, 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Fri, 30 Nov 2012 10:13:30 +0200
[Please don't remove the bug address from the CC list, we want all
this discussion to be archived in the bug tracker.]

> Date: Fri, 30 Nov 2012 01:45:30 +0100 (CET)
> From: "mario.giovinazzo <at> virgilio.it" <mario.giovinazzo <at> virgilio.it>
> Cc:  <monnier <at> iro.umontreal.ca>
> 
> The horizontal flickering has 2 cases:
> 
> 1) font-lock mode disabled.
> Current line has a single global box around current line 
> Moving cursor vertically produce 1 pixel flickering due to the left border 
> that adds 1 pixel.
> Moving cursor horizontal (along the same line) produce flickering crossing 
> parenthesis when paren-mode is enabled. 2 more pixels if the matching 
> one is in another line, 4 more pixels if on the same. This because it draw 
> a box on highlight parenthesis adding  2 pixels for box.

This is the same problem as with stretches of white space.  Its reason
is separate from the one that causes the entire line to shift one
pixel to the right when the line thickness is -1.

> 2) Font-lock-mode enabled.
> Current line seems to have a single global box but looking careful it has 
> many consecutive boxes, one for every font-lock-face.

Same as above: a different reason.

> Moving cursor vertical increase current line length of one pixel for box 
> (cab be very big) producing flickering.

This is done deliberately, as I show in the code snippets I posted.
We are discussing why was this done, and will see whether and how to
fix that after we understand the reason(s).

> This happens also in line without space and tab like this no sense line:
> void{(if(a<b)while(c=d)do)switch(e)

Same as above: a different reason.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 09:36:02 GMT) Full text and rfc822 format available.

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

From: Kenichi Handa <handa <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: eliz <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 03 Dec 2012 18:29:18 +0900
In article <jwvhao8z0y8.fsf-monnier+emacs <at> gnu.org>, Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> > I made a provisional change that behaves with left and right borders
> > like it does with horizontal ones, and it seems to work, at least with
> > character display (didn't text with images, image slices, composite
> > characters, etc.).  But I'd like to ask Handa-san (CC'ed), who wrote
> > the code for this feature (almost 12 years ago!), whether he might
> > remember why the code deliberately makes the left and right borders
> > behave differently from top and bottom ones.

> I'm curious as well.  The only think that comes to mind is that in most
> fonts, there's usually some empty pixel-line(s) at the top and the
> bottom, whereas there often't isn't any empty pixel-lines at all on the
> left (and/or on the right) side.  So there's more risk of overwriting
> useful pixels on the left&right than at top&bottom.

Yes.  That's the reason of this asymmetry.  The original
intention of this feature was to make modeline occupy only
canonical line height even with the current style.

---
Kenichi Handa
handa <at> gnu.org





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 16:37:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kenichi Handa <handa <at> gnu.org>
Cc: monnier <at> iro.umontreal.ca, mario.giovinazzo <at> virgilio.it,
	13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 03 Dec 2012 18:33:30 +0200
> From: Kenichi Handa <handa <at> gnu.org>
> Cc: eliz <at> gnu.org,  mario.giovinazzo <at> virgilio.it,  13011 <at> debbugs.gnu.org
> Date: Mon, 03 Dec 2012 18:29:18 +0900
> 
> In article <jwvhao8z0y8.fsf-monnier+emacs <at> gnu.org>, Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> 
> > > I made a provisional change that behaves with left and right borders
> > > like it does with horizontal ones, and it seems to work, at least with
> > > character display (didn't text with images, image slices, composite
> > > characters, etc.).  But I'd like to ask Handa-san (CC'ed), who wrote
> > > the code for this feature (almost 12 years ago!), whether he might
> > > remember why the code deliberately makes the left and right borders
> > > behave differently from top and bottom ones.
> 
> > I'm curious as well.  The only think that comes to mind is that in most
> > fonts, there's usually some empty pixel-line(s) at the top and the
> > bottom, whereas there often't isn't any empty pixel-lines at all on the
> > left (and/or on the right) side.  So there's more risk of overwriting
> > useful pixels on the left&right than at top&bottom.
> 
> Yes.  That's the reason of this asymmetry.  The original
> intention of this feature was to make modeline occupy only
> canonical line height even with the current style.

So does anyone object to lifting this limitation, even though it might
degrade the quality of displaying the first and the last characters in
the run of characters that have the box face?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 16:48:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>, "'Kenichi Handa'" <handa <at> gnu.org>
Cc: 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: RE: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 3 Dec 2012 08:44:39 -0800
> So does anyone object to lifting this limitation, even though it might
> degrade the quality of displaying the first and the last characters in
> the run of characters that have the box face?

It's not obvious to me what that means for users.  Why don't you post before and
after images so we can judge?

Or if this affects something other than the visual appearance, so images won't
show the difference, please explain what this will change for users.

And what is the tradeoff for this "degrading"?  What are users gaining by this
sacrifice?

Thx.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 18:12:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: handa <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 03 Dec 2012 20:08:35 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <mario.giovinazzo <at> virgilio.it>, <13011 <at> debbugs.gnu.org>
> Date: Mon, 3 Dec 2012 08:44:39 -0800
> 
> > So does anyone object to lifting this limitation, even though it might
> > degrade the quality of displaying the first and the last characters in
> > the run of characters that have the box face?
> 
> It's not obvious to me what that means for users.  Why don't you post before and
> after images so we can judge?

The examples I have don't show any significant effect.  But I can
explain how you can experiment and see yourself.

Evaluate this:

  (custom-set-variables '(global-hl-line-mode t))
  (custom-set-faces '(hl-line ((t (:box (:line-width -1 :color "gray50"))))))

Then visit any files you like, and move cursor vertically.  You will
see that the text of the current line moves 1 pixel to the right when
you move cursor into that line.  This 1-pixel move is to leave enough
space for the 1-pixel border of the box on the left side of the line,
so that the first character is displayed with all its pixels visible.

The change that is being requested here is to prevent that 1-pixel
shift, which means the box border will be drawn ON the left-most
character, obscuring some of its pixels on the left.

For a more prominent effect, replace -1 above with -4.

> And what is the tradeoff for this "degrading"?  What are users gaining by this
> sacrifice?

The gain is that, with the above settings in effect, the text of a
line will not shift to the left when cursor moves into that line.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 18:45:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: handa <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: RE: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 3 Dec 2012 10:41:52 -0800
[Message part 1 (text/plain, inline)]
Thanks for the explanation and experiment.

Apart from that example, I imagine that this also affects any text that uses a
face that has a box with a negative :line-width.  Is that correct?

If so, that will impact faces that I use.  And IIUC, it means that the text
displayed in the boxed face will have its first and last chars partly obscured
by the box border.  Is that right?

If so, I would object.  Most uses of such faces are not like the hl-line
example, where there is a lot of text so faced.  Most uses (most of mine, at
least) are short bits of text, such as words.  And for these uses it is more
important that the first and last chars be displayed clearly (entirely).  I even
use a boxed face for some single characters (including using it for face
`escape-glyph').

I guess I would not object to making such a change for situations where the
chars to be partly obscured are whitespace only.  But I do object to overwriting
typical chars such as those with word or symbol syntax.

At least I think I object.  This change seems like regression, not improvement.

Attached is a screenshot from emacs -Q.  IIUC, you are saying that instead of
the text shown in mode-line-highlight face being slightly misaligned wrt the
other text, so that the `a' is not partly obscured by the left box border, the
text would be aligned with the others and the boxed `a' would be partly obscured
by the left box border.

OK, so by default the boxing here is 2, not -2, but if you set it to -2 that
does not change the argument/situation, AFAICT.  Likewise, if I use 2 or 4 in
your example test I see the same effect of the text moving slightly to the right
as it is highlighted.  Is the proposed change only a "fix" for negative values
or does it affect also positive values?

What is the motivation for this change?  Is it only in order to have fixed-width
text be better aligned? To me, that is less important than for the text to be
clearly visible - esp. for single words etc.

The boxing is supposed to make the text stand out, not make it harder to read.
This change seems to go against the usefulness of boxed faces.

Would it be possible for this to be a user choice?  E.g., could this perhaps be
added to `box' as another attribute, in addition to width, color, and style?  If
so, that would perhaps be a solution everyone could live with.  If so, I would
suggest that the default be the current behavior (clear text, even if slightly
misaligned).

Just one opinion, of course.
[throw-boxed-face.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 19:00:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: handa <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 03 Dec 2012 20:56:50 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <handa <at> gnu.org>, <mario.giovinazzo <at> virgilio.it>, <13011 <at> debbugs.gnu.org>
> Date: Mon, 3 Dec 2012 10:41:52 -0800
> 
> Apart from that example, I imagine that this also affects any text that uses a
> face that has a box with a negative :line-width.  Is that correct?

Yes.

> If so, that will impact faces that I use.  And IIUC, it means that the text
> displayed in the boxed face will have its first and last chars partly obscured
> by the box border.  Is that right?

Right.

> I guess I would not object to making such a change for situations where the
> chars to be partly obscured are whitespace only.  But I do object to overwriting
> typical chars such as those with word or symbol syntax.

How about doing that only for 1-pixel borders?

> Attached is a screenshot from emacs -Q.  IIUC, you are saying that instead of
> the text shown in mode-line-highlight face being slightly misaligned wrt the
> other text, so that the `a' is not partly obscured by the left box border, the
> text would be aligned with the others and the boxed `a' would be partly obscured
> by the left box border.

Yes, that's it.

> Is the proposed change only a "fix" for negative values or does it
> affect also positive values?

Only negative values will be affected.

> What is the motivation for this change?

See the beginning of this bug report: when a box face is used for
hl-line mode, moving cursor vertically produces an annoying shift of
the lines as the cursor moves through them.

> Would it be possible for this to be a user choice?

It's possible.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 19:12:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: handa <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: RE: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 3 Dec 2012 11:09:13 -0800
> > I guess I would not object to making such a change for 
> > situations where the chars to be partly obscured are
> > whitespace only.  But I do object to overwriting
> > typical chars such as those with word or symbol syntax.
> 
> How about doing that only for 1-pixel borders?

Doing what?  Making the change or making the change only for whitespace?

Either way, I don't see why the width would make a difference.  What is the
rationale?

> Yes, that's it.
> 
> > Is the proposed change only a "fix" for negative values or does it
> > affect also positive values?
> 
> Only negative values will be affected.

Why?  The same jerkiness from alignment change occurs for both positive and
negative, AFAICT.

> > What is the motivation for this change?
> 
> See the beginning of this bug report: when a box face is used for
> hl-line mode, moving cursor vertically produces an annoying shift of
> the lines as the cursor moves through them.

Try it with a positive width - same thing.

Again, hl-line boxing is hardly typical, I think (again, not at all typical for
my use, at least).  More typical is boxing a word or two.

And one could even argue that that jerkiness was a feature (!) for hl-line mode.
Anyway, hl-line mode should not be important to this - boxing is for many more
use cases than that.

> > Would it be possible for this to be a user choice?
> 
> It's possible.

That I would be in favor of.  Simply changing the behavior/appearance without
user choice, I would be against.  Again, just one opinion, of course.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 21:08:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: handa <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 03 Dec 2012 23:04:40 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <handa <at> gnu.org>, <mario.giovinazzo <at> virgilio.it>, <13011 <at> debbugs.gnu.org>
> Date: Mon, 3 Dec 2012 11:09:13 -0800
> 
> > > I guess I would not object to making such a change for 
> > > situations where the chars to be partly obscured are
> > > whitespace only.  But I do object to overwriting
> > > typical chars such as those with word or symbol syntax.
> > 
> > How about doing that only for 1-pixel borders?
> 
> Doing what?  Making the change or making the change only for whitespace?

The former.

> Either way, I don't see why the width would make a difference.  What is the
> rationale?

1 pixel runs a very small risk of obscuring the character in the same
cell.

> > > Is the proposed change only a "fix" for negative values or does it
> > > affect also positive values?
> > 
> > Only negative values will be affected.
> 
> Why?  The same jerkiness from alignment change occurs for both positive and
> negative, AFAICT.

Yes, that's true.  But negative thickness does not enlarge the
vertical dimensions of character cells, whereas it does enlarge the
horizontal dimensions.  The request is to remove this asymmetry, as
the ELisp manual seems to promise:

    `(:line-width WIDTH :color COLOR :style STYLE)'
          This way you can explicitly specify all aspects of the box.
          The value WIDTH specifies the width of the lines to draw; it
          defaults to 1.  A negative width -N means to draw a line of
          width N that occupies the space of the underlying text, thus
          avoiding any increase in the character height or width.

But in fact, character width _is_ increased.

> > > What is the motivation for this change?
> > 
> > See the beginning of this bug report: when a box face is used for
> > hl-line mode, moving cursor vertically produces an annoying shift of
> > the lines as the cursor moves through them.
> 
> Try it with a positive width - same thing.

Yes, but the above says negative values should not have that effect.

> > > Would it be possible for this to be a user choice?
> > 
> > It's possible.
> 
> That I would be in favor of.  Simply changing the behavior/appearance without
> user choice, I would be against.  Again, just one opinion, of course.

What about using thickness of zero for drawing a 1-pixel border inside
of the character cell?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 22:24:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: mario.giovinazzo <at> virgilio.it, 13011 <at> debbugs.gnu.org,
	Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 03 Dec 2012 17:20:48 -0500
>> That I would be in favor of.  Simply changing the behavior/appearance
>> without user choice, I would be against.  Again, just one opinion,
>> of course.
> What about using thickness of zero for drawing a 1-pixel border inside
> of the character cell?

I'd first like to hear why Drew uses negative thickness (and yet
wants it to be positive horizontally).

Also that's a hack, I can totally imagine someone using a very
high-resolution screen with largish fonts (measured in pixels) wanting
a -3 thickness around his hl-line box.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 22:24:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: handa <at> gnu.org, 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: RE: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 3 Dec 2012 14:21:22 -0800
> > > How about doing that only for 1-pixel borders?
> > 
> > Doing what?  Making the change or making the change only 
> > for whitespace?
> 
> The former.
> 
> > Either way, I don't see why the width would make a 
> > difference.  What is the rationale?
> 
> 1 pixel runs a very small risk of obscuring the character in the same
> cell.

I see.  Would probably need to see the effect to judge it.

> > > when a box face is used for
> > > hl-line mode, moving cursor vertically produces an 
> > > annoying shift of the lines as the cursor moves through them.
> > 
> > Try it with a positive width - same thing.
> 
> Yes, but the above says negative values should not have that effect.

Hm.  Is the problem the annoyance of the jerkiness or the fact that the doc does
not describe that jerkiness in the case of a negative value?

I would expect (imagine) that it is the jerkiness that is the problem.

> > > > Would it be possible for this to be a user choice?
> > > 
> > > It's possible.
> > 
> > That I would be in favor of.  Simply changing the 
> > behavior/appearance without user choice, I would be against.
> > Again, just one opinion, of course.
> 
> What about using thickness of zero for drawing a 1-pixel border inside
> of the character cell?

If the problem is only for a 1-pixel inside border, then perhaps that would be
the answer.  If the problem is for any number of pixels or for both inside and
outside borders (or both), then it would be appropriate to add a separate
attribute, independent from the width.

As far as I am concerned, if the only change is to add a new 0-width behavior
that produces a 1-pixel inside border that partially obscures the text, I would
have no problem with that.  In that case, IIUC, the existing attributes and
their values all would do the same thing they do now.  Currently, AFAICT, a
value of 0 means no box is shown.

On the other hand, any (existing or future) code that increments/decrements the
width would then be confronted with an anomaly, and if it expected a value of 0
to remove the box in that context, that would no longer work.

A new, independent attribute would be cleaner, but perhaps it is more difficult
to implement.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Mon, 03 Dec 2012 22:54:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>,
	"'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: RE: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Mon, 3 Dec 2012 14:51:13 -0800
> I'd first like to hear why Drew uses negative thickness (and yet
> wants it to be positive horizontally).

IIRC, I use negative thickness mainly so the height is not increased.  I
typically do not care so much about the width (length) of a boxed word.  But I
do not want added border pixels to change the line height etc.

It really doesn't matter why or when or whether I use negative thickness.  The
question is which of these is the case:

1. The box left & right borders should be allowed to bump into the text that is
boxed.

2. Instead, the box should be shifted to the right because we have added extra
pixel(s) for the box border to the left of the text.

3. We should let users decide between #1 and #2.  For example, using a new box
attribute.

It's really not about me.  It's somewhat about how users use this today, and
what they expect.  But it's also about how users might use it (whether they do
or do not today) and what a user might expect from it.

> Also that's a hack, I can totally imagine someone using a very
> high-resolution screen with largish fonts (measured in pixels) wanting
> a -3 thickness around his hl-line box.

Me too.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 04 Dec 2012 00:18:02 GMT) Full text and rfc822 format available.

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

From: Kenichi Handa <handa <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: monnier <at> iro.umontreal.ca, mario.giovinazzo <at> virgilio.it,
	13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Tue, 04 Dec 2012 09:13:44 +0900
In article <83ip8jrt7p.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:

> So does anyone object to lifting this limitation, even though it might
> degrade the quality of displaying the first and the last characters in
> the run of characters that have the box face?

I don't object to add a feature of drawing box edges inside
the left and right of characters, but I think it is better
to keep the current asymmetric feature too.

How about allowing (VWIDTH . HWIDTH) as a value of :line-width?

---
Kenichi Handa
handa <at> gnu.org




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 11 Dec 2012 12:28:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: mario.giovinazzo <at> virgilio.it
Cc: 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Tue, 11 Dec 2012 14:26:53 +0200
> Date: Fri, 30 Nov 2012 10:13:30 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 13011 <at> debbugs.gnu.org
> 
> > Date: Fri, 30 Nov 2012 01:45:30 +0100 (CET)
> > From: "mario.giovinazzo <at> virgilio.it" <mario.giovinazzo <at> virgilio.it>
> > Cc:  <monnier <at> iro.umontreal.ca>
> > 
> > The horizontal flickering has 2 cases:
> > 
> > 1) font-lock mode disabled.
> > Current line has a single global box around current line 
> > Moving cursor vertically produce 1 pixel flickering due to the left border 
> > that adds 1 pixel.
> > Moving cursor horizontal (along the same line) produce flickering crossing 
> > parenthesis when paren-mode is enabled. 2 more pixels if the matching 
> > one is in another line, 4 more pixels if on the same. This because it draw 
> > a box on highlight parenthesis adding  2 pixels for box.
> 
> This is the same problem as with stretches of white space.  Its reason
> is separate from the one that causes the entire line to shift one
> pixel to the right when the line thickness is -1.
> 
> > 2) Font-lock-mode enabled.
> > Current line seems to have a single global box but looking careful it has 
> > many consecutive boxes, one for every font-lock-face.
> 
> Same as above: a different reason.

This part of the bug is now fixed in revision 111191 on the trunk.

For the rest of the bug I'm awaiting the decision wrt how to treat
vertical box borders whose width is negative.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 11 Dec 2012 14:03:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 13011 <at> debbugs.gnu.org, mario.giovinazzo <at> virgilio.it
Subject: Re: bug#13011: 24.2;
	Text flickering moving cursor with box around text enabled
Date: Tue, 11 Dec 2012 09:01:19 -0500
> For the rest of the bug I'm awaiting the decision wrt how to treat
> vertical box borders whose width is negative.

I think the suggestion to support a new box width specification of the
form (WIDTH . HEIGHT) is the best option.  So for backward
compatibility -N will mean (N . -N) and if someone wants "all inside, no
flicker" she can use (-N . -N).


        Stefan




Merged 13011 13130. Request was from Dmitry Gutov <dgutov <at> yandex.ru> to control <at> debbugs.gnu.org. (Tue, 11 Dec 2012 22:40:01 GMT) Full text and rfc822 format available.

Merged 13011 13130 17612. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 28 May 2014 14:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Fri, 19 Jan 2018 18:16:01 GMT) Full text and rfc822 format available.

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

From: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>
To: 13011 <at> debbugs.gnu.org
Subject: Patch: Text flickering moving cursor with box around text enabled
Date: Fri, 19 Jan 2018 19:08:13 +0100
[Message part 1 (text/plain, inline)]
Hi,

I run into this issue so I tried to fix it to go into the emacs core code.
I followed the suggestion made in the bug and set box attribute to be
in the form (width . height). I tested it on windows and gnu/linux system
and on a mac os virtual machine but I am not sure to have tested all the
possible drawing as there are plenty of them. I tested both text box
and image relief.
I would appreciate that other people (especially those who use CAIRO
and those under real os x machine) confirm that the result is correct.

My simple test script :
----
(defun test_box_around_text (s)
  (save-excursion
    (goto-char (point-min))
    (insert "ABCDE\nABCDE\nABCDE\n")
    (put-text-property 8 11 'font-lock-face `(:box (:line-width ,s :color
"red")))
    ;; (put-text-property 8 11 'font-lock-face `(:box (:line-width ,s
:color "white" :style released-button)))
    ))

(test_box_around_text 4)
(test_box_around_text -4)
(test_box_around_text '(4 . -4))
(test_box_around_text '(-4 . 4))
(test_box_around_text '(-4 . -4))
(test_box_around_text '(4 . 0))
(test_box_around_text '(0 . 4))
(test_box_around_text '(4 . 1))
(test_box_around_text '(1 . 4))
(test_box_around_text '(-4 . 1))
(test_box_around_text '(1 . -4))

(save-excursion
    (goto-char (point-min))
    (insert-image
     (create-image
      "splash.svg" nil nil :relief 12)))
----

Thanks in advance,
Alexandre
[Message part 2 (text/html, inline)]
[0001-Allow-negative-line-width-for-box-face-attribute.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Sat, 10 Aug 2019 21:22:01 GMT) Full text and rfc822 format available.

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

From: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>
To: 13011 <at> debbugs.gnu.org
Subject: [PATCH] Text flickering moving cursor with box around text enabled
Date: Sat, 10 Aug 2019 23:21:32 +0200
[Message part 1 (text/plain, inline)]
Hi,

After seeing that some people were interrest about this issue on reddit, I
rejump in this change. I saw that the customization of box were not
correctly done so I correct it.
Here is the updated patch.

Thanks,
Alexandre
[Message part 2 (text/html, inline)]
[0001-Allow-negative-line-width-for-box-face-attribute.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 20 Aug 2019 13:45:02 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>
Cc: 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: [PATCH] Text flickering moving cursor with box around
 text enabled
Date: Tue, 20 Aug 2019 09:44:21 -0400
Alexandre Adolphe <alexandre.adolphe <at> gmail.com> writes:

> After seeing that some people were interrest about this issue on reddit, I
> rejump in this change. I saw that the customization of box were not
> correctly done so I correct it.
> Here is the updated patch.

It looks okay I think (I don't run macOS either though).  Have you
assigned copyright?  I don't see your name in the list.

If you are willing to assign copyright, you can get that started by
filling in the form at
https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request-assign.future
and sending it to assign <at> gnu.org.  The clerk will reply with further
instructions.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Fri, 11 Oct 2019 23:32:02 GMT) Full text and rfc822 format available.

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

From: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: [PATCH] Text flickering moving cursor with box around
 text enabled
Date: Sat, 12 Oct 2019 01:31:16 +0200
Hi Noam,

Le mar. 20 août 2019 à 15:44, Noam Postavsky <npostavs <at> gmail.com> a écrit :
>
> It looks okay I think (I don't run macOS either though).  Have you
> assigned copyright?  I don't see your name in the list.

I have completed the assignment for copyright.
I also checked that the patch is always applying correctly.

Thanks in advance,
Alexandre




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Tue, 15 Oct 2019 07:41:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>, 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: [PATCH] Text flickering moving cursor with box around
 text enabled
Date: Tue, 15 Oct 2019 09:40:23 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> It looks okay I think (I don't run macOS either though).  Have you
> assigned copyright?  I don't see your name in the list.

I've tested the patch on macOS 10.13, and it works as expected.  One
could use this to see that it gets rid of the horizontal flickering
when changing lines:

  (custom-set-variables '(global-hl-line-mode t))
  (custom-set-faces '(hl-line ((t (:box (:line-width (-1 . -1) :color
"gray50"))))))

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Wed, 01 Apr 2020 22:06:01 GMT) Full text and rfc822 format available.

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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>
Cc: 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: [PATCH] Text flickering moving cursor with box
 around text enabled
Date: Wed, 01 Apr 2020 18:05:43 -0400
tags 13011 fixed
close 13011 28.1
quit

Alexandre Adolphe <alexandre.adolphe <at> gmail.com> writes:

> After seeing that some people were interrest about this issue on reddit, I
> rejump in this change. I saw that the customization of box were not
> correctly done so I correct it.
> Here is the updated patch.

Finally pushed to master, sorry for the delay.

[1: 34ae2d0c22]: 2020-04-01 18:02:55 -0400
  Allow negative line width for :box face attribute
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=34ae2d0c220c945443e94a43d043a4a63c444bf4




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 01 Apr 2020 22:06:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 13011 <at> debbugs.gnu.org and mario giovinazzo <mario.giovinazzo <at> virgilio.it> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 01 Apr 2020 22:06:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13011; Package emacs. (Fri, 03 Apr 2020 01:29:01 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Alexandre Adolphe <alexandre.adolphe <at> gmail.com>, 13011 <at> debbugs.gnu.org
Subject: Re: bug#13011: [PATCH] Text flickering moving cursor with box around
 text enabled
Date: Fri, 3 Apr 2020 04:27:54 +0300
On 11.08.2019 00:21, Alexandre Adolphe wrote:
> After seeing that some people were interrest about this issue on reddit, 
> I rejump in this change. I saw that the customization of box were not 
> correctly done so I correct it.
> Here is the updated patch.

Thanks, Alexandre!

It's a welcome change.




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

This bug report was last modified 3 years and 332 days ago.

Previous Next


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