GNU bug report logs - #51475
read-char-choice should hide the cursor

Previous Next

Package: emacs;

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

Date: Fri, 29 Oct 2021 05:26:02 UTC

Severity: normal

Tags: moreinfo, 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 51475 in the body.
You can then email your comments to 51475 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#51475; Package emacs. (Fri, 29 Oct 2021 05:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ndame <laszlomail <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 29 Oct 2021 05:26:02 GMT) Full text and rfc822 format available.

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

From: ndame <laszlomail <at> protonmail.com>
To: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Subject: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 05:24:21 +0000
[Message part 1 (text/plain, inline)]
Since it only reads a single character, the cursor is unnecessary and unsightly in the prompt:

(read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 13:07:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: ndame <laszlomail <at> protonmail.com>
Cc: 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 15:06:27 +0200
ndame <laszlomail <at> protonmail.com> writes:

> Since it only reads a single character, the cursor is unnecessary and unsightly
> in the prompt:
>
> (read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c))

But it looks nice in

(read-char-choice " a - good; b - bad; c - ugly: " '(?a ?b ?c))

We could hide it if the prompt is multi-line, I guess?  Anybody got an
opinion?

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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 29 Oct 2021 13:07:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 14:54:01 GMT) Full text and rfc822 format available.

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

From: ndame <laszlomail <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 14:53:31 +0000
>
> We could hide it if the prompt is multi-line, I guess? Anybody got an opinion?

Or maybe an optional argument for  read-char-choice to hide it if it does not look good with the chosen layout.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 17:14:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: ndame <laszlomail <at> protonmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 10:13:27 -0700
ndame <laszlomail <at> protonmail.com> writes:

>>
>> We could hide it if the prompt is multi-line, I guess? Anybody got an opinion?
>
> Or maybe an optional argument for read-char-choice to hide it if it
> does not look good with the chosen layout.

An optional argument could perhaps be good, as this could vary depending
on the use.

It would be even better if we had a real-world example of where showing
point looks ugly.  Could you perhaps provide such an example?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 17:17:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 19:16:23 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> It would be even better if we had a real-world example of where showing
> point looks ugly.  Could you perhaps provide such an example?

There was one in the original bug report.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 18:42:02 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 18:41:37 +0000
[Message part 1 (text/plain, inline)]
>
> We could hide it if the prompt is multi-line, I guess?  Anybody got an 
> opinion?
>

Or we could make it depend on a dynamic variable.  See attached patch.
[Make-it-possible-to-hide-the-cursor-during-read-char.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 18:48:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 20:47:42 +0200
Gregory Heytings <gregory <at> heytings.org> writes:

> Or we could make it depend on a dynamic variable.  See attached patch.

I'd rather have an optional variable if this is something that should be
controlled.

But I'm not sure we want to.  The original example was:

(read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c))

But that's an ugly prompt in itself.  If it's amended to

(read-char-choice " a - good\n b - bad\n c - ugly: " '(?a ?b ?c))

then it's fine showing the cursor.  (And that's a prompt should look.)

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 18:55:02 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 18:54:14 +0000
>> Or we could make it depend on a dynamic variable.  See attached patch.
>
> I'd rather have an optional variable if this is something that should be 
> controlled.
>

You mean, an optional argument?  If so, unless you also add an additional 
optional argument to read-char-from-minibuffer, you'll need a dynamic 
variable anyway.

>
> But I'm not sure we want to.  The original example was:
>
> (read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c))
>
> But that's an ugly prompt in itself.  If it's amended to
>
> (read-char-choice " a - good\n b - bad\n c - ugly: " '(?a ?b ?c))
>
> then it's fine showing the cursor.  (And that's a prompt should look.)
>

I'm not sure either.  I'm also not sure the OP would agree that your 
amended version is fine.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 19:01:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 21:00:11 +0200
Gregory Heytings <gregory <at> heytings.org> writes:

> You mean, an optional argument?  If so, unless you also add an
> additional optional argument to read-char-from-minibuffer, you'll need
> a dynamic variable anyway.

Hm, yes...

Perhaps if the user wants this, they could just use
`minibuffer-setup-hook' to make the cursor go away?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 19:19:02 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 19:18:27 +0000
>
> Perhaps if the user wants this, they could just use 
> `minibuffer-setup-hook' to make the cursor go away?
>

Indeed, that's yet another solution:

(minibuffer-with-setup-hook
    (lambda () (setq-local cursor-type nil))
  (read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c)))

But that doesn't work if read-char-choice-use-read-key is non-nil.  And 
given that cursor-in-echo-area is explicitly bound in 
read-char-choice-use-read-key, there's I think no similar trick that could 
be used to make that case work.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 20:10:02 GMT) Full text and rfc822 format available.

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

