unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: 73768@debbugs.gnu.org
Subject: bug#73768: 'read-passwd-mode' can clobber user defined mode lines
Date: Fri, 18 Oct 2024 11:13:18 +0200	[thread overview]
Message-ID: <87r08dvknl.fsf@gmx.de> (raw)
In-Reply-To: <16e113a9-46ec-4e68-bd49-1537111d1acc@gmx.at> (martin rudalics's message of "Fri, 18 Oct 2024 10:22:40 +0200")

martin rudalics <rudalics@gmx.at> writes:

Hi Martin,

>> As long as you are satisfied with seeing the eye at the end of the mode
>> line which for narrow windows can be hidden.  Have you considered using
>> 'mode-line-front-space' instead?
>
> I tried that now and it seems to work well here.  Have a look.

Unfortunately, it doesn't seem to work with your recipe

--8<---------------cut here---------------start------------->8---
emacs -Q --eval "(setq default-frame-alist '((minibuffer . nil)))

evaluate via M-:

(with-selected-window (get-buffer-window "*scratch*" t)
  (with-selected-window (split-window nil -5)
    (set-window-buffer nil (get-buffer-create "*text*"))
    (read-passwd "PWD:")))
--8<---------------cut here---------------end--------------->8---

I also believe that modifying mode-line-front-space is rather a
hack. Nobody seems to do this in Emacs' lisp/ directory. And the
documentation of this variable doesn't encourage its random
modification.

I propose to apply the patch with modifying global-mode-string to
emacs-30. A more sophisticated solution could be in the master branch
then. Yes, the password icon could be invisible due to short window
width, but this might be acceptable.

WDYT?

> martin

Best regards, Michael.





  reply	other threads:[~2024-10-18  9:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-12  9:26 bug#73768: 'read-passwd-mode' can clobber user defined mode lines martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-12 10:36 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-12 13:56   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13 13:49     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13  9:58   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13 14:19     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13 15:09       ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13 16:15         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-14 14:56           ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-17  7:58             ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-17 11:40               ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-17 18:10                 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18  8:22                   ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18  9:13                     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-10-18  9:45                       ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 16:11                         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18  9:18                   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 10:17                 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 10:40                   ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 11:02                     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 14:14                     ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 16:04                       ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18 17:48                         ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-17 18:09               ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-18  9:23                 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-13 15:21       ` Eli Zaretskii

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=87r08dvknl.fsf@gmx.de \
    --to=bug-gnu-emacs@gnu.org \
    --cc=73768@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=rudalics@gmx.at \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).