[Top][All Lists]

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

Re: line-number-mode at EOB

From: Stephen Berman
Subject: Re: line-number-mode at EOB
Date: Thu, 20 Jul 2017 22:43:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Thu, 20 Jul 2017 13:25:15 -0700 Paul Eggert <address@hidden> wrote:

> On 07/18/2017 08:04 AM, Stefan Monnier wrote:
>>> But there's no line there.
>> That's a philosophical opinion.
>> There's enough of a line to display a cursor, apparently.
> More important, it's enough of a line so that (replace-regexp "^" "X") inserts
> three "X"s in a 2-line buffer.

Why doesn't this also happen with (replace-regexp "$" "X"), although
both (looking-at "^$") and (looking-at "$") return t at EOB (preceded by
a newline)?

Steve Berman

reply via email to

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