From: Daniel Martín <mardani29 <at> yahoo.es>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: ndame <laszlomail <at> protonmail.com>, Gregory Heytings <gregory <at> heytings.org>,
 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 22:09:23 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Gregory Heytings <gregory <at> heytings.org> writes:
>
>> Or we could make it depend on a dynamic variable.  See attached patch.
>
> I'd rather have an optional variable if this is something that should be
> controlled.
>
> But I'm not sure we want to.  The original example was:
>
> (read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c))
>
> But that's an ugly prompt in itself.  If it's amended to
>
> (read-char-choice " a - good\n b - bad\n c - ugly: " '(?a ?b ?c))
>
> then it's fine showing the cursor.  (And that's a prompt should look.)

Isearch for example doesn't show the cursor after the colon until after
the cursor can do something useful (ie. you press M-e to edit the search
string).  By the same reasoning, I think that read-char-choice should
always hide the cursor.

I'd prefer if we decide if the cursor is always visible or invisible.
Adding variables or parameters for this would add complexity to Emacs
for a, IMO, small matter.  If there's no agreement, I think leaving
things as is is preferably, but that's just my opinion.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Fri, 29 Oct 2021 20:29:01 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: ndame <laszlomail <at> protonmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 20:28:43 +0000
>
> Isearch for example doesn't show the cursor after the colon until after 
> the cursor can do something useful (ie. you press M-e to edit the search 
> string).  By the same reasoning, I think that read-char-choice should 
> always hide the cursor.
>

Isearch doesn't use a minibuffer, it uses the echo area.  When you press 
M-e it starts to use a minibuffer.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Sat, 30 Oct 2021 01:26:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: ndame <laszlomail <at> protonmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 Gregory Heytings <gregory <at> heytings.org>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 18:24:54 -0700
Daniel Martín <mardani29 <at> yahoo.es> writes:

> Isearch for example doesn't show the cursor after the colon until after
> the cursor can do something useful (ie. you press M-e to edit the search
> string).  By the same reasoning, I think that read-char-choice should
> always hide the cursor.

Transient does the same, and I always found that to be a very natural
interface.

The same thing if you just press "C-x" and wait a second.

At the very least these examples demonstrate that it's fine not to show
a cursor.

> I'd prefer if we decide if the cursor is always visible or
> invisible.
[...]
> If there's no agreement, I think leaving things as is is

I agree with both of these ideas, so that we can keep the Emacs
interface a tiny bit more consistent.

Otherwise it will be down to the preference of individual package
authors, who will pick one or the other on a whim or individual fancy.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Sat, 30 Oct 2021 08:49:01 GMT) Full text and rfc822 format available.

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

From: Gregory Heytings <gregory <at> heytings.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: ndame <laszlomail <at> protonmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 51475 <at> debbugs.gnu.org, Daniel Martín <mardani29 <at> yahoo.es>
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Sat, 30 Oct 2021 08:48:00 +0000
>
> Transient does the same, and I always found that to be a very natural 
> interface.
>
> The same thing if you just press "C-x" and wait a second.
>

These two examples do not use a minibuffer, they use the echo area.

>> I'd prefer if we decide if the cursor is always visible or invisible.
>>
>> [...]
>>
>> If there's no agreement, I think leaving things as is is
>
> I agree with both of these ideas, so that we can keep the Emacs 
> interface a tiny bit more consistent.
>

FWIW, I strongly disagree with the "always" idea.  There are cases where 
seeing a cursor is perhaps not important and perhaps undesirable, but 
there are many cases where seeing visually that the selected window has 
changed and that the active cursor has moved to the minibuffer is 
important, such as when you press C-x C-c with a non-saved file-visiting 
buffer, and/or when you (fset 'yes-or-no-p 'y-or-n-p).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Sat, 30 Oct 2021 11:37:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: ndame <laszlomail <at> protonmail.com>, Gregory Heytings <gregory <at> heytings.org>,
 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Sat, 30 Oct 2021 13:36:13 +0200
Daniel Martín <mardani29 <at> yahoo.es> writes:

> Isearch for example doesn't show the cursor after the colon until after
> the cursor can do something useful (ie. you press M-e to edit the search
> string).  By the same reasoning, I think that read-char-choice should
> always hide the cursor.

