From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Michael Droettboom" Newsgroups: gmane.emacs.bugs Subject: Re: Feature Request: Relative jump using M-x goto-line Date: Fri, 12 Oct 2007 14:39:19 -0400 Message-ID: <7b2578730710121139n2a59a57ek8d1cde52a1082ad3@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1192214470 14694 80.91.229.12 (12 Oct 2007 18:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2007 18:41:10 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Sivaram Neelakantan" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 20:40:58 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 1IgPQ5-00065z-If for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 20:39:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgPPz-0004EO-AK for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2007 14:39:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgPPx-0004Dv-0u for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:39:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgPPv-0004DI-Af for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:39:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgPPu-0004D4-VZ for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:39:23 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.244]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgPPu-0001kc-DV for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2007 14:39:22 -0400 Original-Received: by an-out-0708.google.com with SMTP id c25so53794ana for ; Fri, 12 Oct 2007 11:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=2bbNf+hMc3BKyE2eLXO34fmFz3tFKK2TI7j4CnLNH4o=; b=VGXCS1gWTL9tSK+LwJt/hO4UPS3Fg5M0z1NHstQIBgeiuB1YEqS9M/EeUCG2DPH5LbpCLpDq7SsYcYN1LqneAxm2VMzTpwakJlbgeowuBUkS0R35nvg+97D9UNNRzDVeUGJ5pNU+gL0lvExv1f/e3ZTp3vkbf9+ZMdfwMqtyaa0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=pkMlWY1cm3HGUDr4IMXgiPUvqVnhOPoLKtf7YA7dUSbVhqS5gyGDSWlsoEe5VvBdBFhJdyGSXjzX5vBh5P3Ys39b+G8VhPnIH4/KplKXso/1vxj+Rit3gw6O+t7xM3iGG5PYAbEvZ5Az9tyypXTItJPxzbuD+ljNECeQlLeJoUA= Original-Received: by 10.142.232.20 with SMTP id e20mr1175866wfh.1192214359901; Fri, 12 Oct 2007 11:39:19 -0700 (PDT) Original-Received: by 10.143.43.17 with HTTP; Fri, 12 Oct 2007 11:39:19 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: 2a35e31efdb684f7 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:16732 Archived-At: Maybe this doesn't address your needs, but you can do: C-u 40 C-n to go 40 lines forward C-u 30 C-p to go 30 lines backward Cheers, Mike On 10/12/07, Sivaram Neelakantan wrote: > 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. > > > sivaram > -- > > > > > -- Michael Droettboom http://www.droettboom.com/