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: Ben Bacarisse
Subject: Re: point-at-final-line
Date: Sat, 27 Jan 2018 01:36:40 +0000

Emanuel Berg <moasen@zoho.com> writes:

> 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.

-- 
Ben.


reply via email to

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