From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73768: 'read-passwd-mode' can clobber user defined mode lines Date: Thu, 17 Oct 2024 20:10:19 +0200 Message-ID: <129611b4-34e0-4edc-b7ec-afa597399107@gmx.at> References: <1d3172d5-3704-40c6-92af-8888b0657871@gmx.at> <87v7xxsj4l.fsf@gmx.de> <87wmicqe5a.fsf@gmx.de> <877cacvv0r.fsf@gmx.de> <49fca25a-d5aa-4f14-ae09-52923eb5ce85@gmx.at> <87zfn3w48f.fsf@gmx.de> <87ed4fvtx7.fsf@gmx.de> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27140"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73768@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 17 20:11:26 2024 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 1t1Uy5-0006os-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Oct 2024 20:11:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1UxW-0007L4-QC; Thu, 17 Oct 2024 14:10:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1UxO-0007Do-Dh for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 14:10:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1UxO-00061n-4W for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 14:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=UnPLR+uuAaGRZ0NHzu8fC4jQY6waTdslQ6FyQ8FPqzI=; b=hcKuGXniPoMaL00Cpkv0h+4JlxnaLO4OGZbyyvuJFbGQvtoTJogaDWgUVLLlKR1eJ+vj9+3vmmzqIPcbsOdXblRh9Kk4rpXqF5s6dzOZgQ6WaHsVH8d8oqgw777Y64oc35OWqa2MwJQC08Gpo6tvU7NHoPM7KucMmhwCkIANxpwxnj4/G/wC6/VraqQb1IhC9XA5Osh1+3qGjGY2ueV1SAWpHZykxw8YM1C3Z7zFE7b1iLUV4AErnB9XtgO60zA/VXeEcEaMdVIbclESXZHK1VJt4xuwg4UGpdqCFE+GLtK6SWE9uEg1rm+guhcAYp/nRLVJ88OxfbBaZPZJpJmlng==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t1Uxj-0004iR-9R for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 14:11:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2024 18:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73768 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 73768@debbugs.gnu.org Original-Received: via spool by 73768-submit@debbugs.gnu.org id=B73768.172918865618088 (code B ref 73768); Thu, 17 Oct 2024 18:11:03 +0000 Original-Received: (at 73768) by debbugs.gnu.org; 17 Oct 2024 18:10:56 +0000 Original-Received: from localhost ([127.0.0.1]:35559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1UxY-0004hX-0O for submit@debbugs.gnu.org; Thu, 17 Oct 2024 14:10:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:42057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1UxS-0004h8-R6 for 73768@debbugs.gnu.org; Thu, 17 Oct 2024 14:10:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1729188619; x=1729793419; i=rudalics@gmx.at; bh=UnPLR+uuAaGRZ0NHzu8fC4jQY6waTdslQ6FyQ8FPqzI=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=WZKynM+SAwB3fKEJqFGCXCBDCw5+2pipbN1YgEKzb69KgRxZZ2runGhC+7p3lXqs 6w3mscWDuFrhLAxnRwsB5swVmT3hOC4khhcdChPk99H/PxF1uBB3CCFral2cGzrjK mvaryuemV6PiEVT1UrPpKQ+fPT8SO1TPhtjOuze2cZsH4XyBA7SKJHBYU5VjAqany HRTttiSAl0ECm73P5I6cOEQ0STs01kyLjLiVCgcyvb3/ZepZUgtFwQO+PG8OgXrkC zZaW28atWCM5b7bQi5PHNreDDkB0oOTHiP7cvDBLlQmEh9ug2/eR5bZQA3si04mdn Gnt2OdVhhxFkhxO4EA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.87]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ygY-1syjXB2t5K-0063oY; Thu, 17 Oct 2024 20:10:19 +0200 Content-Language: en-US In-Reply-To: <87ed4fvtx7.fsf@gmx.de> X-Provags-ID: V03:K1:DgOmU44b3ol6qLulYn9fYLDYsNF4kcwxURUYWwn1wOAiD59MgUX qF34qRHNz/+KtxOY8biL/Dg8MfUx/NEO3+Ml+nWGVDVYQAotdeCfnTViThPwGAXrpvenUYY uQeZM5cWCk2sQRLJzQx4HnnaMAYaoYfU/AUkwZzdYMrG3svAJz5Qtyh1xdS5iRme8AmbH+B wEn79Fp7If4ESQm2XO3gw== UI-OutboundReport: notjunk:1;M01:P0:N0XYwu8CJLc=;HnPMbWcgadc81YJbeRreHxdz3a8 sGgtoE0qLjvr+uGevne62TWnrq5aG3gxEDt8f9gZwB7fo8Veg2q4F5LdnSK06wczzC6ibzsdO xrCEQWTO3vGSmetJB7G0Yf5QTZxnG/QdO1F0sUFBrov4eflDiPQfrHVOBpYHVlxb+hL6vGn+6 2pmhDwLj2lWAiVqusHH3CxLeDl61PAXn9rhBpMSFcFm+SKvcm8oYfF0if3LI/r2iNQTSiSoMK HF6Y2C8394ii3ySUOvjxY4Tow2liUSyXrrvVOXvXOjye2mkKkN4yTqVwip7A7YwvHAFpo3Ok+ AnnIO9Af+1osxZ9FZbPpeuHNuM1TK+didJZlSPdcNGVprhnGKbxhmlSC8ldmVaRWK/b8X2BAM NJsOxMUykxvA/Dq8RGtnY14JRf68uhg5eyuTL285yMBdDsPi6t/ZhTiIqmoSfeivpCpCNQd4T BQFSvt+qJXsk+APhk8Q7RHh9JgERBQFecyHAvx6+u+9PYz2Uw2LZxLmMMdPIe//HMMD1o9teU 6Sxosv24fjkQpogdsd6gf7PlFZOOlfGmHE6yECQiBhxo5bLttQ95Y0M1Q9KcT7KXkSd9j5y/r vkbF6PYmnHjO5mwm0dypV2S6suwYo/Qg93BUBKaYHLYwnm85szFrZ2vPOXhbFfeqFtW7hJhxW OWKeIFADuFs3rGyjx/d2bYErlUs36uE5vYMTbDwpf98PN3OezAgc0FwtP7Lic50L7wwfFQU0n KF8bLync0EUqYSDMRnlA0OhRKrmRwibVymow2kskEU42uwvojSBEeBws4bXIP2fUYgoWWlZf 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293743 Archived-At: > I gave it another try. The appended patch dosn't add the password icon > to mode-line-format, but to global-mode-string. By this, we don't bother > to find the corresponding window to a given minibuffer. I think this is the best idea I've seen so far here. Users can switch frames and windows in some arbitrary manner and the eye is always there. As long as you are satisfied with seeing the eye at the end of the mode line which for narrow windows can be hidden. Have you considered using 'mode-line-front-space' instead? > This doesn't solve the problem of cascaded password input, but that's > another game. I would append another eye just as the current code does and remove one when the password has been read. And whenever a password has been read make sure to hide passwords. Ideally, we could also give at most one of the eyes (the left- or rightmost one) the visible status. And to make everything foolproof we could make sure all eyes are removed as soon as 'minibuffer-depth' drops to zero. martin