77 |
@item C-x 5 b @var{buffer} @key{RET} |
@item C-x 5 b @var{buffer} @key{RET} |
78 |
Similar, but select @var{buffer} in a separate frame |
Similar, but select @var{buffer} in a separate frame |
79 |
(@code{switch-to-buffer-other-frame}). |
(@code{switch-to-buffer-other-frame}). |
80 |
|
@item C-u M-g M-g |
81 |
|
@itemx C-u M-g g |
82 |
|
Read a number @var{n} and move to line @var{n} in the most recently |
83 |
|
selected buffer other than the current buffer. |
84 |
@end table |
@end table |
85 |
|
|
86 |
@kindex C-x b |
@kindex C-x b |
143 |
can also be used to switch to an existing file-visiting buffer. |
can also be used to switch to an existing file-visiting buffer. |
144 |
@xref{Visiting}. |
@xref{Visiting}. |
145 |
|
|
146 |
|
@kbd{C-u M-g M-g}, that is @code{goto-line} with a prefix argument |
147 |
|
of just @kbd{C-u}, reads a number @var{n} using the minibuffer, |
148 |
|
selects the most recently selected buffer other than the current |
149 |
|
buffer in another window, and then moves point to the beginning of |
150 |
|
line number @var{n} in that buffer. This is mainly useful in a buffer |
151 |
|
that refers to line numbers in another buffer: if point is on or just |
152 |
|
after a number, @code{goto-line} uses that number as the default for |
153 |
|
@var{n}. Note that prefix arguments other than just @kbd{C-u} behave |
154 |
|
differently. @kbd{C-u 4 M-g M-g} goes to line 4 in the @emph{current} |
155 |
|
buffer, without reading a number from the minibuffer. (Remember that |
156 |
|
@kbd{M-g M-g} without prefix argument reads a number @var{n} and then |
157 |
|
moves to line number @var{n} in the current buffer.) |
158 |
|
|
159 |
Emacs uses buffer names that start with a space for internal purposes. |
Emacs uses buffer names that start with a space for internal purposes. |
160 |
It treats these buffers specially in minor ways---for example, by |
It treats these buffers specially in minor ways---for example, by |
161 |
default they do not record undo information. It is best to avoid using |
default they do not record undo information. It is best to avoid using |