unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonathan Goldblatt <jonathangoldblatt@yahoo.com>
To: Sivaram Neelakantan <nsivaram.net@gmail.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Feature Request: Relative jump using M-x goto-line
Date: Sat, 13 Oct 2007 13:50:22 -0400	[thread overview]
Message-ID: <18193.1374.459379.910540@tower.localdomain> (raw)
In-Reply-To: <uejg0f8oc.fsf@gmail.com>

>>>>> "Sivaram" == Sivaram Neelakantan <nsivaram.net@gmail.com> 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 "\x1a" 'sivaram-goto-line)

It's a little rough, but I'm sure that you can make it do what
you want it to.

Jonathan






  reply	other threads:[~2007-10-13 17:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-12 18:11 Feature Request: Relative jump using M-x goto-line Sivaram Neelakantan
2007-10-12 18:39 ` Michael Droettboom
2007-10-12 18:39 ` Eric Hanchrow
2007-10-12 19:13   ` Sivaram Neelakantan
2007-10-13 17:50     ` Jonathan Goldblatt [this message]
     [not found]   ` <mailman.1990.1192216966.18990.bug-gnu-emacs@gnu.org>
2007-10-15 15:15     ` Mathias Dahl
2007-10-15 18:04       ` Sivaram Neelakantan
     [not found] <mailman.1987.1192213301.18990.bug-gnu-emacs@gnu.org>
2007-10-12 18:38 ` Jussi Piitulainen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18193.1374.459379.910540@tower.localdomain \
    --to=jonathangoldblatt@yahoo.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=nsivaram.net@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).