[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs's handling of line numbers [from bug#5042]
From: |
Mark Lillibridge |
Subject: |
Re: Emacs's handling of line numbers [from bug#5042] |
Date: |
Tue, 08 Jun 2010 19:20:56 -0700 |
> >> goto-line is already marked as "should only be called from Elisp", so
> >> introducing goto-numbered-line doesn't sound right.
> > => "should not be called from Elisp"?
>
> Oops, thanks,
>
> Stefan
That's funny; the documentation for goto-line specifically talks about
its behavior when called from elisp!
M-g (translated from <escape> g) runs the command goto-line, which is
an interactive compiled Lisp function in `simple.el'.
It is bound to M-g, <menu-bar> <edit> <goto> <go-to-line>.
(goto-line line &optional buffer)
Goto line, counting from line 1 at beginning of buffer.
Normally, move point in the current buffer, and leave mark at the
previous position. With just C-u as argument,
move point in the most recently selected other buffer, and switch
to it. When called from Lisp code, the optional argument buffer
specifies a buffer to switch to.
If there's a number in the buffer at point, it is the default for
line.