unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47669: Customize option setting with key should be more lenient
@ 2021-04-09  8:31 scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-09  9:35 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-12  9:07 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 9+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-09  8:31 UTC (permalink / raw)
  To: 47669


[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]

If I press return on the text indicated by an arrow on the attached
picture I get the error:

You can’t edit this part of the Custom buffer

Why? Why do I have to stand on the box specifically to toggle the
option? Customize should allow me to press return on the text
too to toggle the option.

[-- Attachment #1.2: Type: text/html, Size: 423 bytes --]

[-- Attachment #2: 2FhAs.png --]
[-- Type: image/png, Size: 48128 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: Customize option setting with key should be more lenient
  2021-04-09  8:31 bug#47669: Customize option setting with key should be more lenient scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-09  9:35 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-12  9:07 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 9+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-09  9:35 UTC (permalink / raw)
  To: 47669

[-- Attachment #1: Type: text/plain, Size: 214 bytes --]

> Customize should allow me to press return on the text
> too to toggle the option.

Clarification: not just on the text, but anywhere on the line (maybe before
the colon), so at the beginning of the line too, etc.

[-- Attachment #2: Type: text/html, Size: 371 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: Customize option setting with key should be more lenient
  2021-04-09  8:31 bug#47669: Customize option setting with key should be more lenient scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-09  9:35 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12  9:07 ` Lars Ingebrigtsen
  2021-04-12  9:58   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-12 19:27   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 2 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2021-04-12  9:07 UTC (permalink / raw)
  To: scame; +Cc: 47669

scame <laszlomail@protonmail.com> writes:

> If I press return on the text indicated by an arrow on the attached 
> picture I get the error:
>
>    You can’t edit this part of the Custom buffer
>
> Why? Why do I have to stand on the box specifically to toggle the
> option? Customize should allow me to press return on the text
> too to toggle the option.

Since there can be several buttons on a single line, I think it makes
sense to make just the buttons be interactive -- adding DWIM here would
be potentially confusing, so 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] 9+ messages in thread

* bug#47669: Customize option setting with key should be more lenient
  2021-04-12  9:07 ` Lars Ingebrigtsen
@ 2021-04-12  9:58   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-12 19:27   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 9+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12  9:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 47669@debbugs.gnu.org

>
> Since there can be several buttons on a single line, I think it makes
> sense to make just the buttons be interactive -- adding DWIM here would
> be potentially confusing, so I'm closing this bug report.

Could you show a customize page which has multiple buttons on a line?
I'd like to take a look.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: Customize option setting with key should be more lenient
  2021-04-12  9:07 ` Lars Ingebrigtsen
  2021-04-12  9:58   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12 19:27   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-12 19:53     ` bug#47669: [External] : " Drew Adams
  1 sibling, 1 reply; 9+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12 19:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 47669@debbugs.gnu.org

>
> Since there can be several buttons on a single line, I think it makes
> sense to make just the buttons be interactive -- adding DWIM here would
> be potentially confusing, so I'm closing this bug report.

Looks like there can't be multiple buttons on a line, because the implementation puts a newline after every widget:

  https://github.com/emacs-mirror/emacs/blob/master/lisp/cus-edit.el#L1759

Check the

  (widget-insert "\n")

lines.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: [External] : bug#47669: Customize option setting with key should be more lenient
  2021-04-12 19:27   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12 19:53     ` Drew Adams
  2021-04-12 20:26       ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: Drew Adams @ 2021-04-12 19:53 UTC (permalink / raw)
  To: scame, Lars Ingebrigtsen; +Cc: 47669@debbugs.gnu.org

> > Since there can be several buttons on a single line, I think it makes
> > sense to make just the buttons be interactive -- adding DWIM here would
> > be potentially confusing, so I'm closing this bug report.
> 
> Looks like there can't be multiple buttons on a line, because the
> implementation puts a newline after every widget:
> 
>   https://urldefense.com/v3/__https://github.com/emacs-
> mirror/emacs/blob/master/lisp/cus-
> edit.el*L1759__;Iw!!GqivPVa7Brio!LgH406C11Ne6UCztJSRZN8LHudK1tdotnkEnyA6P-
> ljK9kz3BvgcYFIFD-wYFt6l$
> 
> Check the (widget-insert "\n") lines.

Apologies for not following this thread.

If the question is general, asking whether the Customize UI
ever has more than one button on a line, the answer is yes.

Any :type of (repeat sexp), for example, has both INS and DEL
buttons on the same line.  E.g. `auto-coding-functions'.

And of course the buttons after "Operate on all..." are on
the same line.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: [External] : bug#47669: Customize option setting with key should be more lenient
  2021-04-12 19:53     ` bug#47669: [External] : " Drew Adams
@ 2021-04-12 20:26       ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-12 20:38         ` Drew Adams
  0 siblings, 1 reply; 9+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12 20:26 UTC (permalink / raw)
  To: Drew Adams; +Cc: Lars Ingebrigtsen, 47669@debbugs.gnu.org

>
> If the question is general, asking whether the Customize UI
> ever has more than one button on a line, the answer is yes.

The report was about the checkbox option which usually has a tiny box and a much longer text label and only the tiny box can be activated.

See the attached screenshot and report in the first post.

Are there multiple such checkboxes in one line somwehere in Customize?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: [External] : bug#47669: Customize option setting with key should be more lenient
  2021-04-12 20:26       ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-12 20:38         ` Drew Adams
  2021-04-12 20:41           ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 9+ messages in thread
From: Drew Adams @ 2021-04-12 20:38 UTC (permalink / raw)
  To: scame; +Cc: Lars Ingebrigtsen, 47669@debbugs.gnu.org

> Are there multiple such checkboxes in one line somwehere in Customize?

Not that I know of.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#47669: [External] : bug#47669: Customize option setting with key should be more lenient
  2021-04-12 20:38         ` Drew Adams
@ 2021-04-12 20:41           ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 9+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-12 20:41 UTC (permalink / raw)
  To: Drew Adams; +Cc: Lars Ingebrigtsen, 47669@debbugs.gnu.org


> > Are there multiple such checkboxes in one line somwehere in Customize?
>
> Not that I know of.

Thanks.

So the reason of closing this bug was invalid and therefore it should be reopened.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-04-12 20:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09  8:31 bug#47669: Customize option setting with key should be more lenient scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-09  9:35 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12  9:07 ` Lars Ingebrigtsen
2021-04-12  9:58   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 19:27   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 19:53     ` bug#47669: [External] : " Drew Adams
2021-04-12 20:26       ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 20:38         ` Drew Adams
2021-04-12 20:41           ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).