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.

Full log


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.




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.