* bug#47673: Absurdly long input field in Customize
@ 2021-04-09 13:20 scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-09 13:46 ` Eli Zaretskii
2021-04-12 9:02 ` Lars Ingebrigtsen
0 siblings, 2 replies; 11+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-09 13:20 UTC (permalink / raw)
To: 47673
[-- Attachment #1.1: Type: text/plain, Size: 93 bytes --]
See attached pic. The value is a number, does it really need this unsightly long input field?
[-- Attachment #1.2: Type: text/html, Size: 129 bytes --]
[-- Attachment #2: Capture.PNG --]
[-- Type: image/png, Size: 36617 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-09 13:20 bug#47673: Absurdly long input field in Customize scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-09 13:46 ` Eli Zaretskii
2021-04-09 13:50 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 9:02 ` Lars Ingebrigtsen
1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2021-04-09 13:46 UTC (permalink / raw)
To: scame; +Cc: 47673
> 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@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-09 13:20 bug#47673: Absurdly long input field in Customize scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-09 13:46 ` Eli Zaretskii
@ 2021-04-12 9:02 ` Lars Ingebrigtsen
2021-04-12 9:55 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
1 sibling, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2021-04-12 9:02 UTC (permalink / raw)
To: scame; +Cc: 47673
scame <laszlomail@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
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-12 9:02 ` Lars Ingebrigtsen
@ 2021-04-12 9:55 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 10:03 ` Lars Ingebrigtsen
0 siblings, 1 reply; 11+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12 9:55 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 47673@debbugs.gnu.org
>
> 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?
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-12 9:55 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12 10:03 ` Lars Ingebrigtsen
2021-04-12 15:19 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2021-04-12 10:03 UTC (permalink / raw)
To: scame; +Cc: 47673@debbugs.gnu.org
scame <laszlomail@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
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-12 10:03 ` Lars Ingebrigtsen
@ 2021-04-12 15:19 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 15:25 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 16:24 ` Juri Linkov
0 siblings, 2 replies; 11+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12 15:19 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 47673@debbugs.gnu.org
>
> > 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-12 15:19 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12 15:25 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 16:24 ` Juri Linkov
1 sibling, 0 replies; 11+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12 15:25 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 47673@debbugs.gnu.org
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-12 15:19 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 15:25 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12 16:24 ` Juri Linkov
2021-04-12 16:53 ` Eli Zaretskii
1 sibling, 1 reply; 11+ messages in thread
From: Juri Linkov @ 2021-04-12 16:24 UTC (permalink / raw)
To: 47673; +Cc: laszlomail, larsi
> 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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#47673: Absurdly long input field in Customize
2021-04-12 16:24 ` Juri Linkov
@ 2021-04-12 16:53 ` Eli Zaretskii
0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2021-04-12 16:53 UTC (permalink / raw)
To: Juri Linkov; +Cc: laszlomail, 47673, larsi
> From: Juri Linkov <juri@linkov.net>
> Date: Mon, 12 Apr 2021 19:24:22 +0300
> Cc: laszlomail@protonmail.com, larsi@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).
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-04-12 16:53 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-09 13:20 bug#47673: Absurdly long input field in Customize scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-09 13:46 ` Eli Zaretskii
2021-04-09 13:50 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-09 14:05 ` Eli Zaretskii
2021-04-12 9:02 ` Lars Ingebrigtsen
2021-04-12 9:55 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 10:03 ` Lars Ingebrigtsen
2021-04-12 15:19 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 15:25 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 16:24 ` Juri Linkov
2021-04-12 16:53 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.