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

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

Re: point-at-final-line


From: Emanuel Berg
Subject: Re: point-at-final-line
Date: Sat, 27 Jan 2018 03:50:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Ben Bacarisse wrote:

>> Did anyone do
>> (defun point-at-final-line () (let ((line (line-number-at-pos))) 
>> (save-excursion (forward-line 1) (= line (line-number-at-pos)) )))
>> ?
>
> Maybe something like
>
>   (= (line-number-at-pos) (line-number-at-pos
> (point-max)))
>
> though the details depend on how you
> interpret the final line.

No, that's much better, thank you.

No one ever did this since 1976, ey? In a while
I'll show you the use case but I can tell you
right now it isn't anything radical to motivate
the delay...

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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