From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: No effect upon changing format width to mode-line-buffer-identification
Date: Fri, 26 Jul 2024 12:58:48 +0000 [thread overview]
Message-ID: <nGS55zOiU5mMINlE-EBMNSZqUAWgNmBzfQo1zXCATPkCTZYJ3rLxuuf_2_1xswqMWr1V4NTzuDBBLIaEcwIQ6vnUooL1RJXgFbpyXR-kxzk=@protonmail.com> (raw)
In-Reply-To: <alPZ4ublwm2vlou4uxIzQTFRNOalVQEw3ODVfbRrXoc84slD6mk8DZzZgSVptG5MD3YqlVcdO2zOhZbG3_0veFB9bXaLna1kaWCcyU19UwU=@protonmail.com>
On Friday, July 26th, 2024 at 10:19 PM, Heime <heimeborgia@protonmail.com> wrote:
> Changing the buffer name format to mode-line-buffer-identification
> has no effect. Have changed the width, but the width is not changed
> in the modeline.
>
> (defun vodil-rtgbfn-width (width)
> (setq mode-line-buffer-identification
> (propertized-buffer-identification (format "%%%db" width))))
>
> (defvar vodil-deploy nil "Something")
>
> (unless vodil-deploy-bfname
> (vodil-width 5))
>
> (setq-default mode-line-format
> '( "%e"
> (:eval (if vodil-deploy-bfname
> vodil-panelit-bfname
> mode-line-buffer-identification))
> vodil-panel)) )
>
Have also done
(defun vodil-rtgbf-name (width)
(setq mode-line-buffer-identification
(list (propertized-buffer-identification
(format
(format "%%%ds" (min width (length (buffer-name))))
(buffer-name) ) )))
;; (force-mode-line-update t)
)
Still buffer names larger than width still get displayed.
prev parent reply other threads:[~2024-07-26 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 10:19 No effect upon changing format width to mode-line-buffer-identification Heime
2024-07-26 12:58 ` Heime [this message]
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='nGS55zOiU5mMINlE-EBMNSZqUAWgNmBzfQo1zXCATPkCTZYJ3rLxuuf_2_1xswqMWr1V4NTzuDBBLIaEcwIQ6vnUooL1RJXgFbpyXR-kxzk=@protonmail.com' \
--to=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.