From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus 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: Sat, 12 Oct 2024 12:36:26 +0200 Message-ID: <87v7xxsj4l.fsf@gmx.de> References: <1d3172d5-3704-40c6-92af-8888b0657871@gmx.at> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25394"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rudalics@gmx.at To: 73768@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 12 12:37:03 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 1szZUc-0006R7-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Oct 2024 12:37:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szZUQ-0002nQ-MM; Sat, 12 Oct 2024 06:36:50 -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 1szZUO-0002nG-Qf for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 06:36:49 -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 1szZUO-0008Tv-Fj for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 06:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Fu4DdGJXqwLEPZuWisRF0v146SlmhQLh6YD2gtL0ZLI=; b=JhyqJJPQQ7BRv5whMQIXZANgilDlPaQWrBrleCJaUiht7U2FRVEVtdWDQWktsFyZXUftSU2CRzBf1gqAXteh8gExYp3kq5rHBFtQgcKzELnBhXAaLMSd7vcRW78wb2MwwfCV9hTdauWkxQtjhZPCatiJpweWTc0x4rvoK9Nm0R7CWFdHIh+poSGM4REzoBqeCkk8qQe9RWdD1YIj6YRBwf9J/pqKaFIAV1zctir9yKLSXkBaV6jaGbbU6ieMTwu8aSVcYVhkF3uzp5RKbso9nn+j4q5ri+rphqiyQymfwBLoRDLAVGLCht7egARh+VN8a21C3NvA2PNESOYdMsLJng==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szZUb-0004HD-QS for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 06:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2024 10:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73768 X-GNU-PR-Package: emacs X-Debbugs-Original-To: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: martin rudalics , 73768@debbugs.gnu.org Original-Received: via spool by 73768-submit@debbugs.gnu.org id=B73768.172872942016432 (code B ref 73768); Sat, 12 Oct 2024 10:37:01 +0000 Original-Received: (at 73768) by debbugs.gnu.org; 12 Oct 2024 10:37:00 +0000 Original-Received: from localhost ([127.0.0.1]:37617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szZUa-0004Gx-4i for submit@debbugs.gnu.org; Sat, 12 Oct 2024 06:37:00 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:43571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szZUX-0004Gf-1j for 73768@debbugs.gnu.org; Sat, 12 Oct 2024 06:36:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1728729393; x=1729334193; i=michael.albinus@gmx.de; bh=Fu4DdGJXqwLEPZuWisRF0v146SlmhQLh6YD2gtL0ZLI=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=XderSwtG5OgmwtXYUr5jYThRP+gKiNuxYW9ANzv2rJKxgQ4/AlrRaIFAGqRXdKoo Nf4Z8ivS+aQtQkrhOqQlxuhC7J3gcFNWul0O2zOMX24x3V5OAkHr4RNFPO8lllGJn fpy9JcqxwsWB12JH2DXj4VT58yN/cbSqH9l3CT27ZvZ1ogNkixA0LgPPI7SX7ZmUa p6/FXsF0DcgI61U1zlIiAviFZ1GUKQymweFcTbbP1GGTzZkQl3gC5XnAmOUt7ty0g Nq4kUNRkOV5/dl5eOkS5vyQBT8sI/s8XcrGkjT1xnpiYAuDt9y51lPeOa5DL+oM1C FX/+7cPmR8gkF4l9sQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAOJV-1t5wKp3vxL-00FqAC; Sat, 12 Oct 2024 12:36:33 +0200 In-Reply-To: <1d3172d5-3704-40c6-92af-8888b0657871@gmx.at> (martin rudalics via's message of "Sat, 12 Oct 2024 11:26:31 +0200") X-Provags-ID: V03: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27ikrDiB 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:293409 Archived-At: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: Hi Martin, > After reading a password here I sometimes end up with seeing one or two > eye icons in mode lines of buffers. Other buffers may get a blank mode > line. I suppose the culprit is > > (with-current-buffer read-passwd--mode-line-buffer > ;; Remove `read-passwd--mode-line-icon'. > (when (listp mode-line-format) > (setq mode-line-format (cdr mode-line-format))))) > > which can do something arbitrary to user defined mode lines which I use. > Eventually, I have to kill or revert all involved buffers every time > I've read a password. > > At the very least the code should try to identify the item it added > earlier, remove the car only if it matches that item and restore the > previous mode line format in case the items don't match. Also it should > check whether 'read-passwd--mode-line-buffer' still exists. Could you please provide a short recipe I could play with? > In either case, it would be nice to make showing the eye icon > customizable by the user. I found no way to do that. I'll see what's possible. FTR, non-graphical alternatives are already defined in read-passwd--show-password-icon and read-passwd--hide-password-icon. Could you pls give an example what you would like as replacement? > Thanks, martin Best regards, Michael.