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: Sat, 12 Oct 2024 11:26:31 +0200 Message-ID: <1d3172d5-3704-40c6-92af-8888b0657871@gmx.at> 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="12009"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird 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 11:27:09 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 1szYOy-0002wi-Sz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Oct 2024 11:27:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szYOg-0007zl-Cp; Sat, 12 Oct 2024 05:26: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 1szYOe-0007zU-S8 for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 05:26:48 -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 1szYOe-0007VO-J8 for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 05:26:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:Subject; bh=TtZVcXiSp3wpoEq2n/u0c2i+5rHwMP4U/KpgRf2tP+s=; b=qvKBOcXxBrU8m2EYw9jeKVWVeSuVt5sXFxvELEpQOFwNnrqRU4nYd6o3UCkJMk8RoiOKEQmXLAaxUCynm3G8oURL6eQGEK0rRlROHprC6y2Kqmi6vomaH4bSXeIWwA8BDNvSsPsMdD/fQE/s1DfkVRiUwiVHFEb8TS3w8Qn/WmgpmucE53N8qFDGB4UO1V6CZE8btD5XNz8S7gOW10UzzWVRYSTure+LbS90ZJKchxMOI91KFT4XdGoag8sVIcE21oga+u8CfORbMaHbZ6bcJCpoAHQQMmfpdjq5EswYVpuS93Kda6xLuAaqPwd1nmksey13+lIjWupSQjY6MdsNjA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szYOs-0008Ki-CN for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 05:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2024 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73768 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.172872522132023 (code B ref -1); Sat, 12 Oct 2024 09:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2024 09:27:01 +0000 Original-Received: from localhost ([127.0.0.1]:36318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szYOq-0008KR-GF for submit@debbugs.gnu.org; Sat, 12 Oct 2024 05:27:01 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szYOm-0008KI-KE for submit@debbugs.gnu.org; Sat, 12 Oct 2024 05:26:59 -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 1szYOY-0007zH-CY for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 05:26:42 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szYOV-0007Ux-3U for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2024 05:26:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1728725195; x=1729329995; i=rudalics@gmx.at; bh=TtZVcXiSp3wpoEq2n/u0c2i+5rHwMP4U/KpgRf2tP+s=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:From:Subject: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=dn2Y7mHKvM8HCDD68hCyuEH9UQN6GOemqXJmQcdZCptOst/PCVO6m549Lv4/bmHG 1sxX3Puvp2Kp0q7hB7/V5ewVFCjcWfZ+EEwfiQMsTapgNGdwSP/LzHxgD8ZHRjEQz V8+QAv9mCK16X22074gBc7l9kYUN1ZMJTVLId4o32udOEVFBrjCohmkPzN9o5V7GN wfoQKKKEqhT+4cqWfwmAq2SJ+WDAoKzs3kWYI2I5d2P8QGq4yKH2gsynAdHOv84e3 AYP4fDqiXwZFRek39Msv36mV8+EmgsuVxFKnmDZSJhcyVyAKgmjpWXsUBn/9zg7Yd lSa+rMMnRlTY2fV63g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.56]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MdvmO-1tZRds2JcM-00buqY for ; Sat, 12 Oct 2024 11:26:34 +0200 Content-Language: en-US X-Provags-ID: V03:K1:/xSEvs4TsHg5VOURqcvg53JePip2XLwWmJHIPykOGWGvKPzEL5y nn0wHV7/UOq6+oivYJJoxKHPKKoYNYeRs+UE58WEIep632w+pKWl8vj0RYkCJpbtwtNhMJl D7i1fegALHMOZzq30yd0++it+Kbrl5N8Aw7I/5wNfh4M6SugOBrNDQm/Pmmzvzb4xGYKtla WuPiD7ifOg0lN+agJmFWw== UI-OutboundReport: notjunk:1;M01:P0:xmJX9J3dTBA=;+tgKhgTzGR5pd9IRZbHxTdIMUwS AAKGjh34bav9dfGJyGTda5GmLwxmxeLHW/PWQRRLP0wBC+WqQbj9u3Hb5Ia+pHFzTMaFlVKgM T+gQ0ixlxWGRiVM/9uqbwk3mdqhfvQCYaoJKy+1jr7zkejDKW1nEwGLhtv5t44bsmOVdZz1sq f5D2WaWwNi4GwP+7pHPx6xfRk4NAZw6qoTvFfFWJ5qxnkSLZ73rvtj+IZi1FIteZTuP1N2Zlb M3UQxYPjB7q0hYdr+rH75bRj8ouIyKdlCyTbiD5ZCm2CWGktfRuYab1E/BBN+c7QxIMOcx8x5 7xdbsSxV5UXQdRz2BEmg7/VKuJKANBT4xOsftGHfSds0ematGqOBj9qaHJjf31rjO2GJX2gSY l8+nudKdpbm73gFsqImgTaaid56ItxKrscrh3tFT2n6lp4Cgwp2OWrDI9v37zuMyBxRKwEtoH JVAzNjGE3GMptU+AgVeq3mojqlnhS66MTsNizXTrnGGFuypGiMN5fqiWQO4mooL6d+cA2sxcJ HYGjx3W8MCzAmBSQ7cWmoAGz8JLT12VOObOOArgDli0kXtwSci+jU8zCBmi+Lq7Z5j5RztHtZ zeji0LXaqya5EKMs+UDND6fk4XtHPMSnXQo+yfJNDD1TJuNuHCRX9IVB/zYqnV4CIHredAVZ3 6Xg9ydSvvPo1sImNXaz/kOOz4DWontx9ArEktVzPYeOSg1zs1CPtbocw2SV9aEvHCZwj0MyqK uY2FtADias0IQkvN2La27z+PwRNVq5fI3voYEyr3pOPpe23MTiR4Ly+eH/srWnx2YJntOkac Received-SPF: pass client-ip=212.227.15.18; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:293407 Archived-At: 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. In either case, it would be nice to make showing the eye icon customizable by the user. I found no way to do that. Thanks, martin In GNU Emacs 31.0.50 (build 13, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-10-12 built on restno Repository revision: 6e80509099e27e237787186f4e8731bfdfb9b00d Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-gif=ifavailable --with-tiff=ifavailable --with-gnutls=no --without-pop 'CFLAGS=-O3 -g3 -no-pie'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GSETTINGS HARFBUZZ JPEG LIBSELINUX MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: de_AT.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: pop-up-mini-mode: t scroll-restore-mode: t regexp-lock-mode: t eldoc-tooltip-mode: t tooltip-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t column-number-mode: t line-number-mode: t auto-fill-function: my-lisp-mode-auto-fill indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t Load-path shadows: None found. Features: (shadow mail-extr warnings emacsbug message mailcap yank-media puny rfc822 mml mml-sec password-cache epa epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git files-x vc-dispatcher elp vc-hg diff-mode track-changes ediff-vers ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util local-tags goto-last-change speck pop-up-mini info-look find-func srt-mode derived elinfo-support elinfo texinfo texinfo-loaddefs info shell pcomplete comint subr-x ansi-osc ansi-color sidebar bookmark text-property-search sort m&d scroll-restore regexp-lock time-stamp cl-macs eldoc-tooltip pcase easy-mmode etags fileloop generator xref project byte-opt bytecomp byte-compile ring find-dired dired dired-loaddefs cus-edit pp cus-load icons wid-edit cl-loaddefs cl-lib jka-compr ls-lisp gv rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 271421 29959) (symbols 48 16095 0) (strings 32 44610 3502) (string-bytes 1 1330220) (vectors 16 24496) (vector-slots 8 277397 25280) (floats 8 109 1037) (intervals 56 9458 42) (buffers 984 34))