[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
- point-at-final-line, Emanuel Berg, 2018/01/26
- Re: point-at-final-line, Ben Bacarisse, 2018/01/26
- Message not available
- Re: point-at-final-line, Stefan Monnier, 2018/01/28
- Message not available
- Re: point-at-final-line, Emanuel Berg, 2018/01/28
- Re: point-at-final-line, Eli Zaretskii, 2018/01/28
- Message not available
- Re: point-at-final-line, Emanuel Berg, 2018/01/29
- Re: point-at-final-line, Eli Zaretskii, 2018/01/29
- Message not available
- Re: point-at-final-line, Emanuel Berg, 2018/01/29