From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 01:25:50 2021 Received: (at submit) by debbugs.gnu.org; 29 Oct 2021 05:25:50 +0000 Received: from localhost ([127.0.0.1]:53800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgKOj-0000NP-QO for submit@debbugs.gnu.org; Fri, 29 Oct 2021 01:25:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:39102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgKOe-0000ND-RG for submit@debbugs.gnu.org; Fri, 29 Oct 2021 01:25:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgKOX-0001Gs-AR for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 01:25:40 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:36197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgKOS-0001nm-UH for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2021 01:25:36 -0400 Date: Fri, 29 Oct 2021 05:24:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635485065; bh=NQkAOTYNjxhZyBlJS2Bzk2WQapGM9x9JZ2V1nCFGGDA=; h=Date:To:From:Reply-To:Subject:From; b=hsUPArU68bQzsuh9WpSTIqjvpismA5qCZvu58N7ifc+pTQrOO3yqVP8BCAHQPySR9 EzaOJKgJhwwEg/hWZbGhq+z1HGO7D9WtAm7ERDyfc1MiU0+mTkcSjNVv7v8tCF/VQE f9KSwW+pe4ylgioyvimyYoRLQnBjdTZHvLWys9dE= To: "Bug reports for GNU Emacs, the Swiss army knife of text editors" From: ndame Subject: read-char-choice should hide the cursor Message-ID: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_RbNQBE0l3ERAKx69jrt44km3gfe8mUiBEi4dry8bXQ" X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=188.165.51.139; envelope-from=laszlomail@protonmail.com; helo=mail-0301.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ndame Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --b1_RbNQBE0l3ERAKx69jrt44km3gfe8mUiBEi4dry8bXQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 U2luY2UgaXQgb25seSByZWFkcyBhIHNpbmdsZSBjaGFyYWN0ZXIsIHRoZSBjdXJzb3IgaXMgdW5u ZWNlc3NhcnkgYW5kIHVuc2lnaHRseSBpbiB0aGUgcHJvbXB0OgoKKHJlYWQtY2hhci1jaG9pY2Ug IiBhIC0gZ29vZFxuIGIgLSBiYWRcbiBjIC0gdWdseSIgJyg/YSA/YiA/Yykp --b1_RbNQBE0l3ERAKx69jrt44km3gfe8mUiBEi4dry8bXQ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGRpdj5TaW5jZSBpdCBvbmx5IHJlYWRzIGEgc2luZ2xlIGNoYXJhY3RlciwgdGhlIGN1cnNvciBp cyB1bm5lY2Vzc2FyeSBhbmQgdW5zaWdodGx5IGluIHRoZSBwcm9tcHQ6PGJyPjwvZGl2PjxkaXY+ PGJyPjwvZGl2PjxkaXY+KHJlYWQtY2hhci1jaG9pY2UgIiBhIC0gZ29vZFxuIGIgLSBiYWRcbiBj IC0gdWdseSIgJyg/YSA/YiA/YykpPGJyPjwvZGl2Pg== --b1_RbNQBE0l3ERAKx69jrt44km3gfe8mUiBEi4dry8bXQ-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 09:06:43 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 13:06:44 +0000 Received: from localhost ([127.0.0.1]:54124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgRal-0006Yy-NL for submit@debbugs.gnu.org; Fri, 29 Oct 2021 09:06:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgRak-0006Yi-6j for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 09:06:43 -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=eWtWHVZ5ZhI8MOn6OMftXzcEz6zbTr8bPUy570LqKko=; b=O3uWUqVG0hAOybqm12dh81btNN fuOQw6apoK5eG5pxzUSYfrRDXheuDb+s6H28oV6jo4awGbHIfOZCIm9TsWnzlWDft2EgkbGCMhWhZ SrBmdylAJy5KgGoGMczNW78Y6+cHWxNf6sFD3z2IiBJW2SJPzHjFJQB84Sbk+XXOdRrk=; 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 1mgRaX-0008N9-As; Fri, 29 Oct 2021 15:06:36 +0200 From: Lars Ingebrigtsen To: ndame Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> X-Now-Playing: Joni Mitchell's _Shine_: "Strong And Wrong" Date: Fri, 29 Oct 2021 15:06:27 +0200 In-Reply-To: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> (ndame's message of "Fri, 29 Oct 2021 05:24:21 +0000") Message-ID: <87o878yo8c.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: ndame 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)) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51475 Cc: 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) ndame 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 09:06:48 2021 Received: (at control) by debbugs.gnu.org; 29 Oct 2021 13:06:48 +0000 Received: from localhost ([127.0.0.1]:54127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgRap-0006ZF-Uz for submit@debbugs.gnu.org; Fri, 29 Oct 2021 09:06:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:45984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgRao-0006Yq-KI for control@debbugs.gnu.org; Fri, 29 Oct 2021 09:06:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QXR32RwKza3R/PoMkfCzy12ltVh4Hxdqz27GFK4XFI4=; b=L2rgBazd04TbFH0dVeImykicLG j3sBCUv14rkqs3uORmSIXhJKiELjY4SaAbK1A00/jyLK2ZJGONbOCGGZS/NnnNGsNhg86jidkZgMX 6IGZWXj24sFQN9wc8QasUORA+Zx3yZ9q7BL2AANk10HC41p0YvRrOaBDVKrT33HlrO/k=; 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 1mgRag-0008NG-Jq for control@debbugs.gnu.org; Fri, 29 Oct 2021 15:06:40 +0200 Date: Fri, 29 Oct 2021 15:06:38 +0200 Message-Id: <87mtmsyo81.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51475 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 51475 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 51475 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 10:53:41 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 14:53:41 +0000 Received: from localhost ([127.0.0.1]:55602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgTGH-00022e-Ft for submit@debbugs.gnu.org; Fri, 29 Oct 2021 10:53:41 -0400 Received: from mail-40138.protonmail.ch ([185.70.40.138]:14982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgTGE-00022K-Ha for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 10:53:39 -0400 Date: Fri, 29 Oct 2021 14:53:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635519212; bh=xf61JbR8+MmpRFJ0UaKUFKQr0IVNckYRmCBBj8lD8og=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=odIVriAy+9r1BMH+M6O8QbnVGQa2T1wWV+KI2yn560FoVA2CD03nNnS8/zm/9FbCb 5kEdp7bG+z0rZT2B+u6/h2EuY8ne4zxTG0bbIm8rOSyQUPCmTNtGaKtsMxMMoAavJV SY6M3RBRuHc2ClTs74O+uG8Tbm/gh8fNzzLiuGUU= To: Lars Ingebrigtsen From: ndame Subject: Re: bug#51475: read-char-choice should hide the cursor Message-ID: In-Reply-To: <87o878yo8c.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ndame Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > We could hide it if the prompt is multi-line, I guess? Anybody got an opi= nion? Or maybe an optional argument for read-char-choice to hide it if it does n= ot look good with the chosen layout. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 13:13:43 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 17:13:43 +0000 Received: from localhost ([127.0.0.1]:55798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgVRn-0002Aa-Cc for submit@debbugs.gnu.org; Fri, 29 Oct 2021 13:13:43 -0400 Received: from mail-pg1-f180.google.com ([209.85.215.180]:47057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgVRd-00029l-7u for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 13:13:37 -0400 Received: by mail-pg1-f180.google.com with SMTP id m21so10437775pgu.13 for <51475@debbugs.gnu.org>; Fri, 29 Oct 2021 10:13:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=jB1yhNGOOodoZl7iQw4tbZWnXbx9nWYic4niKlN1a0k=; b=zchW5TwAn7m4ewWfkRuLp/QSbmig5xAL+5Fi6nweMKlCPqGLmBYgodnoh0/ZrQe/kt iDRYHQIIVMnPyU6+uk+b7sENeHj48S6Tazzqyshg716u8RVBS10K7SGMFHYwjqz+tir9 rMR9OiGPGf33oeOYvurRRd5WkkUqNl4Rt8n7EwSAmAgo42NnS9lqsivjqBt40wjCBBzV Q5gf/N+nAB2Q09JZO6Du/h5CACUfzv0/fvM73QMMGjno0yft7sW90FeGrr9nUmzoBsWs KzohZReHWG7AMTH3euE5+vaFLCmaz/kXdUwjeMTornOmwoQg+te9qcwy3adY6nOhlT+g EgkA== X-Gm-Message-State: AOAM532N97v5vkD5GZDRPhOyJB6J2ilZgmMLQstKYFjzEAui1iqH4ddn jYOHQHl0JFxlILBHgeyFOibT01ccNCVpdKCWza454OL9 X-Google-Smtp-Source: ABdhPJw3Uk1+1CSsaq7KHQJrG7pKcNFt7KA5oi8a+ezZ/63+1fAqadThStlSDA0zQRU2GHkaGW+p9QaOJXccKTvFePg= X-Received: by 2002:a05:6a00:1955:b0:47c:1d32:84de with SMTP id s21-20020a056a00195500b0047c1d3284demr11982327pfk.70.1635527607823; Fri, 29 Oct 2021 10:13:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 29 Oct 2021 10:13:27 -0700 From: Stefan Kangas In-Reply-To: (ndame's message of "Fri, 29 Oct 2021 14:53:31 +0000") References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Date: Fri, 29 Oct 2021 10:13:27 -0700 Message-ID: Subject: Re: bug#51475: read-char-choice should hide the cursor To: ndame Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 51475 Cc: Lars Ingebrigtsen , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) ndame 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 13:16:43 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 17:16:43 +0000 Received: from localhost ([127.0.0.1]:55807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgVUg-0003hw-Vg for submit@debbugs.gnu.org; Fri, 29 Oct 2021 13:16:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgVUX-0003WC-Kh for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 13:16:42 -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=PvPxBYeLyKZCxuBhy5WpWW8ND/4u2B02XJtMMHarvcw=; b=cqg5QISEqTYqjzOQwxyeeGMYbd JzG5jnrUE/kfG5xt31FrKXcUxrhxj13rVfpfH8EoP9wiEUD9IH+SnaEUfZfaTXfpvje8N6tCGr50f cevXXKHucqEvlgsWG2fi6lfQJX1f+xIaJL5eVujWbCwIDXbE8lMF2FNHXB3DG3oAq2ls=; 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 1mgVUO-0001m4-8W; Fri, 29 Oct 2021 19:16:27 +0200 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXt7Oy4s6ZpZWH/ //+RkaxBAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UKHREQDtIAQWMAAAEwSURBVCjPVZHNasMwDMel YQ22kwN1Djnv0jyFC+nOHjg59DYog+Yp9hBNoTtn0OQpJ8lxyEwg+unDkv4G2J4GTbNlu1o7MEEN 10Zxe7G9fBaN2KhowSwFAmt5BCgCbCIZNCWlGYW15CP9XExNc7/luF79wdfzA8o5ehnA16cMnLvv GSZJwyKnaSDB7SpwUKi+Rk0DhVkAVkhNBVxYJhAN/h128Ob7X3WjJtlPVFA9igGR3RIJUDwR3hgG 1huK7o6zBzqykOC6u2HDeFGhfI944Ug03LX8udJbYN0MTlCfRuJZROsG6n5U0UgaGec3U3lajKo7 W9FHgxVv3iG1+gTVEPEb6KDwysAXpcjLFLHN8NymiF5AAoF4Y+5LkXdGSnrQeQeer9ZnJK60qsEy lOryB5/VRMvdQ4b+AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI5VDE3OjE2OjEzKzAwOjAw pjr1xwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yOVQxNzoxNjoxMyswMDowMNdnTXsAAAAA SUVORK5CYII= X-Now-Playing: Aksak Maboul's _Redrawn Figures 1_: "Silhouettes (Vanishing Twin Remix)" Date: Fri, 29 Oct 2021 19:16:23 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 29 Oct 2021 10:13:27 -0700") Message-ID: <87sfwjvjiw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 14:41:43 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 18:41:44 +0000 Received: from localhost ([127.0.0.1]:55887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgWox-0007Ae-JO for submit@debbugs.gnu.org; Fri, 29 Oct 2021 14:41:43 -0400 Received: from heytings.org ([95.142.160.155]:40990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgWot-0007AP-6t for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 14:41:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635532897; bh=jUgBnWcwnYtEfFNqWkHC9zes71A8h02iYSuP/jpAkGg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=l10jXLGS3u17Tv4jyGtF0DGgdBpgNzJr5yEnVMOn7/5qj0bDTrji+dEQuwTMzyf8O 0Xi8LgNOZUM426OFb5V4h7jHBT6O76EgfgdiE24ao3G+KVdMQ8yxuPosIXtWr2JXMv J7xaWpjaCtxWSI33sADzPvl3Gvq9J5ECVxMIiCoA5vw/eIea3tGJDFwKO3AaoYrid7 uY3xgv1+h1Im8sgQDZknBmzKQ5jzbEQ0BFDMZGZE2O4Xo+BbtUct67wlwnFv9NN17V DAL64aBBcvT8+Caedea1ZLx9hs7DQREINv9IqcE0F2NlAFoswb+f5BSmJwZqS7UXh2 nLVDjkmACwmNg== Date: Fri, 29 Oct 2021 18:41:37 +0000 From: Gregory Heytings To: Lars Ingebrigtsen Subject: Re: bug#51475: read-char-choice should hide the cursor In-Reply-To: <87o878yo8c.fsf@gnus.org> Message-ID: References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Je85wMB8th" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Je85wMB8th Content-Type: text/plain; format=flowed; charset=us-ascii > > 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. --Je85wMB8th Content-Type: text/x-diff; name=Make-it-possible-to-hide-the-cursor-during-read-char.patch Content-Transfer-Encoding: base64 Content-ID: Content-Description: Content-Disposition: attachment; filename=Make-it-possible-to-hide-the-cursor-during-read-char.patch RnJvbSBkNTQxYzAxZDQ0ZmVkMzliM2UxNDRmZmY1NDk5YzdhMzA2YzI1NWY4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogR3JlZ29yeSBIZXl0 aW5ncyA8Z3JlZ29yeUBoZXl0aW5ncy5vcmc+DQpEYXRlOiBGcmksIDI5IE9j dCAyMDIxIDE4OjM3OjMyICswMDAwDQpTdWJqZWN0OiBbUEFUQ0hdIE1ha2Ug aXQgcG9zc2libGUgdG8gaGlkZSB0aGUgY3Vyc29yIGR1cmluZw0KIHJlYWQt Y2hhci1jaG9pY2UvZnJvbS1taW5pYnVmZmVyLg0KDQoqIGxpc3Avc3Vici5l bCAocmVhZC1jaGFyLWNob2ljZS1oaWRlLWN1cnNvciwNCnJlYWQtY2hhci1m cm9tLW1pbmlidWZmZXItaGlkZS1jdXJzb3IpOiBOZXcgdmFyaWFibGVzLg0K KHJlYWQtY2hhci1jaG9pY2UsIHJlYWQtY2hhci1jaG9pY2Utd2l0aC1yZWFk LWtleSwNCnJlYWQtY2hhci1mcm9tLW1pbmlidWZmZXIpOiBVc2UgdGhlbS4N Ci0tLQ0KIGxpc3Avc3Vici5lbCB8IDE5ICsrKysrKysrKysrKysrKy0tLS0N CiAxIGZpbGUgY2hhbmdlZCwgMTUgaW5zZXJ0aW9ucygrKSwgNCBkZWxldGlv bnMoLSkNCg0KZGlmZiAtLWdpdCBhL2xpc3Avc3Vici5lbCBiL2xpc3Avc3Vi ci5lbA0KaW5kZXggODY0NjBkOWRhNi4uM2ZmMTYwY2M2NCAxMDA2NDQNCi0t LSBhL2xpc3Avc3Vici5lbA0KKysrIGIvbGlzcC9zdWJyLmVsDQpAQCAtMzA0 MSw2ICsz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ChyZWFkLWZyb20tbWluaWJ1ZmZlciBwcm9tcHQg bmlsIG1hcCBuaWwNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKG9yIGhpc3RvcnkgJ2VtcHR5LWhpc3RvcnkpKSkpDQogICAgICAgICAg KGNoYXINCiAgICAgICAgICAgKGlmICg+IChsZW5ndGggcmVzdWx0KSAwKQ0K ICAgICAgICAgICAgICAgOzsgV2UgaGF2ZSBhIHN0cmluZyAod2l0aCBvbmUg Y2hhcmFjdGVyKSwgc28gcmV0dXJuIHRoZSBmaXJzdCBvbmUuDQotLSANCjIu MzMuMA0KDQo= --Je85wMB8th-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 14:47:53 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 18:47:53 +0000 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 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=; 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 From: Lars Ingebrigtsen To: Gregory Heytings Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> 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!" Date: Fri, 29 Oct 2021 20:47:42 +0200 In-Reply-To: (Gregory Heytings's message of "Fri, 29 Oct 2021 18:41:37 +0000") Message-ID: <8735ojvfap.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 14:54:18 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 18:54:18 +0000 Received: from localhost ([127.0.0.1]:55901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgX18-0007cf-24 for submit@debbugs.gnu.org; Fri, 29 Oct 2021 14:54:18 -0400 Received: from heytings.org ([95.142.160.155]:41008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgX16-0007cQ-71 for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 14:54:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635533654; bh=K2vPCV8P6P/E9Gf1U5WsgtpVdMEutMBVHECBwafFi+M=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=t/IFlNIlacF7b+p8fNygktvRJ8OyiGR5nuIT6/TxwH+Rq6a8IwlB26apsg8yzlzIm XD3p/J3BbmjuKXPqytyTD8HpLoBfzNkxn1qPAwXgUovCPI77pjwxQWSg3YuDV2Iaby k2nImM9Nx7PgWR9o5H+lGUkpx77nBokQoRG6vefp86g96r4bBztH0GgxfV+CZgHPUd QXnvabEDrew9bFQCXsHP5sqK8Tr0ebqf9k4q4bUQfdOtKua5RUEz4lZEsU37rB+ON9 VnWcdsslNTWOowQJ4Rm+MlXBzr1bFWZtTokUniGom363NS/w8AUes1hOFzfQD8iCYl eFm5Ul4ez057Q== Date: Fri, 29 Oct 2021 18:54:14 +0000 From: Gregory Heytings To: Lars Ingebrigtsen Subject: Re: bug#51475: read-char-choice should hide the cursor In-Reply-To: <8735ojvfap.fsf@gnus.org> Message-ID: References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 15:00:22 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 19:00:22 +0000 Received: from localhost ([127.0.0.1]:55919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgX70-0007pa-2O for submit@debbugs.gnu.org; Fri, 29 Oct 2021 15:00:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgX6y-0007pI-Ed for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 15:00:20 -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=20oasBx3YAXghZrqFjo85Lz5/FOu/Ku7ipLQS83nZqY=; b=NLAQdrG720UpAI3mkM3i2G/1TZ ajmVeNTdSZcqnn2dQPqJIWvbcD2iuEi1DqZZzOEa9aAmltFeXjwVwJW299wBtyU3GHD2xmqqoTq7q 4Y7N9d6+DYRq01+JZnlUWG+2YZqVr7v5iQFYlSekSZhMH1QHf40IgfN1A3XU9Yzw5Hfs=; 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 1mgX6p-0002c2-Go; Fri, 29 Oct 2021 21:00:14 +0200 From: Lars Ingebrigtsen To: Gregory Heytings Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> X-Now-Playing: Magnus Granberg & Skogen's _Let Pass My Weary Guiltless Ghost_: "Let Pass My Weary Guiltless Ghost" Date: Fri, 29 Oct 2021 21:00:11 +0200 In-Reply-To: (Gregory Heytings's message of "Fri, 29 Oct 2021 18:54:14 +0000") Message-ID: <87tugzu05g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gregory Heytings 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gregory Heytings 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 15:18:35 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 19:18:35 +0000 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 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== Date: Fri, 29 Oct 2021 19:18:27 +0000 From: Gregory Heytings To: Lars Ingebrigtsen Subject: Re: bug#51475: read-char-choice should hide the cursor In-Reply-To: <87tugzu05g.fsf@gnus.org> 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 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 16:09:42 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 20:09:42 +0000 Received: from localhost ([127.0.0.1]:56037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgYC6-0003jp-B8 for submit@debbugs.gnu.org; Fri, 29 Oct 2021 16:09:42 -0400 Received: from sonic313-21.consmr.mail.ir2.yahoo.com ([77.238.179.188]:40083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgYC0-0003jQ-Qw for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 16:09:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1635538169; bh=BP5Pf/rerINQFWr/UCJ9uhtHA4jasGfPPDq1EbFTF8o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=nxPh6C1VkC6bSR/cqU0D7N4AbXuWZiCy+DoF9XNW64VIeYYmF2FKu/TEhmHzW1Ms2NiAwBE1XshWwhFU6E/Hqz58y6oYPeWK3+SlTF5Z0bUQVkROvB+MqreAr4HRa8RmuZtHyCKbt23lzWxNCyJhBNFlqhjIYaQ5bffiaZ6QFMsTJofOAtMzRfEMHKKUF3tRJoFXu5BC9WF2L5naNJp8BC7PMuNoRuooWo/os9ziu18aueEOcUz3ZBTKsI2p6mG1+6KSDbq0GYmaAJbFRS1ppIoaL3EGBZrX6AerShAswIkztMU/eINikyElxNc/nQHEtkrJo304N5Vs7fouM3oYNg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635538169; bh=/aUfM1zcjVGqHFJd6zx3h+UvX8MJlC3NdKEVtw+7W1B=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=MgjgG8+9pznJjtw9KCfi4iesPTOPYqX7rEKrX/HQ4Pi190vNQxX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L1dQ0F2yulKBbovl ePvDgq3ZltRVLFMnr_8cTMCjwC3NXPrvb4.9QfSz8KIvuaJb.jWQUOUjhApGJdlOzHo9hk7m_con svcR1bA5haCuhdY0B0MtjiRtqpzc5crbY_U5Ehd3uxY3_HdW5hh1MY2BmikKtCNKfVkFinfRM7hO uVLOaQ_eT7ISzJmfH6k08hAo7IXcmsWDGN1kfp4sAojp9t8wMmRNqlvij8BIrCcUt6Dr1vyM9VkY f_yoS55r5xoluTLJjp4_TdZZdj_Uh6bMhFysvriuWltOYvYIUr_XJv9QlhelwIa_scDFHFqtqcdy cAqFVeveEsNb2MUkMeomzdUtCMwZmjuSW4iRPLdZpJP06Z6genINVNf7N5NkhXfTAyUK.M07AMZB S0KpK0awxv69tP7lk X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Fri, 29 Oct 2021 20:09:29 +0000 Received: by kubenode530.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b64718abe6604a7791b3f8416b595f89; Fri, 29 Oct 2021 20:09:24 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: Lars Ingebrigtsen Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> Date: Fri, 29 Oct 2021 22:09:23 +0200 In-Reply-To: <8735ojvfap.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 29 Oct 2021 20:47:42 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.19198 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1100 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , Gregory Heytings , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Lars Ingebrigtsen writes: > 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.) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 16:28:49 2021 Received: (at 51475) by debbugs.gnu.org; 29 Oct 2021 20:28:49 +0000 Received: from localhost ([127.0.0.1]:56068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgYUa-0004HW-V9 for submit@debbugs.gnu.org; Fri, 29 Oct 2021 16:28:49 -0400 Received: from heytings.org ([95.142.160.155]:41148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgYUX-0004HL-CX for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 16:28:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635539324; bh=rWVCcgeFrbCZJfDBVoTMP7roEKKLhPOkXWB3vvPAHHE=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=HoOzLcBa9TpAgs/zCHi5u9RSYHO6lLplyr/wWV048IUrNVfKabeYSVV5kNpAr/DBf gyjYcN7DST6YfyMJRsfdXvlRwRThB6qD1meI/dCX1uStHCdsATJQqX/KQrCzVvPpel HWGSCUgJP/YKXszUqZI6Y6g/RoNkNhtFkmDG9iDJthUsJ7PAcA/K48Lfs+u5ocKmeP kkHGzaEtfilnJd7zezjiBmLYbw8ohDaC/rx7dec8Bmtv+yozu2mmjhQQpEjZroeGOh jWwH4MvOPAkPbgVU/zC1S78/bMgBIyK2D91bR9RPbPyOvKkOqM/ntaGvarD4ukx75z 1MEVlXFiwRSyA== Date: Fri, 29 Oct 2021 20:28:43 +0000 From: Gregory Heytings To: =?UTF-8?Q?Daniel_Mart=C3=ADn?= Subject: Re: bug#51475: read-char-choice should hide the cursor In-Reply-To: Message-ID: References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , Lars Ingebrigtsen , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 21:25:04 2021 Received: (at 51475) by debbugs.gnu.org; 30 Oct 2021 01:25:04 +0000 Received: from localhost ([127.0.0.1]:56344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgd7I-0004IS-2U for submit@debbugs.gnu.org; Fri, 29 Oct 2021 21:25:04 -0400 Received: from mail-pj1-f51.google.com ([209.85.216.51]:33291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgd7F-0004Hm-2E for 51475@debbugs.gnu.org; Fri, 29 Oct 2021 21:25:02 -0400 Received: by mail-pj1-f51.google.com with SMTP id x1-20020a17090a530100b001a1efa4ebe6so8235762pjh.0 for <51475@debbugs.gnu.org>; Fri, 29 Oct 2021 18:25:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=d6wUk75PVxCrbEmQjeAMHBhSf80Fk4o4RtI1OIyUtzM=; b=v6490Kn0/VOPlKG02qCNDS7eNKWAbwolyiBOFXUzbo6a/diFkbdOXYVwkjdb2ssVxE WBUWkSGT5CSR71SFJblpFdwKpCjtJINSA3jtbsfVWkBW6qi7G+sre8tmnkAWaKM2rpZf iC2ZsewifSIBboCeWHigFDjb96GQcNHKDTMowkeRbgJmPs4kqpj75r0NjGQgy8dqg8hO fzE1M84aMMDiIzJl1TPYYek+ocuQGD4vFDnG6M0UyxMpnhnrPseLFyJvoFuB67fXRTh5 DgBxJBTnoylpkNNoJsWrfWy1iamWYwV8q7e5ITvZRhGkyfKS3sDVe1QW/16OCE3rWTLQ OFUw== X-Gm-Message-State: AOAM531mpYvtBB4i4uZmzydY5dYnnYNiZTQwdB3hdUOtopWfKF6jqXMs r0FE6xZPZOcJUqAA2aS5IJV91UjBpvUljp22/YA= X-Google-Smtp-Source: ABdhPJyaLZF5dmFHBP85WC/3VRzxgwg3AGrlTTbF4TxrBiR5EojJzBN2BI9LD6XMHzb+LQhnx90SK8Ahvt/THYjUQso= X-Received: by 2002:a17:902:a410:b0:141:be1a:53d1 with SMTP id p16-20020a170902a41000b00141be1a53d1mr2843951plq.71.1635557095344; Fri, 29 Oct 2021 18:24:55 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 29 Oct 2021 18:24:54 -0700 From: Stefan Kangas In-Reply-To: =?UTF-8?B?PG0xazBodmlvZWsuZnNmQHlhaG9vLmVzPiAoIkRhbmllbCBNYXJ0w61uIidzIG1l?= =?UTF-8?B?c3NhZ2Ugb2YgIkZyaSwgMjkgT2N0IDIwMjEgMjI6MDk6MjMgKzAyMDAiKQ==?= References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Date: Fri, 29 Oct 2021 18:24:54 -0700 Message-ID: Subject: Re: bug#51475: read-char-choice should hide the cursor To: =?UTF-8?Q?Daniel_Mart=C3=ADn?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , Lars Ingebrigtsen , Gregory Heytings , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Daniel Mart=C3=ADn 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 04:48:05 2021 Received: (at 51475) by debbugs.gnu.org; 30 Oct 2021 08:48:05 +0000 Received: from localhost ([127.0.0.1]:56615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgk21-0007lz-9P for submit@debbugs.gnu.org; Sat, 30 Oct 2021 04:48:05 -0400 Received: from heytings.org ([95.142.160.155]:41704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgk1y-0007lG-Ow for 51475@debbugs.gnu.org; Sat, 30 Oct 2021 04:48:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635583680; bh=xZtoz5Hxsw+ql1tTb1Dpi8VH//QS8iFkh3wF2pe93pw=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=toNi890TJKMJZsV+1ZVZrARV3hAWRRvdt9kDExkoCJPNIacYJofWiGoQCDqPE77Fo ea41rGYPglbfJ3QU7QU7tJ31pvwLqsb+04QEbYmPWNp1PsC5PdzbeWjvuYJ3a9Nr9w Zw+U0sJBCT2yYo7qtZIqP5Ei6eXRAqbHDL38wod0oETX7fnsBPAeMt9Qpy6gpXdgsX RfprbpLgeZvQ3Ez14/I11q79R9wDZEobgSYO7JJGGFsjxaokNT2+BmAYfkC2Ff9rK8 kCRto5jdwAaMmarTHytzfyJvK6sxKZUYtdyQ9cG+B3hFnDOhIqEZDOfgqEJlAphQne v2snTdj/ke8Lg== Date: Sat, 30 Oct 2021 08:48:00 +0000 From: Gregory Heytings To: Stefan Kangas Subject: Re: bug#51475: read-char-choice should hide the cursor In-Reply-To: Message-ID: <04203f3946288e3a9305@heytings.org> References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: ndame , Lars Ingebrigtsen , 51475@debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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). From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 07:36:26 2021 Received: (at 51475) by debbugs.gnu.org; 30 Oct 2021 11:36:26 +0000 Received: from localhost ([127.0.0.1]:56788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgmev-0006HV-P3 for submit@debbugs.gnu.org; Sat, 30 Oct 2021 07:36:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgmet-0006HG-Cf for 51475@debbugs.gnu.org; Sat, 30 Oct 2021 07:36:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=W0QzYstDNMtwSX3VtDBb39XVxnmET6pTVKICtpFUzMs=; b=qR17eGm5Gthv0hVConeSoXo//k 9KlDaKGBYwiVpc8VgQhPJoiGEZJ06e/V6Hzp5U46TFIpuQDh0FVVI8tn5oPEi8YnPVFEmidxvTYN5 udOxGNWl0IuVLrqhtMlNp6ccCFYoXIdQb7glGGF8uEkVh38RhBLswE89JPEVaRJ3j2rc=; 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 1mgmej-0000rt-QR; Sat, 30 Oct 2021 13:36:16 +0200 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> 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_: "........nd....." Date: Sat, 30 Oct 2021 13:36:13 +0200 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Fri, 29 Oct 2021 22:09:23 +0200") Message-ID: <87ilxesq1e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51475 Cc: ndame , Gregory Heytings , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Daniel Mart=C3=ADn 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. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 07:39:10 2021 Received: (at 51475) by debbugs.gnu.org; 30 Oct 2021 11:39:10 +0000 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 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=; 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 From: Lars Ingebrigtsen To: Gregory Heytings Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> <87tugzu05g.fsf@gnus.org> 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..." Date: Sat, 30 Oct 2021 13:38:59 +0200 In-Reply-To: (Gregory Heytings's message of "Fri, 29 Oct 2021 19:18:27 +0000") Message-ID: <87ee82spws.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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' [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51475 Cc: ndame , 51475@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 07:39:19 2021 Received: (at control) by debbugs.gnu.org; 30 Oct 2021 11:39:19 +0000 Received: from localhost ([127.0.0.1]:56795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgmhj-0006M8-Eo for submit@debbugs.gnu.org; Sat, 30 Oct 2021 07:39:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgmhi-0006Lw-Cx for control@debbugs.gnu.org; Sat, 30 Oct 2021 07:39:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=m/GQqRvR+lUs3K2Vew0W+9Dv4vQzSyoTxfkmCM5GDCo=; b=OlKKHuACYvUy6qj0wmx/mWuc7p eu6PHhU8vutSTBNoXoKu4LYQR7O0EHpK8aQNgCF6ERrKTOZ+89OLGr43HvHSUEhm6nl+PnLW68rNJ d7Yl8J3PZvIWj8rLKus6eG3Ean/m9jXt33Tnnn8py1/XAhyBQSybawEwen0A2uBW2FrE=; 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 1mgmha-0000tT-NI for control@debbugs.gnu.org; Sat, 30 Oct 2021 13:39:12 +0200 Date: Sat, 30 Oct 2021 13:39:10 +0200 Message-Id: <87cznmspwh.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #51475 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 51475 wontfix close 51475 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 51475 wontfix close 51475 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 01 04:18:59 2021 Received: (at 51475) by debbugs.gnu.org; 1 Nov 2021 08:18:59 +0000 Received: from localhost ([127.0.0.1]:33624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhSWx-0006LC-Dw for submit@debbugs.gnu.org; Mon, 01 Nov 2021 04:18:59 -0400 Received: from mail-4318.protonmail.ch ([185.70.43.18]:21695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhSWv-0006Kv-H1 for 51475@debbugs.gnu.org; Mon, 01 Nov 2021 04:18:58 -0400 Date: Mon, 01 Nov 2021 08:18:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635754731; bh=a3q9brIf/+Piqcoe7FGWeQkmMdY2dM9ZaJa4+OqOgrI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=nKgEY6sFiyybYka3tvlK+RUuSHV2nVy/VyNYrnPy+6qDphXtV7PGtku0hSIJNWDQB G5oHYcE/jSAG8DUboey7JzlG8mkXuIBrvQ5uX9GbsBuDSlnwNyz5o/NlMSsiwzlDqn 9pWe1BFhNIb+EGSr/z3/JC/LNkL0toohpck3J+XM= To: Lars Ingebrigtsen From: ndame Subject: Re: bug#51475: read-char-choice should hide the cursor Message-ID: In-Reply-To: <87ilxesq1e.fsf@gnus.org> References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> <87ilxesq1e.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: Gregory Heytings , 51475@debbugs.gnu.org, =?utf-8?Q?Daniel_Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ndame Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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 curs= or, 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?") From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 01 05:11:50 2021 Received: (at 51475) by debbugs.gnu.org; 1 Nov 2021 09:11:50 +0000 Received: from localhost ([127.0.0.1]:33682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhTM5-0007le-TK for submit@debbugs.gnu.org; Mon, 01 Nov 2021 05:11:50 -0400 Received: from heytings.org ([95.142.160.155]:44234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhTM4-0007lV-4q for 51475@debbugs.gnu.org; Mon, 01 Nov 2021 05:11:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1635757906; bh=tI8LFiRC8QyH9hP8DoMgH6+R/z9DVpAIIh4nbMF8SU0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=CwcCuL5Cd5ewph/Q5zLdGvRZfcgC7XUQbpeXCcYmZw4UhLtmJsbjVWXbaqFIPV/KI 2NYXe2UZVCxwFZ7lTLuNeHFSLbxorxoZgXZtv9cdHaFhG27yVEgIdtjVa7A0TxKR+7 0NgWKKVnAnerD3neGjbJVboXB/Vt84X5pNVbFMFTbLP1FRj4wqCBGTIkkQ+rZyQTVs r7DBtsKxDpwc1tROuRsN1Z05TkGmq421Rp5WdM9O6Nj+J5iE/l4TvhEf3xPpKoLxt0 tvJDHR2pwKhVqEZupgCvl7UvL/dZR+sT9GASULQQ9ceeVVWEp/XrzAZACAMOqccRte M3TTm6gbQ4Irg== Date: Mon, 01 Nov 2021 09:11:46 +0000 From: Gregory Heytings To: ndame Subject: Re: bug#51475: read-char-choice should hide the cursor In-Reply-To: Message-ID: <6abcac838b508681998c@heytings.org> References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> <87ilxesq1e.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: Lars Ingebrigtsen , 51475@debbugs.gnu.org, =?UTF-8?Q?Daniel_Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 01 12:12:38 2021 Received: (at 51475) by debbugs.gnu.org; 1 Nov 2021 16:12:38 +0000 Received: from localhost ([127.0.0.1]:35946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhZvK-00077W-El for submit@debbugs.gnu.org; Mon, 01 Nov 2021 12:12:38 -0400 Received: from mail-4318.protonmail.ch ([185.70.43.18]:35677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhZvG-00077C-4K for 51475@debbugs.gnu.org; Mon, 01 Nov 2021 12:12:37 -0400 Date: Mon, 01 Nov 2021 16:12:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635783147; bh=ou9D8H0SMPcr7OpnrPVnSN45/o1KNplmemJ0R+3JNAs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=j/amaP+oXYuUmwg3BvzdBDTX/emazJRKY3BWE6zdHBsd1i29jhwoRwGKdzIBhTomP PsJzQtvbzls5csXRkiz8tHekO0qHHylWKTb2Oo7WJoJJy0dZMUCizYUihBBKdxJ0bL Sm0r9IJ7hBn6OW7Q+uKc53B2UTR8h+dpOH9dZ2vU= To: Gregory Heytings From: ndame Subject: Re: bug#51475: read-char-choice should hide the cursor Message-ID: In-Reply-To: <6abcac838b508681998c@heytings.org> References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> <87ilxesq1e.fsf@gnus.org> <6abcac838b508681998c@heytings.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51475 Cc: Lars Ingebrigtsen , 51475@debbugs.gnu.org, =?utf-8?Q?Daniel_Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ndame Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > > > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 03 14:00:50 2021 Received: (at submit) by debbugs.gnu.org; 3 Nov 2021 18:00:50 +0000 Received: from localhost ([127.0.0.1]:41108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miKZ8-0000UU-Fa for submit@debbugs.gnu.org; Wed, 03 Nov 2021 14:00:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:34712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miKZ7-0000UN-Fq for submit@debbugs.gnu.org; Wed, 03 Nov 2021 14:00:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miKZ7-0004vC-76 for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2021 14:00:49 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:46356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miKZ5-0003K3-00 for bug-gnu-emacs@gnu.org; Wed, 03 Nov 2021 14:00:48 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HkvhB44rvz1qwHF; Wed, 3 Nov 2021 19:00:42 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HkvhB2q5nz1qqkH; Wed, 3 Nov 2021 19:00:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id tEO1_BeDMKYg; Wed, 3 Nov 2021 19:00:41 +0100 (CET) X-Auth-Info: wqlhpD/xKa5AJ7MIkdKgdoaAxNC8W3UrJW1gR+JPbufAtunDa2lJsrZveQ+yi9+L Received: from igel.home (ppp-46-244-172-4.dynamic.mnet-online.de [46.244.172.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 3 Nov 2021 19:00:41 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id BD4A82C2201; Fri, 29 Oct 2021 23:04:11 +0200 (CEST) From: Andreas Schwab To: Daniel =?utf-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#51475: read-char-choice should hide the cursor References: <_THq5ypB0YkWSi2rpEAmoEqTA-YZ6yyHoz8z8_DjpB-ER134WTz00UDJ4_-Z-9y_AskMwozCw0Ji-E855Ip9g5rUxaAMcdQXzp2xGAKl_0o=@protonmail.com> <87o878yo8c.fsf@gnus.org> <8735ojvfap.fsf@gnus.org> X-Yow: I am KING BOMBA of Sicily!..I will marry LUCILLE BALL next Friday! Date: Fri, 29 Oct 2021 23:04:11 +0200 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn?= via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Fri, 29 Oct 2021 22:09:23 +0200") Message-ID: <87y26b4k6s.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.18.0.9; envelope-from=whitebox@nefkom.net; helo=mail-out.m-online.net X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_96_XX=3.405, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: ndame , Lars Ingebrigtsen , 51475@debbugs.gnu.org, Gregory Heytings , Daniel =?utf-8?Q?Mart=C3=ADn?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Tue Aug 19 01:09:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 02 Dec 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator