From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51475: read-char-choice should hide the cursor Date: Sat, 30 Oct 2021 13:38:59 +0200 Message-ID: <87ee82spws.fsf@gnus.org> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32601"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: ndame , 51475@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 30 13:42: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 1mgmkJ-0008FT-Vq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 13:42:00 +0200 Original-Received: from localhost ([::1]:34092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgmkI-0004SQ-1A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 07:41:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgmiT-0004Rf-DS for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 07:40:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgmiQ-0006HL-Kt for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 07:40:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgmiQ-0006NF-Hs for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 07:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Oct 2021 11:40: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.163559395024417 (code B ref 51475); Sat, 30 Oct 2021 11:40:02 +0000 Original-Received: (at 51475) by debbugs.gnu.org; 30 Oct 2021 11:39:10 +0000 Original-Received: from localhost ([127.0.0.1]:56792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgmha-0006Lk-73 for submit@debbugs.gnu.org; Sat, 30 Oct 2021 07:39:10 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:56878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgmhY-0006LU-H8 for 51475@debbugs.gnu.org; Sat, 30 Oct 2021 07:39:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YEqyb1J9ELvME4cb/30npa/cmohhEc+u9CdH9rDjgO4=; b=uIrB8NWF6KWH8vFjEM1rK+no9P Lgm+5ZmgU1pWh/xJKFyZOPp6oTB79+FWzz2TT2YdSA1gWaAZc8NZZqUgjaYw/IgyfQT/siWjIzyYF 24tOU2mK65bzM8lGk/clglucHi7rUybgIquB+FNtNbF5MFk53yGy2x3tv/qrmU9TIzD4=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgmhP-0000sO-Pv; Sat, 30 Oct 2021 13:39:02 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEXg4ef6+Pe0sa/T z83Bvr3N0+ijn55fW1qBfXzh3duSj47EwL7///9BDSWFAAAAAWJLR0QMgbNRYwAAAAd0SU1FB+UK Gw0WB83RW4kAAAFNSURBVDjLzdO/a8JAFAfwd4hIcLlLBDmnGgvFLZcnhnOsU7cu2W2Hlo5RUGzH gnPSdNHNUig69i/sgUaTu3Pvm473yfd+hQM4FNPL7JygNxjjeCBMoJcS9XoM9fs4JjrEqlTfhIuL /29wnx7scAMrK9AlbWQ26GzB3dqgLcCxQsQk2dlgT2X2bYN3jplvgxlHMWQcdOBLlRgyyYUGXsJ7 2YgKFmjQSlpf3Y2XsZoGbtJYTIctFTXAXU3CpgKiQy0UISrIdHBQhFcmeEkqs8euCVwdkOwDQpoH oAXQNw/5q4/ik1SBzb3cnV+HEo8zwXF35MfJO8s11voasGidRy958CE0oO2JXCBir1jiBN50M5P5 bVD0T1OR0XM/94u7LSWARfjbhzMUQ4DQv2PEBCXp+Y9XgZVecAUIK0fS85BVofxdBexPBy4AdQBT e+APXmN1ghJkcVkAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTAtMjdUMTM6MjI6MDYrMDA6MDBI moC4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEwLTI3VDEzOjIyOjA2KzAwOjAwOcc4BAAAAABJ RU5ErkJggg== X-Now-Playing: Sylvain Chauveau's _Life Without Machines_: ".........(fa..." In-Reply-To: (Gregory Heytings's message of "Fri, 29 Oct 2021 19:18:27 +0000") 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:218610 Archived-At: Gregory Heytings 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