From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Goldblatt Newsgroups: gmane.emacs.bugs Subject: Re: Feature Request: Relative jump using M-x goto-line Date: Sat, 13 Oct 2007 13:50:22 -0400 Message-ID: <18193.1374.459379.910540@tower.localdomain> References: <873awgyy6w.fsf@offby1.atm01.sea.blarg.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192299560 31699 80.91.229.12 (13 Oct 2007 18:19:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2007 18:19:20 +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 Sat Oct 13 19:50:47 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 1Igl8Q-00044b-1l for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2007 19:50:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Igl8J-0006EQ-Mj for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2007 13:50:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Igl8H-0006Di-4N for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 13:50:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Igl8F-0006CM-PQ for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 13:50:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Igl8F-0006CJ-Hl for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 13:50:35 -0400 Original-Received: from smtp107.plus.mail.re1.yahoo.com ([69.147.102.70]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Igl8E-0002H0-UB for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2007 13:50:35 -0400 Original-Received: (qmail 51200 invoked from network); 13 Oct 2007 17:50:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Received:From:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date:To:Cc:Subject:In-Reply-To:References:X-Mailer; b=LZnb9EcqqqgmReVjIJR0f1a027YV00QxizdlENPdxHCRRHgMMHK0CjRAX9NdyD+gAaHusnBTDpiv5dM29NQJbzBqMLz1YjcBd01UIQOPduCKYwEe/v8nex51IlFvyCwhQ6Y9ubTOCs7zmQUEAuZto14pMuRESmewW3itEMjDNvE= ; Original-Received: from unknown (HELO tower.localdomain) (pseudonymous6@76.160.64.172 with plain) by smtp107.plus.mail.re1.yahoo.com with SMTP; 13 Oct 2007 17:50:24 -0000 X-YMail-OSG: FewTITEVM1ng45MIvR7AJY7evC_FRYhiHUjChaZ9B.wR6p3ZGZReS1VD.FuAv8pqTo1WeNyIow-- Original-Received: from jonathan by tower.localdomain with local (Exim 4.50) id 1Igl82-0002P1-Sw; Sat, 13 Oct 2007 13:50:22 -0400 In-Reply-To: X-Mailer: VM 7.18 under Emacs 21.4.1 X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (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:16742 >>>>> "Sivaram" == Sivaram Neelakantan writes: Sivaram> Not this, please! You might want to try this... You can put it in your .emacs (defun sivaram-goto-line (line) "Special goto-line for sivaram." (interactive "s") (yow t) (if (string-match "^\\+\\|-" line) (next-line (string-to-int line)) (goto-line (string-to-int line)))) (global-set-key "" 'sivaram-goto-line) It's a little rough, but I'm sure that you can make it do what you want it to. Jonathan