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: Fri, 29 Oct 2021 20:47:42 +0200 Message-ID: <8735ojvfap.fsf@gnus.org> References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.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="38956"; 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 Fri Oct 29 21:06:25 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 1mgXCq-0009qW-LV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Oct 2021 21:06:24 +0200 Original-Received: from localhost ([::1]:36502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgXCo-0004LD-K8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Oct 2021 15:06:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgWv4-0001aw-Gj for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 14:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgWv4-0003g1-6Z for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 14:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgWv3-0007R5-Vs for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 14:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Oct 2021 18:48:01 +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.163553327328549 (code B ref 51475); Fri, 29 Oct 2021 18:48:01 +0000 Original-Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 18:47:53 +0000 Original-Received: from localhost ([127.0.0.1]:55896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgWuv-0007QO-Bx for submit@debbugs.gnu.org; Fri, 29 Oct 2021 14:47:53 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:49876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgWuu-0007Pe-9Q for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 14:47:52 -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=K6hVPLUreGs0ofS23MR0YS2SSgRdrOsvJx6zoUCHMgs=; b=mVgkug0fumvmprhE5k4PjD2Y05 jA7894oe9bZguZqVDNG+LaU/sg70dgiSwa70ff0TM2orsvzRp2EikxRukGN9yuE/Xp+bmnLiCBwqe EGshFsj7Ju5cJzFng2TNEOXtm6y4O4MZwrUo9LirfkyDoM9h+LdYGDQ3ll+6BAYXMSxo=; 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 1mgWul-0002Vb-8D; Fri, 29 Oct 2021 20:47:46 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEURDwtbSTKpVy+5 qI3////DLnoRAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UKHRIWDoYcWLwAAAFvSURBVDjLlVLRgYUg DKNM0JYFpC5wyP67XQoooPdzPN+HSZo2lRD+eeRvmNS+oB5BzPIHBwZcPlZq/gP18oYRYDXTlxyP ZfOz4tHc47QXQaxsckKvGyHxgB6EeIuzzjFjdkIz8LNed4Uept5UXA84y9328Aq8i/sjYic0ooGx NH1uf2upLEYoScax0VxDVuN8w94E5yaINrgRxgdlavskGXAnjifkAzeCF/g6B37NlbQNtZKr5udD kfpUHfYRmDrc5nGXMmbrRB+zg3ec5Po7AnciCCQ0jFoZk1CR/YJQN67BN8YzQjfzN5VaONATYhKp VvlYuQRDZ8zNS/LM8CgvggjveEkFVvk867FYKQd0BsG2EbCimkqsF26v8J6jpEL1Z5uq3dEQ6pib 14GdwFawzKFcKghRk69xyrlVeCvy57FykO7VyLJhCd3nOfS0aCsF0u7IzOHYRiztO5EGQXsF8yDm p6Ih6sQS3JNP4ieEXwsqQyN3eesZAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI5VDE4OjIy OjEzKzAwOjAwEUPmiQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yOVQxODoyMjoxMyswMDow MGAeXjUAAAAASUVORK5CYII= X-Now-Playing: JPEGMAFIA's _LP!_: "DIKEMBE!" In-Reply-To: (Gregory Heytings's message of "Fri, 29 Oct 2021 18:41:37 +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:218587 Archived-At: Gregory Heytings 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