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

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

Re: Operation of format-mode-line


From: Heime
Subject: Re: Operation of format-mode-line
Date: Wed, 24 Jul 2024 10:18:44 +0000

On Wednesday, July 24th, 2024 at 2:26 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Tue, 23 Jul 2024 19:13:32 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > On Wednesday, July 24th, 2024 at 7:07 AM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > > Date: Tue, 23 Jul 2024 18:56:47 +0000
> > > > From: Heime heimeborgia@protonmail.com
> > > > Cc: help-gnu-emacs@gnu.org
> > > > 
> > > > > > Seems that the text properties are the same for each character.
> > > > > 
> > > > > They are not.
> > > > 
> > > > If the buffer name is provodilac.el, what is the difference in text 
> > > > proporties
> > > > between the different characters ? I see there are faces and code for 
> > > > mouse
> > > > action whether I use position 0, 1, 2, etc.
> > > 
> > > All the characters that belong to the buffer name indeed have the same
> > > properties. But not all of the characters of the string returned by
> > > format-mode-line.
> > 
> > Returning the text properties from position 0 would ensure that the 
> > properties one gets are associated with the the buffer name. Is this 
> > correct when doing
> > 
> > (text-properties-at 0 (format-mode-line mode-line-buffer-identification))
> 
> 
> I don't understand your question, sorry. Is what correct?

I want to have buffer identification in the modeline without the "%12b"
so that the buffer name does not get truncated.  What can I do ? Have
been copying the text properties.



reply via email to

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