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: Sun, 28 Jul 2024 12:51:06 +0000 [thread overview]
Message-ID: <I0hqkF1SEGURAqvRUnCzKwzooqb4ONLEviHb-DzhRXFxW1iV8fzTKoplcqe3nl-tavq6oHI5tQrBfjCdH8GC32SLCGPQCjGpvsByfkXYhXg=@protonmail.com> (raw)
In-Reply-To: <861q3d1yzi.fsf@gnu.org>
Sent with Proton Mail secure email.
On Monday, July 29th, 2024 at 12:29 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sun, 28 Jul 2024 12:18:32 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: Eli Zaretskii eliz@gnu.org, 72309@debbugs.gnu.org
> >
> > > > > What is the big problem of showing how to implement this, buffer name
> > > > > with truncation ellipses using mode-line-buffer-identification ?
> > > >
> > > > We don't have people here whose job is to write code for others. This
> > > > is a volunteer-based project, where people help you with ideas, but
> > > > the actual job of writing and debugging the code is yours.
> > > >
> > > > So please take the ideas, read the documentation, and work on the
> > > > implementation you want. If you have questions about the
> > > > implementation, please ask them on help-gnu-emacs, which is where
> > > > user-level help should be sought.
> >
> > The implementations do not work.
> >
> > For instance, using
> >
> > (name (buffer-name))
> >
> > or with
> >
> > (buffer-name (window-buffer))
> >
> > See
> >
> > (setq-default mode-line-buffer-identification
> > (propertized-buffer-identification
> > (format " %s "
> > (let ( (name (buffer-name)) )
> > (if (> (length name) wmax)
> > (concat (substring name 0 (- wmax 3)) "...")
> > name))))) )
> >
> > And neither does this
> >
> > (let* ( (bfname (buffer-name (window-buffer)))
> > (tkname (if (> (length bfname) wmax)
> > (truncate-string-to-width bfname wmax nil nil "...")
> > bfname)))
> > (propertized-buffer-identification (format " %s " tkname))))
> >
> > So there is no option other than using %b, where one has no control about
> > how it gets displayed.
>
>
> Your conclusions are wrong.
If I put a question on emacs help, would you answer it in
a way that gets things to work ?
next prev parent reply other threads:[~2024-07-28 12:51 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
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 [this message]
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='I0hqkF1SEGURAqvRUnCzKwzooqb4ONLEviHb-DzhRXFxW1iV8fzTKoplcqe3nl-tavq6oHI5tQrBfjCdH8GC32SLCGPQCjGpvsByfkXYhXg=@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.