GNU bug report logs - #39074
27.0.60; [PATCH] Horizontal line messes with variable value display in Custom buffers

Previous Next

Package: emacs;

Reported by: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>

Date: Fri, 10 Jan 2020 17:29:01 UTC

Severity: normal

Tags: patch

Found in version 27.0.60

Done: Kévin Le Gouguec <kevin.legouguec <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 39074 in the body.
You can then email your comments to 39074 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#39074; Package emacs. (Fri, 10 Jan 2020 17:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kévin Le Gouguec <kevin.legouguec <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 Jan 2020 17:29:01 GMT) Full text and rfc822 format available.

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

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.60; [PATCH] Horizontal line messes with variable value display
 in Custom buffers
Date: Fri, 10 Jan 2020 18:27:59 +0100
[Message part 1 (text/plain, inline)]
Hi,

Unless I'm mistaken, commit 84a3793b19 introduced a bug when the user
pushes the button to show the value of the last variable in a Custom
buffer.  From emacs -Q:

- M-x customize-group RET visual-line RET
- move point to the "Show Value" button for "Visual Line Fringe
  Indicators" (shown with the etc/images/custom/right icon on a GUI)
- hit RET
- the variable's description has moved *after* the horizontal line
  (cf. screenshot)

[custom-horizontal-line.png (image/png, attachment)]
[Message part 3 (text/plain, inline)]
AFAICT, this is because the function that was introduced to de-duplicate
the horizontal line code does

(let ((p (point)))
  (insert "\n")
  …)

whereas the code to draw the last line did:

(let ((p (1+ (point))))
  (insert "\n\n")
  …)

If I'm not mistaken, this can be fixed simply by adding (insert "\n")
before the final call to custom-group--draw-horizontal-line, as done in
this patch:

[0001-Fix-glitch-with-horizontal-lines-in-Custom-buffers.patch (text/x-diff, attachment)]
[Message part 5 (text/plain, inline)]
I'm not entirely sure why this extra newline is necessary; I haven't
done much digging other than looking at the commit that introduced this
issue.  Maybe the rest of custom-group-value-create does something fishy
and this patch only works around that…

WDYT?


Thank you for your time.


In GNU Emacs 28.0.50 (build 4, i686-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0)
 of 2020-01-08 built on little-buster
Repository revision: 724af7671590cd91df37f64df6be73f6dca0144d
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Configured using:
 'configure --with-xwidgets --with-cairo'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39074; Package emacs. (Fri, 10 Jan 2020 19:05:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Cc: 39074 <at> debbugs.gnu.org
Subject: Re: bug#39074: 27.0.60;
 [PATCH] Horizontal line messes with variable value display in Custom
 buffers
Date: Fri, 10 Jan 2020 21:04:24 +0200
> From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
> Date: Fri, 10 Jan 2020 18:27:59 +0100
> 
> Unless I'm mistaken, commit 84a3793b19 introduced a bug when the user
> pushes the button to show the value of the last variable in a Custom
> buffer.  From emacs -Q:
> 
> - M-x customize-group RET visual-line RET
> - move point to the "Show Value" button for "Visual Line Fringe
>   Indicators" (shown with the etc/images/custom/right icon on a GUI)
> - hit RET
> - the variable's description has moved *after* the horizontal line
>   (cf. screenshot)

Thanks, should be fixed now.




Reply sent to Kévin Le Gouguec <kevin.legouguec <at> gmail.com>:
You have taken responsibility. (Fri, 10 Jan 2020 21:55:01 GMT) Full text and rfc822 format available.

Notification sent to Kévin Le Gouguec <kevin.legouguec <at> gmail.com>:
bug acknowledged by developer. (Fri, 10 Jan 2020 21:55:02 GMT) Full text and rfc822 format available.

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

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39074-done <at> debbugs.gnu.org
Subject: Re: bug#39074: 27.0.60; [PATCH] Horizontal line messes with
 variable value display in Custom buffers
Date: Fri, 10 Jan 2020 22:53:54 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> Thanks, should be fixed now.

Confirmed, thank you!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Feb 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 71 days ago.

Previous Next


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