From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Colin Baxter <m43cap@yandex.com>
Cc: Stefan Monnier via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: mode-line icon for encrypted file
Date: Mon, 06 May 2024 16:16:13 -0400 [thread overview]
Message-ID: <jwv8r0mog0t.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pltyiw7v.fsf@yandex.com> (Colin Baxter's message of "Mon, 06 May 2024 20:20:04 +0100")
> There's a nice hack that Michael Albinus set me, originally to hide the
> icon, which, with v. slight modification can be used in a terminal:
>
> --8<---------------cut here---------------start------------->8---
> (unless (display-graphic-p)
> (with-eval-after-load 'auth-source
> (setcar (cdr (iconp 'read-passwd--show-password-icon)) '((text "O")))
> ;;; 'O' shows password
> (setcar (cdr (iconp 'read-passwd--hide-password-icon)) '((text "X")))))
> ;;; 'X' hides password
> --8<---------------cut here---------------end--------------->8---
>
> This will be useful for me because I more often than not use emacs -nw.
AFAICT this is not needed for the toggle to be available in `emacs -nw`,
but admittedly in my test the toggle is currently displayed (in my
xterm) as something I'm unable to recognize. This said, I don't think
I'd recognize "X" or "O" is indicating that this is the place to toggle
the visibility either.
Stefan
next prev parent reply other threads:[~2024-05-06 20:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-03 11:31 mode-line icon for encrypted file Colin Baxter
2024-05-03 11:51 ` Eli Zaretskii
2024-05-03 20:18 ` Colin Baxter
2024-05-04 6:23 ` Eli Zaretskii
2024-05-04 7:00 ` Colin Baxter
2024-05-04 8:06 ` Eli Zaretskii
2024-05-04 9:51 ` Colin Baxter
2024-05-04 16:44 ` Michael Albinus
2024-05-04 18:15 ` Colin Baxter
2024-05-04 18:25 ` Colin Baxter
2024-05-05 10:43 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-05-05 13:47 ` Colin Baxter
2024-05-05 14:48 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-05-05 15:36 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-05-05 15:49 ` Colin Baxter
2024-05-06 11:26 ` Michael Heerdegen
2024-05-06 14:23 ` Colin Baxter
2024-05-06 15:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-05-06 19:20 ` Colin Baxter
2024-05-06 20:16 ` Stefan Monnier [this message]
2024-05-03 16:06 ` Michael Albinus
2024-05-03 20:24 ` Colin Baxter
2024-05-04 8:05 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv8r0mog0t.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
--cc=m43cap@yandex.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.