From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9917: 24.0.90; Make `goto-line' consistent with the line number from the minibuffer Date: Wed, 2 Nov 2011 05:59:11 -0700 Message-ID: References: <87pqhcyzms.fsf@mail.jurta.org><87y5vzpirv.fsf@mail.jurta.org> <8762j2yhwv.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320238790 23308 80.91.229.12 (2 Nov 2011 12:59:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2011 12:59:50 +0000 (UTC) Cc: 9917@debbugs.gnu.org To: "'Juri Linkov'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 13:59:46 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 1RLaPx-0000I6-C8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2011 13:59:45 +0100 Original-Received: from localhost ([::1]:42549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLaPw-0001J7-Vx for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2011 08:59:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLaPt-0001Bo-T2 for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 08:59:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLaPs-0003kn-UN for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 08:59:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLaPs-0003kf-Sh for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 08:59:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RLaS9-0007gs-HM for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 09:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2011 13:02:01 +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.132023890529542 (code B ref 9917); Wed, 02 Nov 2011 13:02:01 +0000 Original-Received: (at 9917) by debbugs.gnu.org; 2 Nov 2011 13:01:45 +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 1RLaRs-0007gP-Nf for submit@debbugs.gnu.org; Wed, 02 Nov 2011 09:01:45 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLaRp-0007gG-HA for 9917@debbugs.gnu.org; Wed, 02 Nov 2011 09:01:42 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pA2CxGVS000744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Nov 2011 12:59:17 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pA2CxFVt027682 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Nov 2011 12:59:16 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pA2CxAr3030128; Wed, 2 Nov 2011 07:59:10 -0500 Original-Received: from dradamslap1 (/10.159.36.247) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 02 Nov 2011 05:59:09 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8762j2yhwv.fsf@mail.jurta.org> Thread-Index: AcyZRVcZuUXZoAVOR4qFcg5ockJoSwAGPKvw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4EB13EA5.0191,ss=1,re=0.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Nov 2011 09:02:01 -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:53444 Archived-At: > > For `goto-line': > > > > Let a negative prefix arg use line numbering wrt the > > restriction (region), and let a positive prefix arg use > > line numbering wrt the buffer (widened). > > > > Likewise for a number read at the prompt: negative for > > restriction numbering, positive for full-buffer numbering. > > A negative line number usually means counting from the end of > the buffer. Dunno what "usually" means here. It certainly does not mean that for `goto-line'. Currently, using a negative prefix arg seems to just move to line 1. We can define what a negative arg means for `goto-line' to be anything we want. Consistency is all well and good, especially when there are other, supporting, good reasons to keep it up. But it sometimes happens that "usually" gets "established" more or less by accident/default, no better alternative having occurred to the designer at the time. Other suggestions welcome. I think it would be good to be able to quickly say whether you want numbering relative to the restriction or the whole buffer. Of course another possibility is to simply have a separate command for that. The only reason to use the same command and, say, a prefix arg, would be to save keys (and user memory). A separate `goto-line-in-restriction' is a reasonable solution, IMO.