/[emacs]/emacs/man/basic.texi
ViewVC logotype

Diff of /emacs/man/basic.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by rms, Tue May 10 07:26:25 2005 UTC revision 1.51 by teirllm, Sat May 14 14:13:54 2005 UTC
# Line 238  it is commonly used to do so.  If your k Line 238  it is commonly used to do so.  If your k
238  Read a number @var{n} and move point to buffer position @var{n}.  Read a number @var{n} and move point to buffer position @var{n}.
239  Position 1 is the beginning of the buffer.  Position 1 is the beginning of the buffer.
240  @item M-g M-g  @item M-g M-g
241    @itemx M-g g
242  @itemx M-x goto-line  @itemx M-x goto-line
243  Read a number @var{n} and move point to line number @var{n}.  Line 1  Read a number @var{n} and move point to line number @var{n}.  Line 1
244  is the beginning of the buffer.  is the beginning of the buffer.
# Line 595  Toggle automatic display of the size of Line 596  Toggle automatic display of the size of
596  @cindex location of point  @cindex location of point
597  @cindex cursor location  @cindex cursor location
598  @cindex point location  @cindex point location
599    There are two commands for working with line numbers.  @kbd{M-x    @kbd{M-x what-line} computes the current line number and displays it
600  what-line} computes the current line number and displays it in the  in the echo area.  You can also see the current line number in the
601  echo area.  To go to a given line by number, use @kbd{M-g M-g} or  mode line; see @ref{Mode Line}.  If you narrow the buffer, then the
602  @kbd{M-g g} (@code{goto-line}).  This prompts you for a line number,  line number in the mode line is relative to the accessible portion
603  then moves point to the beginning of that line.  To move to a given  (@pxref{Narrowing}).  By contrast, @code{what-line} shows both the
604  line in the most recently displayed other buffer, use @kbd{C-u M-g  line number relative to the narrowed region and the line number
605  M-g}.  Line numbers in Emacs count from one at the beginning of the buffer.  relative to the whole buffer.
   
   You can also see the current line number in the mode line; see @ref{Mode  
 Line}.  If you narrow the buffer, then the line number in the mode line  
 is relative to the accessible portion (@pxref{Narrowing}).  By contrast,  
 @code{what-line} shows both the line number relative to the narrowed  
 region and the line number relative to the whole buffer.  
606    
607    @kbd{M-x what-page} counts pages from the beginning of the file, and    @kbd{M-x what-page} counts pages from the beginning of the file, and
608  counts lines within the page, showing both numbers in the echo area.  counts lines within the page, showing both numbers in the echo area.

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26