unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: mode-line icon for encrypted file
Date: Sun, 05 May 2024 10:48:05 -0400	[thread overview]
Message-ID: <jwvedag5p79.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 878r0opdys.fsf@yandex.com

> I've posted the trace below. I had thought that the problem was
> window-manager specific, but I've discovered that's not the case. The
> odd thing is that if I launch Emacs as "emacs -Q" and then do load-file
> <RET> ~/.emacs <RET> then there is no error and I can see my password
> when I click the icon.

Maybe some site-wide config file?


        Stefan


Does `-q` make a difference compared to `-Q` (or does `--no-site-file`
make a difference)?

> Colin.
>
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (error "Can't expand minibuffer to full frame")
>   (signal error ("Can't expand minibuffer to full frame"))
>   (error "Can't expand minibuffer to full frame")
>   (delete-other-windows)
>   (help-with-tutorial)
>   (#f(compiled-function (button) #<bytecode -0xf86fb9a>) #<overlay from 77 to 91 in *GNU Emacs*>)
>   (button-activate #<overlay from 77 to 91 in *GNU Emacs*> t)
>   (push-button nil t)
>   (push-button (mouse-2 (#<window 3 on *GNU Emacs*> mode-line (8 . 654)
> 307812721 (#(" " 0 1 (rear-nonsticky t help-echo "mouse-1: Toggle password
> visibility" display (image :type svg :file
> "/home/redknight/git/emacs/etc/images/reveal.svg" :height (0.8 . em) :scale
> 1 :ascent center :transform-smoothing t) mouse-face mode-line-highlight
> local-map (keymap (mode-line keymap ...)))) . 0) nil (0 . 47) (image :type
> svg :file "/home/redknight/git/emacs/etc/images/reveal.svg" :height (0.8
> . em) :scale 1 :ascent center :transform-smoothing t) (8 . 6) (13 . 13))))
>   (funcall-interactively push-button (mouse-2 (#<window 3 on *GNU Emacs*>
> mode-line (8 . 654) 307812721 (#(" " 0 1 (rear-nonsticky t help-echo
> "mouse-1: Toggle password visibility" display (image :type svg :file
> "/home/redknight/git/emacs/etc/images/reveal.svg" :height (0.8 . em) :scale
> 1 :ascent center :transform-smoothing t) mouse-face mode-line-highlight
> local-map (keymap (mode-line keymap ...)))) . 0) nil (0 . 47) (image :type
> svg :file "/home/redknight/git/emacs/etc/images/reveal.svg" :height (0.8
> . em) :scale 1 :ascent center :transform-smoothing t) (8 . 6) (13 . 13))))
>   (call-interactively push-button nil nil)
>   (command-execute push-button)

`push-button` is not the command that we expect here.  It should be
`read-passwd-toggle-visibility` instead.
Also that visibility toggle thingy is bound to `mouse-1`, and doesn't
work on `mouse-2` but the above talks about a `mouse-2` event.
Did you click with `mouse-2` or was your `mouse-1` click converted into
a `mouse-2` click (presumably by `mouse-1-click-follows-link`)?


        Stefan




  reply	other threads:[~2024-05-05 14:48 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 [this message]
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
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=jwvedag5p79.fsf-monnier+emacs@gnu.org \
    --to=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).