all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 72309@debbugs.gnu.org
Subject: bug#72309: propertized-buffer-identification with maximum width
Date: Sat, 27 Jul 2024 12:23:20 +0000	[thread overview]
Message-ID: <i5hs7DJCQMlxwOzVJuHQML2fKioyPFGXCEeLmWOuN7AUK9GxkZUQV-pmAWbQCG-2flDmiSqm6FeGhAbf8pM8DXVZhf6Ak_Ol--Ua5ptQykY=@protonmail.com> (raw)
In-Reply-To: <86v80r11mk.fsf@gnu.org>






Sent with Proton Mail secure email.

On Sunday, July 28th, 2024 at 12:05 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sat, 27 Jul 2024 09:22:21 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: 72309@debbugs.gnu.org
> > 
> > On Saturday, July 27th, 2024 at 5:48 PM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > tags 72309 notabug
> > > thanks
> > > 
> > > > Date: Fri, 26 Jul 2024 19:04:14 +0000
> > > > From: Heime via "Bug reports for GNU Emacs,
> > > > the Swiss army knife of text editors" bug-gnu-emacs@gnu.org
> > > > 
> > > > propertized-buffer-identification could be improved so that when using a
> > > > maximum width there are three dots and a space at the end to indicate
> > > > that the buffer name has been truncated.
> > > 
> > > Emacs doesn't truncate the buffer name shown on the mode line, so no
> > > ellipsis should be needed, ever. IOW, the maximum width is basically
> > > infinity.
> > > 
> > > Where did you see the buffer name truncated on the mode line?
> > 
> > There is this construct
> > 
> > (width rest…)
> > 
> > which specifies truncation or padding of the results of rest.
> > 
> > If used on the buffer name it just truncates without specification
> > that truncation occurred.
> 
> 
> Where in the Emacs code did you see that? I cannot find anything like
> that in bindings.el, which is where we have the code used for
> displaying the buffer name on the mode line.

The last entry in "24.4.2 The Data Structure of the Mode Line".

I have tried it and setting a maximum width does work and the abrupt 
truncation in the buffer name does occur.  






  reply	other threads:[~2024-07-27 12:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-26 19:04 bug#72309: propertized-buffer-identification with maximum width Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-27  5:48 ` Eli Zaretskii
2024-07-27  9:22   ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-27 12:05     ` Eli Zaretskii
2024-07-27 12:23       ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-07-27 13:00         ` Eli Zaretskii
2024-07-27 13:08           ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-27 13:29             ` Eli Zaretskii
2024-07-27 14:56               ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-27 15:27                 ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-27 20:49                   ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-28  4:55                     ` Eli Zaretskii
2024-07-28 10:55                       ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-28 12:18                         ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-28 12:29                           ` Eli Zaretskii
2024-07-28 12:51                             ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-28 14:07                               ` Eli Zaretskii
2024-07-28 14:19                                 ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-28 14:32                                   ` Eli Zaretskii
2024-07-28 14:40                                     ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors

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='i5hs7DJCQMlxwOzVJuHQML2fKioyPFGXCEeLmWOuN7AUK9GxkZUQV-pmAWbQCG-2flDmiSqm6FeGhAbf8pM8DXVZhf6Ak_Ol--Ua5ptQykY=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=72309@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=heimeborgia@protonmail.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.