From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9917: 24.0.90; Make `goto-line' consistent with the line number from the minibuffer Date: Tue, 01 Nov 2011 11:35:01 +0200 Organization: JURTA Message-ID: <87pqhcyzms.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320140170 10192 80.91.229.12 (1 Nov 2011 09:36:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2011 09:36:10 +0000 (UTC) Cc: 9917@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 01 10:36:06 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLAlB-0007Tb-Sj for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2011 10:35:58 +0100 Original-Received: from localhost ([::1]:50036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLAlB-0001Rh-G2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2011 05:35:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLAl8-0001R4-Ui for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 05:35:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLAl1-0001pq-Ce for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 05:35:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLAl1-0001pm-9j for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 05:35:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RLAnD-0000An-FD for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2011 05:38:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2011 09:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9917 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9917-submit@debbugs.gnu.org id=B9917.1320140282657 (code B ref 9917); Tue, 01 Nov 2011 09:38:03 +0000 Original-Received: (at 9917) by debbugs.gnu.org; 1 Nov 2011 09:38:02 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLAnC-0000AV-ES for submit@debbugs.gnu.org; Tue, 01 Nov 2011 05:38:02 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLAn8-00009z-Oc for 9917@debbugs.gnu.org; Tue, 01 Nov 2011 05:38:00 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 25F936E80A4; Tue, 1 Nov 2011 02:35:42 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 40E49451C5B8; Tue, 1 Nov 2011 02:35:41 -0700 (PDT) In-Reply-To: (Dani Moncayo's message of "Mon, 31 Oct 2011 15:31:22 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Nov 2011 05:38:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53381 Archived-At: > When you are in a narrowed buffer (e.g. an Info buffer), the line > number that you see in the mode-line is relative to the narrowed > portion, whereas the `goto-line' (M-g g) command requires you to > supply an absolute line number. > > This discrepancy is quite confusing for users, so my proposal is > obvious: adjust the behaviour of `goto-line' to make it consistent > with the line number showed in the minibuffer, i.e, to consider its > LINE argument relative to the narrowed part if there's one, or else to > the whole buffer. Just removing `(widen)' from `goto-line' will fix this. But the question is why it's here. What was the intention of adding `(widen)' here.