unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56171: Request for marking DEF entry when using completing-read
@ 2022-06-23 19:03 carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-23 19:17 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-23 19:03 UTC (permalink / raw)
  To: 56171

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


It would be valuable to mark the default entry when users scroll through the options
defined for `completing-read` whenever a DEF is supplied.

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

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-23 19:03 bug#56171: Request for marking DEF entry when using completing-read carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-23 19:17 ` Drew Adams
  2022-06-23 19:25   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-24  9:40 ` Lars Ingebrigtsen
       [not found] ` <87v8sqqu0y.fsf@gnus.org-N5K4ctK----2>
  2 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2022-06-23 19:17 UTC (permalink / raw)
  To: carlmarcos, 56171

> It would be valuable to mark the default entry
> when users scroll through the options defined
> for `completing-read` whenever a DEF is supplied.

I'm not sure what you mean.

Is this about highlighting in `*Completions*' a
completion that's the DEF?

Is it about selecting (as the active region) the
DEF value when you insert it with `M-n'?

Something else?

And is the request to be able do whatever-it-is
_optionally_ or always?

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-23 19:17 ` Drew Adams
@ 2022-06-23 19:25   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-23 22:08     ` Drew Adams
  0 siblings, 1 reply; 11+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-23 19:25 UTC (permalink / raw)
  To: Drew Adams; +Cc: 56171

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

Jun 23, 2022, 19:17 by drew.adams@oracle.com:

>> It would be valuable to mark the default entry
>> when users scroll through the options defined
>> for `completing-read` whenever a DEF is supplied.
>>
>
> I'm not sure what you mean.
>
> Is this about highlighting in `*Completions*' a
> completion that's the DEF?
>
Suppose one moves through the collection.  There is no way
that identifies the entry as being a designated DEF.


> Is it about selecting (as the active region) the
> DEF value when you insert it with `M-n'?
>
I think M-n ensured you are refering to DEF. 


> Something else?
>
> And is the request to be able do whatever-it-is
> _optionally_ or always?
>
Optionally is ok, but do not know the technical details.  I do not think
doing it always would be a bad thing.  



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

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-23 19:25   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-23 22:08     ` Drew Adams
  0 siblings, 0 replies; 11+ messages in thread
From: Drew Adams @ 2022-06-23 22:08 UTC (permalink / raw)
  To: carlmarcos; +Cc: 56171

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

See below.

It would be valuable to mark the default entry when users scroll through the options defined for `completing-read` whenever a DEF is supplied.
I'm not sure what you mean.

Is this about highlighting in `*Completions*' a
completion that's the DEF?
Suppose one moves through the collection.  There is no way that identifies the entry as being a designated DEF.

By moving through the collection, what do you mean? Cycling among the matches to your input - e.g. empty input?

What do you mean by "moving" or "scrolling" through the "options" or the collection? Can you maybe give a recipe for doing that?

Is it about selecting (as the active region) the
DEF value when you insert it with `M-n'?
I think M-n ensured you are refering to DEF.

Of course. I was asking what you mean by "selecting" ("marking"). That particular guess was that you perhaps meant to have the DEF inserted by `M-n' be selected as the region. Sometimes "marking" in Emacs means selecting as the active region.

I guess now you're saying no, that's not it. So I still have the same question? What is this "marking" about?

Something else?

?

And is the request to be able do whatever-it-is
_optionally_ or always?
Optionally is ok, but do not know the technical details.  I do not think doing it always would be a bad thing.

Sorry, but I still don't know what this selecting or "marking" of a DEF entry is about. Maybe it's clear to others - hopefully it is.

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

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-23 19:03 bug#56171: Request for marking DEF entry when using completing-read carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-23 19:17 ` Drew Adams
@ 2022-06-24  9:40 ` Lars Ingebrigtsen
       [not found] ` <87v8sqqu0y.fsf@gnus.org-N5K4ctK----2>
  2 siblings, 0 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-24  9:40 UTC (permalink / raw)
  To: carlmarcos; +Cc: 56171

carlmarcos@tutanota.com writes:

> It would be valuable to mark the default entry when users scroll
> through the options defined for `completing-read` whenever a DEF is
> supplied.

This is for `M-n', I guess?

I'm not quite sure I see the use case here.  When do you want to have
the default value specially marked when going through `M-n'?

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





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

* bug#56171: Request for marking DEF entry when using completing-read
       [not found] ` <87v8sqqu0y.fsf@gnus.org-N5K4ctK----2>
@ 2022-06-24 15:11   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-24 15:25     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-24 15:11 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 56171

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


Jun 24, 2022, 09:40 by larsi@gnus.org:

> carlmarcos@tutanota.com writes:
>
>> It would be valuable to mark the default entry when users scroll
>> through the options defined for `completing-read` whenever a DEF is
>> supplied.
>>
>
> This is for `M-n', I guess?
>
> I'm not quite sure I see the use case here.  When do you want to have
> the default value specially marked when going through `M-n'?
>
It is a different thing than that.  I customarily using the `up' and `down' key
to move through the collection of entries.  Could there be some form of indicator
(e.g. highlight, underline, some other means) that will tell me that is was selected
as the default by the package designer?  Currently I see no distinction, with all 
entries in collection as just an entry like any other. 



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

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-24 15:11   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-24 15:25     ` Lars Ingebrigtsen
  2022-06-24 16:14       ` Drew Adams
       [not found]       ` <SJ0PR10MB5488041684050A2C5A39C0BAF3B49@SJ0PR10MB5488.namprd10.prod.outlook.com-N5LUrHl----2>
  0 siblings, 2 replies; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-24 15:25 UTC (permalink / raw)
  To: carlmarcos; +Cc: 56171

carlmarcos@tutanota.com writes:

> It is a different thing than that.  I customarily using the `up' and
> `down' key to move through the collection of entries.  Could there be
> some form of indicator (e.g. highlight, underline, some other means)
> that will tell me that is was selected as the default by the package
> designer?  Currently I see no distinction, with all entries in
> collection as just an entry like any other.

Again, what's the use case?  Why do you want the default to be singled
out in some way?

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





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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-24 15:25     ` Lars Ingebrigtsen
@ 2022-06-24 16:14       ` Drew Adams
       [not found]       ` <SJ0PR10MB5488041684050A2C5A39C0BAF3B49@SJ0PR10MB5488.namprd10.prod.outlook.com-N5LUrHl----2>
  1 sibling, 0 replies; 11+ messages in thread
From: Drew Adams @ 2022-06-24 16:14 UTC (permalink / raw)
  To: Lars Ingebrigtsen, carlmarcos; +Cc: 56171

> > It is a different thing than that.  I customarily using the `up' and
> > `down' key to move through the collection of entries.  Could there be
> > some form of indicator (e.g. highlight, underline, some other means)
> > that will tell me that is was selected as the default by the package
> > designer?  Currently I see no distinction, with all entries in
> > collection as just an entry like any other.
> 
> Again, what's the use case?  Why do you want the default to be singled
> out in some way?

I'm curious too.  I don't say it couldn't be useful,
but I wonder what the aim is.
___

BTW, note that the default value (or even any of a
list of default values) provided need not be among
the candidates for completion, if completion is lax
(REQUIRE-MATCH = nil).  E.g.:

(completing-read "q: " '("a" "b" "c" "d")
                 nil nil nil nil "e")







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

* bug#56171: Request for marking DEF entry when using completing-read
       [not found]       ` <SJ0PR10MB5488041684050A2C5A39C0BAF3B49@SJ0PR10MB5488.namprd10.prod.outlook.com-N5LUrHl----2>
@ 2022-06-24 16:49         ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-24 17:28           ` Drew Adams
  0 siblings, 1 reply; 11+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-24 16:49 UTC (permalink / raw)
  To: Drew Adams; +Cc: Lars Ingebrigtsen, 56171

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


Jun 24, 2022, 16:14 by drew.adams@oracle.com:

>> > It is a different thing than that.  I customarily using the `up' and
>> > `down' key to move through the collection of entries.  Could there be
>> > some form of indicator (e.g. highlight, underline, some other means)
>> > that will tell me that is was selected as the default by the package
>> > designer?  Currently I see no distinction, with all entries in
>> > collection as just an entry like any other.
>>
>> Again, what's the use case?  Why do you want the default to be singled
>> out in some way?
>>
>
> I'm curious too.  I don't say it couldn't be useful,
> but I wonder what the aim is.
>
Wouldn't one normally associate a default with some sensible setting worth looking
into most times?  Perhaps this could be a user setting.  


> BTW, note that the default value (or even any of a
> list of default values) provided need not be among
> the candidates for completion, if completion is lax
> (REQUIRE-MATCH = nil).  E.g.:
>
> (completing-read "q: " '("a" "b" "c" "d")
>  nil nil nil nil "e")
>


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

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-24 16:49         ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-24 17:28           ` Drew Adams
  2022-06-25  7:21             ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2022-06-24 17:28 UTC (permalink / raw)
  To: carlmarcos; +Cc: Lars Ingebrigtsen, 56171

> Wouldn't one normally associate a default with
> some sensible setting worth looking into most times?
> Perhaps this could be a user setting.

I see.  So the use case is to be able to check what
the default value is, so you can try to understand
why it's considered particularly useful.

For that, I'd think that `M-n' suffices, to see
what the default value is (the first default value,
if there are several).

Again, the default value need not even be one of
the choices (completion candidates), in the case of
lax completion (e.g. `C-x b').  I'd think that the
best way to find out what the default is would be
`M-n'.

(Just one opinion, and I may still be missing something.)

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

* bug#56171: Request for marking DEF entry when using completing-read
  2022-06-24 17:28           ` Drew Adams
@ 2022-06-25  7:21             ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 11+ messages in thread
From: carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-25  7:21 UTC (permalink / raw)
  To: Drew Adams; +Cc: Lars Ingebrigtsen, 56171

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


Jun 24, 2022, 17:28 by drew.adams@oracle.com:

>> Wouldn't one normally associate a default with
>> some sensible setting worth looking into most times?
>> Perhaps this could be a user setting.
>>
>
> I see.  So the use case is to be able to check what
> the default value is, so you can try to understand
> why it's considered particularly useful.
>

Correct

> For that, I'd think that `M-n' suffices, to see
> what the default value is (the first default value,
> if there are several).
>
> Again, the default value need not even be one of
> the choices (completion candidates), in the case of
> lax completion (e.g. `C-x b').  I'd think that the
> best way to find out what the default is would be
> `M-n'.
>
If not one of the choices, then there will be no indicator on any
entry in the collection.  

I think it usually takes some time to discover the `M-n' way.

> (Just one opinion, and I may still be missing something.)
>
It is just an observation.  Another way is to depend on the designer
describing typical use if attentive enough to include that information.

I think that the suggestion could make one's acquaintance with the package
speedier if there are suggestions on well designed settings.



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

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

end of thread, other threads:[~2022-06-25  7:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 19:03 bug#56171: Request for marking DEF entry when using completing-read carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-23 19:17 ` Drew Adams
2022-06-23 19:25   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-23 22:08     ` Drew Adams
2022-06-24  9:40 ` Lars Ingebrigtsen
     [not found] ` <87v8sqqu0y.fsf@gnus.org-N5K4ctK----2>
2022-06-24 15:11   ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-24 15:25     ` Lars Ingebrigtsen
2022-06-24 16:14       ` Drew Adams
     [not found]       ` <SJ0PR10MB5488041684050A2C5A39C0BAF3B49@SJ0PR10MB5488.namprd10.prod.outlook.com-N5LUrHl----2>
2022-06-24 16:49         ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-24 17:28           ` Drew Adams
2022-06-25  7:21             ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this 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).