unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: spacibba@aol.com, Emacs developers <emacs-devel@gnu.org>
Subject: Re: :extend face attribute at EOB without end-of-line char
Date: Tue, 15 Oct 2019 10:50:24 +0200	[thread overview]
Message-ID: <CAAeL0SREv0TcxwRGStZn6PWvxvtFmnyM_VGhhiYcFkd++04KhQ@mail.gmail.com> (raw)
In-Reply-To: <83mue2h0rl.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

On Tue, Oct 15, 2019 at 10:27 AM Eli Zaretskii <eliz@gnu.org> wrote:

> Face extension is only a factor when it ends on the next line,
> i.e. "covers" the newline that ends the line.  When there's no newline
> at EOB, the face ends with the last character on the line, so IMO it
> makes no sense to extend it, because what would such an extension
> indicate?  When there's a newline, extending the face indicates that
> the newline (which is otherwise invisible) is "covered" by the face.

I understand, but again, that's an explanation of how it works. For me,
face extension is useful as a way to fill the "empty background" of a line.
It is only vaguely related to the idea of text ending in a newline.

For example, if you open the speedbar and then activate hl-line-mode, the
"lines" are highlighted up to the window margin, though speedbar "lines"
are not conceptually lines of text, but an outline of some structure (of
course they *are* lines of text, implementation-wise). In that case, it
happens that the last item in the speedbar ends with a newline, so
hl-line-mode works as expected. But if the speedbar were implemented like
bs-show is, and the last item had no newline, it would be equally
surprising to see the whole "window line" highlighted in all items, and
just partially in the last one.

(Note: I'm not arguing for this to be implemented; just trying to explain
why I would expect a behavior different of the current one.)

[-- Attachment #2: Type: text/html, Size: 1656 bytes --]

  reply	other threads:[~2019-10-15  8:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-14 16:02 :extend face attribute at EOB without end-of-line char Juanma Barranquero
2019-10-14 16:32 ` Ergus
2019-10-14 16:37   ` Juanma Barranquero
2019-10-14 17:07     ` Ergus
2019-10-14 17:52       ` Juanma Barranquero
2019-10-14 17:57         ` Juanma Barranquero
2019-10-14 17:58     ` Eli Zaretskii
2019-10-14 19:41       ` Juanma Barranquero
2019-10-14 19:47         ` Eli Zaretskii
2019-10-14 19:50           ` Juanma Barranquero
2019-10-14 20:04             ` Eli Zaretskii
2019-10-14 21:37               ` Juanma Barranquero
2019-10-15  6:15                 ` Eli Zaretskii
2019-10-15  8:10                   ` Juanma Barranquero
2019-10-15  8:27                     ` Eli Zaretskii
2019-10-15  8:50                       ` Juanma Barranquero [this message]
2019-10-15 13:23                         ` Stefan Monnier
2019-10-15 14:16                           ` Juanma Barranquero
2019-10-15 16:38                       ` Ergus
2019-10-15 16:49                         ` Eli Zaretskii
2019-10-16  0:23                           ` Ergus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAeL0SREv0TcxwRGStZn6PWvxvtFmnyM_VGhhiYcFkd++04KhQ@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=spacibba@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).