From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: gmane.emacs.help Subject: Re: point-at-final-line Date: Sat, 27 Jan 2018 01:36:40 +0000 Organization: A noiseless patient Spider Message-ID: <87vafom6af.fsf@bsb.me.uk> References: <868tckgl1y.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517017117 4340 195.159.176.226 (27 Jan 2018 01:38:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2018 01:38:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 27 02:38:33 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efFRt-0000Yd-Tp for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jan 2018 02:38:30 +0100 Original-Received: from localhost ([::1]:42180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efFTu-0007T5-8L for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Jan 2018 20:40:34 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-Injection-Info: reader02.eternal-september.org; posting-host="b60df1722fed69abfcf27094fb1391f9"; logging-data="1220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vjBataaRMCoR8K0VP6laXCsZ/EaOFwD0=" Cancel-Lock: sha1:196T+6GUUtYvAvAg7urzbBBtBw8= sha1:xJV/Axe3eeJDT1AqqSp/m93Fy4Y= X-BSB-Auth: 1.8ea6ccb49123bffb21e8.20180127013640GMT.87vafom6af.fsf@bsb.me.uk Original-Xref: usenet.stanford.edu gnu.emacs.help:221741 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115858 Archived-At: Emanuel Berg 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.