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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#39074: closed (27.0.60; [PATCH] Horizontal line messes with
 variable value display in Custom buffers)
Date: Fri, 10 Jan 2020 21:55:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 10 Jan 2020 22:53:54 +0100
with message-id <87imlj2d1p.fsf <at> gmail.com>
and subject line Re: bug#39074: 27.0.60; [PATCH] Horizontal line messes with variable value display in Custom buffers
has caused the debbugs.gnu.org bug report #39074,
regarding 27.0.60; [PATCH] Horizontal line messes with variable value display in Custom buffers
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
39074: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39074
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 5 (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 7 (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
[Message part 8 (message/rfc822, inline)]
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!


This bug report was last modified 5 years and 127 days ago.

Previous Next


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