From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jussi Piitulainen Newsgroups: gmane.emacs.bugs Subject: Re: Feature Request: Relative jump using M-x goto-line Date: 12 Oct 2007 21:38:35 +0300 Organization: University of Helsinki Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192219283 31648 80.91.229.12 (12 Oct 2007 20:01:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 20:01:23 +0000 (UTC) To: gnu-emacs-bug@ftp.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 22:01:12 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IgQcR-0000mv-VK for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 21:56:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgQcL-0001p4-2R for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 15:56:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgPSO-0005nC-Mc for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:41:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgPSO-0005n0-6Q for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:41:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgPSN-0005mx-To for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:41:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgPSN-0001zs-Or for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:41:55 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgPQv-00012X-DW for gnu-emacs-bug@ftp.gnu.org; Fri, 12 Oct 2007 14:40:25 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IgPQt-0001zI-RO for gnu-emacs-bug@ftp.gnu.org; Fri, 12 Oct 2007 14:40:25 -0400 Original-Received: from oravannahka.helsinki.fi ([128.214.205.17]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgPQs-0001fd-Sh for gnu-emacs-bug@ftp.gnu.org; Fri, 12 Oct 2007 14:40:23 -0400 Original-Received: from oravannahka.helsinki.fi (localhost [127.0.0.1]) by oravannahka.helsinki.fi (8.13.7/8.12.10) with ESMTP id l9CIcekn004088 for ; Fri, 12 Oct 2007 21:38:45 +0300 (EET DST) Original-Received: (from news@localhost) by oravannahka.helsinki.fi (8.13.7/8.12.10/Submit) id l9CIcZ1j004083 for gnu-emacs-bug@prep.ai.mit.edu; Fri, 12 Oct 2007 21:38:35 +0300 (EET DST) Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 18 Original-NNTP-Posting-Host: ruuvi.it.helsinki.fi Original-X-Trace: oravannahka.helsinki.fi 1192214315 4067 128.214.205.65 (12 Oct 2007 18:38:35 GMT) Original-X-Complaints-To: abuse@helsinki.fi Original-NNTP-Posting-Date: 12 Oct 2007 18:38:35 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-detected-kernel: by monty-python.gnu.org: Solaris 2.5-7 (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 12 Oct 2007 15:56:06 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16735 Archived-At: Sivaram Neelakantan writes: > Can M-x goto-line have options to take numbers with +- values, so that > it goes to line +lines from current position or -lines from current > position? > > M-x goto-line +40, should go 40 lines forward > M-x goto-line -30 goes 30 lines backward. > M-x goto-line 24 goes to line 24 > > I'd find this useful when working with files having header and trailer > records. You can give an argument to C-n or C-p. C-u 4 0 C-n C-u 3 0 C-p M-x goto-line RET 24