From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#51475: read-char-choice should hide the cursor Date: Fri, 29 Oct 2021 19:18:27 +0000 Message-ID: References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> <87tugzu05g.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ndame , 51475@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 29 21:37:00 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgXgR-00082L-7j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Oct 2021 21:36:59 +0200 Original-Received: from localhost ([::1]:32772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgXgQ-0000rA-51 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Oct 2021 15:36:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgXP4-0002T8-RH for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 15:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgXP4-0005wI-Im for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 15:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgXP4-0008Px-Et for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Oct 2021 19:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51475 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51475-submit@debbugs.gnu.org id=B51475.163553511532307 (code B ref 51475); Fri, 29 Oct 2021 19:19:02 +0000 Original-Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 19:18:35 +0000 Original-Received: from localhost ([127.0.0.1]:55958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgXOc-0008P0-Rt for submit@debbugs.gnu.org; Fri, 29 Oct 2021 15:18:35 -0400 Original-Received: from heytings.org ([95.142.160.155]:41062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgXOX-0008Ol-5q for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 15:18:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635535108; bh=dr/MGdutYc5JpTyi4pMdDCgzAgtSnpi4py53Lqt7kRU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=N/2emPH3+T0ucvyUIYKcdCPH7xOZcIKx0Ojd7d3FheVU6tZAAxv57/12SqwW9wgHY rl6Lqxf6nqsikNt7xkLSjLAjlDqUeuFbY41aP4bD0LKmK1qFq8RQHts9pAs2aKzdXD 5TOmsg6LRKmaMtqSX/9jqgdHFGHc1JwOG7WKyJj8ky/asitIa7n0JO166KLLKdyrQA 0u8ZcfdFNudVBH/9sAOXlRgUM5ZWft02Uy7TsWdk2dIjB1sMcQZFs0IIuTitjzED2F tlfHr9vUV6rghiKd9VB/obd3//asKxWnYi7g9OjUx7784/AZ9PASpCKMx/0M/blVXy +tQtK5Sne9kyw== In-Reply-To: <87tugzu05g.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218590 Archived-At: > > 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.