From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Damien Cassou Newsgroups: gmane.emacs.bugs Subject: bug#26417: 25.2; Add current-line in simple.el Date: Wed, 12 Apr 2017 10:52:47 +0200 Message-ID: <87wpaq57og.fsf@cassou.me> References: <87fuhhzwbe.fsf@cassou.me> <87a87m2fk2.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1491987193 12001 195.159.176.226 (12 Apr 2017 08:53:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2017 08:53:13 +0000 (UTC) To: Nicolas Petton , 26417@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 12 10:53:07 2017 Return-path: Envelope-to: geb-bug-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 1cyE1R-0002zO-CY for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Apr 2017 10:53:05 +0200 Original-Received: from localhost ([::1]:43001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyE1X-0003j8-6Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Apr 2017 04:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyE1R-0003j1-Cp for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2017 04:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyE1O-0008Gv-B4 for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2017 04:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyE1O-0008Ga-86 for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2017 04:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cyE1O-0007UR-1A for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2017 04:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2017 08:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26417 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26417-submit@debbugs.gnu.org id=B26417.149198717728781 (code B ref 26417); Wed, 12 Apr 2017 08:53:01 +0000 Original-Received: (at 26417) by debbugs.gnu.org; 12 Apr 2017 08:52:57 +0000 Original-Received: from localhost ([127.0.0.1]:43668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyE1J-0007U9-Eg for submit@debbugs.gnu.org; Wed, 12 Apr 2017 04:52:57 -0400 Original-Received: from mail.choca.pics ([62.210.108.126]:42998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyE1I-0007U2-3f for 26417@debbugs.gnu.org; Wed, 12 Apr 2017 04:52:56 -0400 Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 70DC6232B09D; Wed, 12 Apr 2017 10:52:55 +0200 (CEST) Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id zo5OvrP4hRVQ; Wed, 12 Apr 2017 10:52:54 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 93993232B09E; Wed, 12 Apr 2017 10:52:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.choca.pics 93993232B09E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=9EA44F5C-DEF4-11E6-A83F-A08DF322D8FB; t=1491987174; bh=7t4Od84SSoTbwtlYuGO+tjR8FyqO9Cv4+hyDu/FeD9s=; h=From:To:Date:Message-ID:MIME-Version; b=O6VrdzXQ65DxS99WtpVjKBsIzMPciRaOoJFix4Ecc6rmiW16MrfyCcIJZKQb85Npz D0gSt1pd/LAL0+RoPtniIdxpx5wMf+IfvZHaz08gkrB4fOTsvF8Yzcf/37m1sKD1gj uqFJ3qoF2zDgu0OYOtJFHKsGCAIPmeMU6fNsEuRX+vckdhGNOW0SkCcQuboKzs2FDw WrlyIOGxEWM2FdNjPbDmv0RoM6uieTY39lyrFFTD9jtuk0Lw8ft+0jE7WFStOC55Cl 1qlszFe5uHFh/oR13YE+Sa9cVTwW1B7nwEGrt56EAD184DUCNp1clBrbJKP0VyGm6V iu/xhRvoKYWjA== X-Virus-Scanned: amavisd-new at choca.pics Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id NcI3MVKqD3qg; Wed, 12 Apr 2017 10:52:54 +0200 (CEST) Original-Received: from luz4 (31-211-216-84.customers.ownit.se [31.211.216.84]) by mail.choca.pics (Postfix) with ESMTPSA id 4E1FB232B09D; Wed, 12 Apr 2017 10:52:54 +0200 (CEST) In-Reply-To: <87a87m2fk2.fsf@petton.fr> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131502 Archived-At: Nicolas Petton writes: > I know narrowing have no effect on `current-column', but does it > make sense to widen the buffer for `current-line'? (I don't have > a strong opinion, but I think it's worth asking the question). The existing function `line-number-at-pos` returns the line number relative to current narrowing. I need a function that returns the absolute line number (as I need to save the line number in a separate file so that I can later open at the appropriate line). Do you think the function name is misleading? What about one of these? - line-number-at-pos-absolute - current-absolute-line -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill