all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Michael Droettboom" <mike@droettboom.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: Fri, 12 Oct 2007 14:39:19 -0400	[thread overview]
Message-ID: <7b2578730710121139n2a59a57ek8d1cde52a1082ad3@mail.gmail.com> (raw)
In-Reply-To: <uk5psfbjj.fsf@gmail.com>

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 <nsivaram.net@gmail.com> 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/




  reply	other threads:[~2007-10-12 18:39 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 [this message]
2007-10-12 18:39 ` Eric Hanchrow
2007-10-12 19:13   ` Sivaram Neelakantan
2007-10-13 17:50     ` Jonathan Goldblatt
     [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

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

  git send-email \
    --in-reply-to=7b2578730710121139n2a59a57ek8d1cde52a1082ad3@mail.gmail.com \
    --to=mike@droettboom.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.