[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 12:45:50 +0000 |
On Thursday, July 25th, 2024 at 12:33 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Wed, 24 Jul 2024 12:21:49 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> >
> > On Wednesday, July 24th, 2024 at 11:47 PM, Eli Zaretskii eliz@gnu.org wrote:
> >
> > > > Date: Wed, 24 Jul 2024 10:18:44 +0000
> > > > From: Heime heimeborgia@protonmail.com
> > > > Cc: help-gnu-emacs@gnu.org
> > > >
> > > > 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.
> > >
> > > It depends on what you replace "%12b" with.
> >
> > I want to replace it to a larger value.
>
>
> You mean, instead of "%12b" something like "%20b"? Then you shouldn't
> need to do anything.
Yes. Maybe I do not need to do a lot, but the number is not going to change
all by itself.
- Re: Operation of format-mode-line, (continued)
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/23
- Re: Operation of format-mode-line, Heime, 2024/07/23
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/23
- Re: Operation of format-mode-line, Heime, 2024/07/23
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/23
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/23
- Re: Operation of format-mode-line, Heime, 2024/07/24
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/24
- Re: Operation of format-mode-line, Heime, 2024/07/24
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/24
- Re: Operation of format-mode-line,
Heime <=
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/24
- Re: Operation of format-mode-line, Heime, 2024/07/24
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/24
- Re: Operation of format-mode-line, Michael Heerdegen, 2024/07/24
- Re: Operation of format-mode-line, Heime, 2024/07/24
- Re: Operation of format-mode-line, Yuri Khan, 2024/07/24
- Re: Operation of format-mode-line, Heime, 2024/07/24
- Re: Operation of format-mode-line, Eli Zaretskii, 2024/07/25
- Re: Operation of format-mode-line, Heime, 2024/07/25
- Re: Operation of format-mode-line, Yuri Khan, 2024/07/25