unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jussi Piitulainen <jpiitula@ling.helsinki.fi>
To: gnu-emacs-bug@ftp.gnu.org
Subject: Re: Feature Request: Relative jump using M-x goto-line
Date: 12 Oct 2007 21:38:35 +0300	[thread overview]
Message-ID: <qot4pgwjhzo.fsf@ruuvi.it.helsinki.fi> (raw)
In-Reply-To: mailman.1987.1192213301.18990.bug-gnu-emacs@gnu.org

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




       reply	other threads:[~2007-10-12 18:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1987.1192213301.18990.bug-gnu-emacs@gnu.org>
2007-10-12 18:38 ` Jussi Piitulainen [this message]
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
     [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

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=qot4pgwjhzo.fsf@ruuvi.it.helsinki.fi \
    --to=jpiitula@ling.helsinki.fi \
    --cc=gnu-emacs-bug@ftp.gnu.org \
    /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).