[Top][All Lists]

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

Re: :extend face attribute at EOB without end-of-line char

From: Juanma Barranquero
Subject: Re: :extend face attribute at EOB without end-of-line char
Date: Mon, 14 Oct 2019 21:41:46 +0200

On Mon, Oct 14, 2019 at 7:59 PM Eli Zaretskii <address@hidden> wrote:

> No, that was never the intent.  The extension happens only of the face
> crosses the line boundary, i.e. it "covers" the newline at the end of
> the line.

"the line boundary" is a bit ambiguous; count-lines counts the last line in a buffer even if it has no newline char at the end. It wouldn't be absurd to suppose there's an implicit line boundary between the last line and the end of the buffer, whether that last line has a newline character or not.

But you say that's not the intent, so ok. I still think it would make more sense. The bs-show example above shows why could it be useful.

> If the documentation doesn't make that clear, please suggest how to
> clarify it.

I don't know. I'm bad at thinking about documentation in english. I suppose just adding somewhere: "The face extends from the newline at the end of the line up to the right margin of the window; it doesn't happen if there's no newline at the end". But the simple fact of having to clarify that fact points to it being a bit... unexpected. IMO, of course.

reply via email to

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