help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help on calling a function inside "ibuffer-formats"


From: Michael Heerdegen
Subject: Re: Help on calling a function inside "ibuffer-formats"
Date: Wed, 27 Jan 2021 23:53:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

doltes <doltes512@gmail.com> writes:

> My question is:
>
> 1. How can I make the =Name= column never be truncated? I know that I
>    can set this value to a big number (e.g. 100, 200, 300) but I'd
>    rather this value to be obtained through a function instead of
>    hardcoding its value.

You could just elide :elide, but I assume you don't want that.  Then it
seems to me that this

> 2. How can I call a function inside =ibuffer-formats= in order to
>    ensure that =MIN-SIZE= and =MAX-SIZE= is always set to the length
>    of the buffer with the longest name?

is not possible without redefining `ibuffer-format' on the fly all the
time.

Are you sure you would like the result?  You can always toggle with key
` to see the full buffer names.  I find that more convenient than having
a potentially huge first column width.

Regards,

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]