read-char-choice is a generalisation (sort of) of `y-or-n-p', which does
show the cursor.  (And I checked with 25.1 -- it shows the cursor there,
too.)

So if we're going to make things consistent, then we'd have to start
showing a fake cursor in the echo area for commands like `C-s' and
`C-x', too.

But...  I don't feel very enthusiastic about the idea.

> I'd prefer if we decide if the cursor is always visible or invisible.
> Adding variables or parameters for this would add complexity to Emacs
> for a, IMO, small matter.  If there's no agreement, I think leaving
> things as is is preferably, but that's just my opinion.

Yeah, probably.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Sat, 30 Oct 2021 11:40:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: ndame <laszlomail <at> protonmail.com>, 51475 <at> debbugs.gnu.org
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Sat, 30 Oct 2021 13:38:59 +0200
Gregory Heytings <gregory <at> heytings.org> writes:

> Indeed, that's yet another solution:
>
> (minibuffer-with-setup-hook
>     (lambda () (setq-local cursor-type nil))
>   (read-char-choice " a - good\n b - bad\n c - ugly" '(?a ?b ?c)))
>
> But that doesn't work if read-char-choice-use-read-key is non-nil.
> And given that cursor-in-echo-area is explicitly bound in
> read-char-choice-use-read-key, there's I think no similar trick that
> could be used to make that case work.

That's true -- people who want to hide the cursor has to set/bind
read-char-choice-use-read-key to nil.  But I think that's OK.

I think that, upon reflection, that there's nothing here that needs to
be fixed.  So 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. (Sat, 30 Oct 2021 11:40:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 51475 <at> debbugs.gnu.org and ndame <laszlomail <at> protonmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 30 Oct 2021 11:40:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Mon, 01 Nov 2021 08:19:02 GMT) Full text and rfc822 format available.

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

From: ndame <laszlomail <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Gregory Heytings <gregory <at> heytings.org>, 51475 <at> debbugs.gnu.org,
 Daniel Martín <mardani29 <at> yahoo.es>
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Mon, 01 Nov 2021 08:18:50 +0000
>
> read-char-choice is a generalisation (sort of) of `y-or-n-p', which does show the cursor. (And I checked with 25.1 -- it shows the cursor there, too.) So if we're going to make things consistent,


As for consistency, it's strange that read-char-choice  shows a static cursor, while y-or-no-p shows a blinking one:

(read-char-choice " a - good; b - bad; c - ugly: " '(?a ?b ?c))

(y-or-n-p "How would you fix Emacs?")






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

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

From: Gregory Heytings <gregory <at> heytings.org>
To: ndame <laszlomail <at> protonmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51475 <at> debbugs.gnu.org,
 Daniel Martín <mardani29 <at> yahoo.es>
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Mon, 01 Nov 2021 09:11:46 +0000
>
> As for consistency, it's strange that read-char-choice shows a static 
> cursor, while y-or-no-p shows a blinking one:
>
> (read-char-choice " a - good; b - bad; c - ugly: " '(?a ?b ?c))
>
> (y-or-n-p "How would you fix Emacs?")
>

That's probably because of one of your customizations, in emacs -Q both 
show a blinking cursor.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Mon, 01 Nov 2021 16:13:02 GMT) Full text and rfc822 format available.

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

From: ndame <laszlomail <at> protonmail.com>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51475 <at> debbugs.gnu.org,
 Daniel Martín <mardani29 <at> yahoo.es>
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Mon, 01 Nov 2021 16:12:24 +0000
> >
> > cursor, while y-or-no-p shows a blinking one:
> >
> > (read-char-choice " a - good; b - bad; c - ugly: " '(?a ?b ?c))
> >
> > (y-or-n-p "How would you fix Emacs?")
>
> That's probably because of one of your customizations, in emacs -Q both
> show a blinking cursor.

I tried it with -Q.

GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-12


Maybe it's changed for Emacs 28.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Wed, 03 Nov 2021 18:01:02 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Daniel Martín via "Bug reports for GNU Emacs, the Swiss
 army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Cc: ndame <laszlomail <at> protonmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 51475 <at> debbugs.gnu.org, Gregory Heytings <gregory <at> heytings.org>,
 Daniel Martín <mardani29 <at> yahoo.es>
Subject: Re: bug#51475: read-char-choice should hide the cursor
Date: Fri, 29 Oct 2021 23:04:11 +0200
On Okt 29 2021, Daniel Martín via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> Isearch for example doesn't show the cursor after the colon until after
> the cursor can do something useful (ie. you press M-e to edit the search
> string).  By the same reasoning, I think that read-char-choice should
> always hide the cursor.

Isearch has its focus on the buffer that is searched.  The focus for
read-char-choice is on the input.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51475; Package emacs. (Wed, 03 Nov 2021 18:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 02 Dec 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 260 days ago.

Previous Next


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