unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: Stefan Monnier via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: mode-line icon for encrypted file
Date: Mon, 06 May 2024 20:20:04 +0100	[thread overview]
Message-ID: <87pltyiw7v.fsf@yandex.com> (raw)
In-Reply-To: <jwvmsp32cfn.fsf-monnier+emacs@gnu.org> (Stefan Monnier via Users list for the's message of "Mon, 06 May 2024 11:24:07 -0400")

>>>>> Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:

    >> >> I have discovered I can't access that advantage of the
    >> icon. If I >> launch emacs with -Q then putting the point over
    >> the icon and >> clicking does indeed display the password en
    >> clair. However this >> is not the case when I use my
    >> ~/.emacs. Then I get the error: >> [...]  > AFAIU this should
    >> have been fixed by Stefan on master.  > Michael.  Yes, I can
    >> confirm that it is indeed fixed.

    > Hmm... funny: I didn't think your situation would be fixed by my
    > patch: I just found some loose ends while looking at the code to
    > try and understand what was going on.

    > In retrospect, I guess the problem was that the code used
    > `local-map` rather than `keymap` so its binding ended up with a
    > lower priority than the binding to `button-push`.

    > In any case, I'm glad it's fixed.

Thank you for working on this.

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.

Thanks again.

Colin.




  reply	other threads:[~2024-05-06 19:20 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 [this message]
2024-05-06 20:16                     ` Stefan Monnier
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pltyiw7v.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).