[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No effect upon changing format width to mode-line-buffer-identificat
From: |
Heime |
Subject: |
Re: No effect upon changing format width to mode-line-buffer-identification |
Date: |
Fri, 26 Jul 2024 12:58:48 +0000 |
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.