GNU bug report logs - #47673
Absurdly long input field in Customize

Previous Next

Package: emacs;

Reported by: scame <laszlomail <at> protonmail.com>

Date: Fri, 9 Apr 2021 13:21:01 UTC

Severity: minor

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 47673 in the body.
You can then email your comments to 47673 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#47673; Package emacs. (Fri, 09 Apr 2021 13:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to scame <laszlomail <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 09 Apr 2021 13:21:02 GMT) Full text and rfc822 format available.

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

From: scame <laszlomail <at> protonmail.com>
To: "scame via Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Subject: Absurdly long input field in Customize
Date: Fri, 09 Apr 2021 13:20:12 +0000
[Message part 1 (text/plain, inline)]
See attached pic. The value is a number, does it really need this unsightly long input field?
[Message part 2 (text/html, inline)]
[Capture.PNG (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Fri, 09 Apr 2021 13:47:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: scame <laszlomail <at> protonmail.com>
Cc: 47673 <at> debbugs.gnu.org
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Fri, 09 Apr 2021 16:46:33 +0300
> Date: Fri, 09 Apr 2021 13:20:12 +0000
> From:  scame via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> See attached pic.  The value is a number, does it really need this unsightly long input field?

What you see is not the actual length of the field, not at all.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Fri, 09 Apr 2021 13:51:02 GMT) Full text and rfc822 format available.

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

From: scame <laszlomail <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Fri, 09 Apr 2021 13:50:36 +0000
>
> What you see is not the actual length of the field, not at all.

OK, so is it that long, because the newline also has that
text property? Then why put it on the newline?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Fri, 09 Apr 2021 14:06:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: scame <laszlomail <at> protonmail.com>
Cc: 47673 <at> debbugs.gnu.org
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Fri, 09 Apr 2021 17:05:14 +0300
> Date: Fri, 09 Apr 2021 13:50:36 +0000
> From: scame <laszlomail <at> protonmail.com>
> Cc: "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
> 
> > What you see is not the actual length of the field, not at all.
> 
> OK, so is it that long, because the newline also has that
> text property? Then why put it on the newline?

Presumably because otherwise the face will not be extended to match
the input length.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 09:03:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: scame <laszlomail <at> protonmail.com>
Cc: 47673 <at> debbugs.gnu.org
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 11:02:07 +0200
scame <laszlomail <at> protonmail.com> writes:

> See attached pic.  The value is a number, does it really need this
> unsightly long input field?

It's just how all text input in Customize works -- it's a non-editable
buffer, but it makes these bits writeable by using a lot of magic behind
the scenes.

So it'll just have to be that way until somebody reimplements Customize
completely, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 12 Apr 2021 09:03:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 47673 <at> debbugs.gnu.org and scame <laszlomail <at> protonmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 12 Apr 2021 09:03:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 09:56:02 GMT) Full text and rfc822 format available.

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

From: scame <laszlomail <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 09:55:10 +0000
>
> It's just how all text input in Customize works -- it's a non-editable
> buffer, but it makes these bits writeable by using a lot of magic behind
> the scenes.

Does this edit buffer need to appear so wide? Can't it be displayed shorter?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 10:05:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: scame <laszlomail <at> protonmail.com>
Cc: "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 12:03:54 +0200
scame <laszlomail <at> protonmail.com> writes:

> Does this edit buffer need to appear so wide? Can't it be displayed shorter?

It deletes everything up to the end of the line.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 15:20:02 GMT) Full text and rfc822 format available.

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

From: scame <laszlomail <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 15:19:01 +0000
>
> > Does this edit buffer need to appear so wide? Can't it be displayed shorter?
>
> It deletes everything up to the end of the line.
>

I checked the code, and from a cursory look the problem seems to be that the :extend property was added to the widget-field face, that's why every field became as wide as the screen, because the newline after the field has this face:

  https://github.com/emacs-mirror/emacs/commit/b5781e63cbe7e4c24e4eea3a400880857348ad19

this was done to fix this bug:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37774


and apparently no one noticed this change made all customize fields very long.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 15:26:02 GMT) Full text and rfc822 format available.

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

From: scame <laszlomail <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 15:25:27 +0000
Forgot to add that it is easy to test. Just open a customize item which has a text edit field. The field extends to the end of the window.

Then you eval this:

  (set-face-attribute 'widget-field nil :extend nil)

and the field is not super long anymore.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 16:26:01 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: scame via "Bug reports for GNU Emacs, the Swiss army knife of text
 editors" <bug-gnu-emacs <at> gnu.org>
Cc: scame <laszlomail <at> protonmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 "47673 <at> debbugs.gnu.org" <47673 <at> debbugs.gnu.org>
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 19:24:22 +0300
> I checked the code, and from a cursory look the problem seems to be that
> the :extend property was added to the widget-field face, that's why every
> field became as wide as the screen, because the newline after the field has
> this face:
>
>   https://github.com/emacs-mirror/emacs/commit/b5781e63cbe7e4c24e4eea3a400880857348ad19
>
> this was done to fix this bug:
>
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37774

In bug#37774 I proposed to support a new value of the :extend attribute
that will extend the field to the fixed width equal to 70 from fill-column.
Would this solve the issue?  Then the field's width will be not too short,
and not overly long.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 16:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47673; Package emacs. (Mon, 12 Apr 2021 16:54:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: laszlomail <at> protonmail.com, 47673 <at> debbugs.gnu.org, larsi <at> gnus.org
Subject: Re: bug#47673: Absurdly long input field in Customize
Date: Mon, 12 Apr 2021 19:53:27 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Date: Mon, 12 Apr 2021 19:24:22 +0300
> Cc: laszlomail <at> protonmail.com, larsi <at> gnus.org
> 
> In bug#37774 I proposed to support a new value of the :extend attribute
> that will extend the field to the fixed width equal to 70 from fill-column.
> Would this solve the issue?  Then the field's width will be not too short,
> and not overly long.

As the discussion there shows, that proposal has some issues.  On top
of that, I don't currently see how to implement that cleanly (face
merging doesn't know anything about the current column).




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

This bug report was last modified 2 years and 343 days ago.

Previous Next


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