annotate etc/refcard.tex @ 82033:6df2ca7b3d53

(diff-beginning-of-file-and-junk): New function. (diff-file-kill): Use it. (diff-beginning-of-hunk): Add arg `try-harder' using it. (diff-restrict-view, diff-find-source-location, diff-refine-hunk): Use it so they find the hunk even when we're in the file header.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 22 Jul 2007 21:26:34 +0000
parents 02fdc61fbbc6
children 713172dcf518 d7172f202ab8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64127
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
1 % Reference Card for GNU Emacs version 22 on Unix systems
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
2 %**start of header
Dave Love <fx@gnu.org>
parents:
diff changeset
3 \newcount\columnsperpage
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
4 \newcount\letterpaper
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
5
Dave Love <fx@gnu.org>
parents:
diff changeset
6 % This file can be printed with 1, 2, or 3 columns per page (see below).
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
7 % Specify how many you want here.
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
8
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
9 \columnsperpage=3
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
10
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
11 % Set letterpapaer to 0 for A4 paper, 1 for letter (US) paper. Useful
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
12 % only when columnsperpage is 2 or 3.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
13
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
14 \letterpaper=1
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
15
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
16 % Nothing else needs to be changed below this line.
75331
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
17 % Copyright (C) 1987, 1993, 1996, 1997, 2001, 2002, 2003, 2004,
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
18 % 2005, 2006, 2007 Free Software Foundation, Inc.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
19
Dave Love <fx@gnu.org>
parents:
diff changeset
20 % This file is part of GNU Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
21
Dave Love <fx@gnu.org>
parents:
diff changeset
22 % GNU Emacs is free software; you can redistribute it and/or modify
Dave Love <fx@gnu.org>
parents:
diff changeset
23 % it under the terms of the GNU General Public License as published by
Dave Love <fx@gnu.org>
parents:
diff changeset
24 % the Free Software Foundation; either version 2, or (at your option)
Dave Love <fx@gnu.org>
parents:
diff changeset
25 % any later version.
Dave Love <fx@gnu.org>
parents:
diff changeset
26
Dave Love <fx@gnu.org>
parents:
diff changeset
27 % GNU Emacs is distributed in the hope that it will be useful,
Dave Love <fx@gnu.org>
parents:
diff changeset
28 % but WITHOUT ANY WARRANTY; without even the implied warranty of
Dave Love <fx@gnu.org>
parents:
diff changeset
29 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Dave Love <fx@gnu.org>
parents:
diff changeset
30 % GNU General Public License for more details.
Dave Love <fx@gnu.org>
parents:
diff changeset
31
Dave Love <fx@gnu.org>
parents:
diff changeset
32 % You should have received a copy of the GNU General Public License
Dave Love <fx@gnu.org>
parents:
diff changeset
33 % along with GNU Emacs; see the file COPYING. If not, write to
64091
6fb026ad601f Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 64083
diff changeset
34 % the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
6fb026ad601f Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 64083
diff changeset
35 % Boston, MA 02110-1301, USA.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
36
Dave Love <fx@gnu.org>
parents:
diff changeset
37 % This file is intended to be processed by plain TeX (TeX82).
Dave Love <fx@gnu.org>
parents:
diff changeset
38 %
Dave Love <fx@gnu.org>
parents:
diff changeset
39 % The final reference card has six columns, three on each side.
Dave Love <fx@gnu.org>
parents:
diff changeset
40 % This file can be used to produce it in any of three ways:
Dave Love <fx@gnu.org>
parents:
diff changeset
41 % 1 column per page
Dave Love <fx@gnu.org>
parents:
diff changeset
42 % produces six separate pages, each of which needs to be reduced to 80%.
Dave Love <fx@gnu.org>
parents:
diff changeset
43 % This gives the best resolution.
Dave Love <fx@gnu.org>
parents:
diff changeset
44 % 2 columns per page
Dave Love <fx@gnu.org>
parents:
diff changeset
45 % produces three already-reduced pages.
Dave Love <fx@gnu.org>
parents:
diff changeset
46 % You will still need to cut and paste.
Dave Love <fx@gnu.org>
parents:
diff changeset
47 % 3 columns per page
Dave Love <fx@gnu.org>
parents:
diff changeset
48 % produces two pages which must be printed sideways to make a
Dave Love <fx@gnu.org>
parents:
diff changeset
49 % ready-to-use 8.5 x 11 inch reference card.
Dave Love <fx@gnu.org>
parents:
diff changeset
50 % For this you need a dvi device driver that can print sideways.
Dave Love <fx@gnu.org>
parents:
diff changeset
51 % Which mode to use is controlled by setting \columnsperpage above.
Dave Love <fx@gnu.org>
parents:
diff changeset
52 %
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
53 % To compile and print this document:
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
54 % tex refcard.tex
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
55 % dvips -t landscape refcard.dvi
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
56 %
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
57 % Author:
Dave Love <fx@gnu.org>
parents:
diff changeset
58 % Stephen Gildea
39400
e69aa66ec7cc Update Stephen Gildea's mail address.
Eli Zaretskii <eliz@gnu.org>
parents: 25853
diff changeset
59 % Internet: gildea@stop.mail-abuse.org
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
60 %
Dave Love <fx@gnu.org>
parents:
diff changeset
61 % Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
Dave Love <fx@gnu.org>
parents:
diff changeset
62 % for their many good ideas.
Dave Love <fx@gnu.org>
parents:
diff changeset
63
Dave Love <fx@gnu.org>
parents:
diff changeset
64 % If there were room, it would be nice to see a section on Dired.
Dave Love <fx@gnu.org>
parents:
diff changeset
65
75331
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
66 \def\versionnumber{2.3} % version of this manual
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
67 \def\versionyear{2006} % year manual was updated
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
68 \def\versionemacs{22} % version of emacs this manual is for
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
69 \def\year{2007} % copyright year
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
70
Dave Love <fx@gnu.org>
parents:
diff changeset
71 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
Dave Love <fx@gnu.org>
parents:
diff changeset
72 \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
Dave Love <fx@gnu.org>
parents:
diff changeset
73 Permissions on back. v\versionnumber}}
Dave Love <fx@gnu.org>
parents:
diff changeset
74
Dave Love <fx@gnu.org>
parents:
diff changeset
75 \def\copyrightnotice{
Dave Love <fx@gnu.org>
parents:
diff changeset
76 \vskip 1ex plus 2 fill\begingroup\small
Dave Love <fx@gnu.org>
parents:
diff changeset
77 \centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
75331
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
78 \centerline{v\versionnumber{} for GNU Emacs version \versionemacs, \versionyear}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
79 \centerline{designed by Stephen Gildea}
Dave Love <fx@gnu.org>
parents:
diff changeset
80
Dave Love <fx@gnu.org>
parents:
diff changeset
81 Permission is granted to make and distribute copies of
Dave Love <fx@gnu.org>
parents:
diff changeset
82 this card provided the copyright notice and this permission notice
Dave Love <fx@gnu.org>
parents:
diff changeset
83 are preserved on all copies.
Dave Love <fx@gnu.org>
parents:
diff changeset
84
Dave Love <fx@gnu.org>
parents:
diff changeset
85 For copies of the GNU Emacs manual, write to the Free Software
64083
23a17af379b1 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 58347
diff changeset
86 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
87
Dave Love <fx@gnu.org>
parents:
diff changeset
88 \endgroup}
Dave Love <fx@gnu.org>
parents:
diff changeset
89
Dave Love <fx@gnu.org>
parents:
diff changeset
90 % make \bye not \outer so that the \def\bye in the \else clause below
Dave Love <fx@gnu.org>
parents:
diff changeset
91 % can be scanned without complaint.
Dave Love <fx@gnu.org>
parents:
diff changeset
92 \def\bye{\par\vfill\supereject\end}
Dave Love <fx@gnu.org>
parents:
diff changeset
93
Dave Love <fx@gnu.org>
parents:
diff changeset
94 \newdimen\intercolumnskip %horizontal space between columns
Dave Love <fx@gnu.org>
parents:
diff changeset
95 \newbox\columna %boxes to hold columns already built
Dave Love <fx@gnu.org>
parents:
diff changeset
96 \newbox\columnb
Dave Love <fx@gnu.org>
parents:
diff changeset
97
Dave Love <fx@gnu.org>
parents:
diff changeset
98 \def\ncolumns{\the\columnsperpage}
Dave Love <fx@gnu.org>
parents:
diff changeset
99
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 43258
diff changeset
100 \message{[\ncolumns\space
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
101 column\if 1\ncolumns\else s\fi\space per page]}
Dave Love <fx@gnu.org>
parents:
diff changeset
102
Dave Love <fx@gnu.org>
parents:
diff changeset
103 \def\scaledmag#1{ scaled \magstep #1}
Dave Love <fx@gnu.org>
parents:
diff changeset
104
Dave Love <fx@gnu.org>
parents:
diff changeset
105 % This multi-way format was designed by Stephen Gildea October 1986.
Dave Love <fx@gnu.org>
parents:
diff changeset
106 % Note that the 1-column format is fontfamily-independent.
Dave Love <fx@gnu.org>
parents:
diff changeset
107 \if 1\ncolumns %one-column format uses normal size
Dave Love <fx@gnu.org>
parents:
diff changeset
108 \hsize 4in
Dave Love <fx@gnu.org>
parents:
diff changeset
109 \vsize 10in
Dave Love <fx@gnu.org>
parents:
diff changeset
110 \voffset -.7in
Dave Love <fx@gnu.org>
parents:
diff changeset
111 \font\titlefont=\fontname\tenbf \scaledmag3
Dave Love <fx@gnu.org>
parents:
diff changeset
112 \font\headingfont=\fontname\tenbf \scaledmag2
Dave Love <fx@gnu.org>
parents:
diff changeset
113 \font\smallfont=\fontname\sevenrm
Dave Love <fx@gnu.org>
parents:
diff changeset
114 \font\smallsy=\fontname\sevensy
Dave Love <fx@gnu.org>
parents:
diff changeset
115
Dave Love <fx@gnu.org>
parents:
diff changeset
116 \footline{\hss\folio}
Dave Love <fx@gnu.org>
parents:
diff changeset
117 \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
Dave Love <fx@gnu.org>
parents:
diff changeset
118 \else %2 or 3 columns uses prereduced size
Dave Love <fx@gnu.org>
parents:
diff changeset
119 \hsize 3.2in
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
120 \if 1\the\letterpaper
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
121 \vsize 7.95in
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
122 \else
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
123 \vsize 7.65in
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
124 \fi
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
125 \hoffset -.75in
Dave Love <fx@gnu.org>
parents:
diff changeset
126 \voffset -.745in
Dave Love <fx@gnu.org>
parents:
diff changeset
127 \font\titlefont=cmbx10 \scaledmag2
Dave Love <fx@gnu.org>
parents:
diff changeset
128 \font\headingfont=cmbx10 \scaledmag1
Dave Love <fx@gnu.org>
parents:
diff changeset
129 \font\smallfont=cmr6
Dave Love <fx@gnu.org>
parents:
diff changeset
130 \font\smallsy=cmsy6
Dave Love <fx@gnu.org>
parents:
diff changeset
131 \font\eightrm=cmr8
Dave Love <fx@gnu.org>
parents:
diff changeset
132 \font\eightbf=cmbx8
Dave Love <fx@gnu.org>
parents:
diff changeset
133 \font\eightit=cmti8
Dave Love <fx@gnu.org>
parents:
diff changeset
134 \font\eighttt=cmtt8
Dave Love <fx@gnu.org>
parents:
diff changeset
135 \font\eightmi=cmmi8
Dave Love <fx@gnu.org>
parents:
diff changeset
136 \font\eightsy=cmsy8
Dave Love <fx@gnu.org>
parents:
diff changeset
137 \textfont0=\eightrm
Dave Love <fx@gnu.org>
parents:
diff changeset
138 \textfont1=\eightmi
Dave Love <fx@gnu.org>
parents:
diff changeset
139 \textfont2=\eightsy
Dave Love <fx@gnu.org>
parents:
diff changeset
140 \def\rm{\eightrm}
Dave Love <fx@gnu.org>
parents:
diff changeset
141 \def\bf{\eightbf}
Dave Love <fx@gnu.org>
parents:
diff changeset
142 \def\it{\eightit}
Dave Love <fx@gnu.org>
parents:
diff changeset
143 \def\tt{\eighttt}
57562
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
144 \if 1\the\letterpaper
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
145 \normalbaselineskip=.8\normalbaselineskip
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
146 \else
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
147 \normalbaselineskip=.7\normalbaselineskip
83e3c4a83bdf Added new counter \letterpaper to control whether refcard should be
Stephen Eglen <stephen@gnu.org>
parents: 52401
diff changeset
148 \fi
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
149 \normallineskip=.8\normallineskip
Dave Love <fx@gnu.org>
parents:
diff changeset
150 \normallineskiplimit=.8\normallineskiplimit
Dave Love <fx@gnu.org>
parents:
diff changeset
151 \normalbaselines\rm %make definitions take effect
Dave Love <fx@gnu.org>
parents:
diff changeset
152
Dave Love <fx@gnu.org>
parents:
diff changeset
153 \if 2\ncolumns
Dave Love <fx@gnu.org>
parents:
diff changeset
154 \let\maxcolumn=b
Dave Love <fx@gnu.org>
parents:
diff changeset
155 \footline{\hss\rm\folio\hss}
Dave Love <fx@gnu.org>
parents:
diff changeset
156 \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
Dave Love <fx@gnu.org>
parents:
diff changeset
157 \else \if 3\ncolumns
Dave Love <fx@gnu.org>
parents:
diff changeset
158 \let\maxcolumn=c
Dave Love <fx@gnu.org>
parents:
diff changeset
159 \nopagenumbers
Dave Love <fx@gnu.org>
parents:
diff changeset
160 \else
Dave Love <fx@gnu.org>
parents:
diff changeset
161 \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
Dave Love <fx@gnu.org>
parents:
diff changeset
162 \errmessage{Illegal number of columns per page}
Dave Love <fx@gnu.org>
parents:
diff changeset
163 \fi\fi
Dave Love <fx@gnu.org>
parents:
diff changeset
164
Dave Love <fx@gnu.org>
parents:
diff changeset
165 \intercolumnskip=.46in
Dave Love <fx@gnu.org>
parents:
diff changeset
166 \def\abc{a}
Dave Love <fx@gnu.org>
parents:
diff changeset
167 \output={% %see The TeXbook page 257
Dave Love <fx@gnu.org>
parents:
diff changeset
168 % This next line is useful when designing the layout.
Dave Love <fx@gnu.org>
parents:
diff changeset
169 %\immediate\write16{Column \folio\abc\space starts with \firstmark}
Dave Love <fx@gnu.org>
parents:
diff changeset
170 \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
Dave Love <fx@gnu.org>
parents:
diff changeset
171 \else\if a\abc
Dave Love <fx@gnu.org>
parents:
diff changeset
172 \global\setbox\columna\columnbox \global\def\abc{b}
Dave Love <fx@gnu.org>
parents:
diff changeset
173 %% in case we never use \columnb (two-column mode)
Dave Love <fx@gnu.org>
parents:
diff changeset
174 \global\setbox\columnb\hbox to -\intercolumnskip{}
Dave Love <fx@gnu.org>
parents:
diff changeset
175 \else
Dave Love <fx@gnu.org>
parents:
diff changeset
176 \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
Dave Love <fx@gnu.org>
parents:
diff changeset
177 \def\multicolumnformat{\shipout\vbox{\makeheadline
Dave Love <fx@gnu.org>
parents:
diff changeset
178 \hbox{\box\columna\hskip\intercolumnskip
Dave Love <fx@gnu.org>
parents:
diff changeset
179 \box\columnb\hskip\intercolumnskip\columnbox}
Dave Love <fx@gnu.org>
parents:
diff changeset
180 \makefootline}\advancepageno}
Dave Love <fx@gnu.org>
parents:
diff changeset
181 \def\columnbox{\leftline{\pagebody}}
Dave Love <fx@gnu.org>
parents:
diff changeset
182
Dave Love <fx@gnu.org>
parents:
diff changeset
183 \def\bye{\par\vfill\supereject
Dave Love <fx@gnu.org>
parents:
diff changeset
184 \if a\abc \else\null\vfill\eject\fi
Dave Love <fx@gnu.org>
parents:
diff changeset
185 \if a\abc \else\null\vfill\eject\fi
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 43258
diff changeset
186 \end}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
187 \fi
Dave Love <fx@gnu.org>
parents:
diff changeset
188
Dave Love <fx@gnu.org>
parents:
diff changeset
189 % we won't be using math mode much, so redefine some of the characters
Dave Love <fx@gnu.org>
parents:
diff changeset
190 % we might want to talk about
Dave Love <fx@gnu.org>
parents:
diff changeset
191 \catcode`\^=12
Dave Love <fx@gnu.org>
parents:
diff changeset
192 \catcode`\_=12
Dave Love <fx@gnu.org>
parents:
diff changeset
193
Dave Love <fx@gnu.org>
parents:
diff changeset
194 \chardef\\=`\\
Dave Love <fx@gnu.org>
parents:
diff changeset
195 \chardef\{=`\{
Dave Love <fx@gnu.org>
parents:
diff changeset
196 \chardef\}=`\}
Dave Love <fx@gnu.org>
parents:
diff changeset
197
Dave Love <fx@gnu.org>
parents:
diff changeset
198 \hyphenation{mini-buf-fer}
Dave Love <fx@gnu.org>
parents:
diff changeset
199
Dave Love <fx@gnu.org>
parents:
diff changeset
200 \parindent 0pt
Dave Love <fx@gnu.org>
parents:
diff changeset
201 \parskip 1ex plus .5ex minus .5ex
Dave Love <fx@gnu.org>
parents:
diff changeset
202
Dave Love <fx@gnu.org>
parents:
diff changeset
203 \def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
Dave Love <fx@gnu.org>
parents:
diff changeset
204
Dave Love <fx@gnu.org>
parents:
diff changeset
205 % newcolumn - force a new column. Use sparingly, probably only for
Dave Love <fx@gnu.org>
parents:
diff changeset
206 % the first column of a page, which should have a title anyway.
Dave Love <fx@gnu.org>
parents:
diff changeset
207 \outer\def\newcolumn{\vfill\eject}
Dave Love <fx@gnu.org>
parents:
diff changeset
208
Dave Love <fx@gnu.org>
parents:
diff changeset
209 % title - page title. Argument is title text.
Dave Love <fx@gnu.org>
parents:
diff changeset
210 \outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
Dave Love <fx@gnu.org>
parents:
diff changeset
211
Dave Love <fx@gnu.org>
parents:
diff changeset
212 % section - new major section. Argument is section name.
Dave Love <fx@gnu.org>
parents:
diff changeset
213 \outer\def\section#1{\par\filbreak
Dave Love <fx@gnu.org>
parents:
diff changeset
214 \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
Dave Love <fx@gnu.org>
parents:
diff changeset
215 \vskip 2ex plus 1ex minus 1.5ex}
Dave Love <fx@gnu.org>
parents:
diff changeset
216
Dave Love <fx@gnu.org>
parents:
diff changeset
217 \newdimen\keyindent
Dave Love <fx@gnu.org>
parents:
diff changeset
218
Dave Love <fx@gnu.org>
parents:
diff changeset
219 % beginindentedkeys...endindentedkeys - key definitions will be
Dave Love <fx@gnu.org>
parents:
diff changeset
220 % indented, but running text, typically used as headings to group
Dave Love <fx@gnu.org>
parents:
diff changeset
221 % definitions, will not.
Dave Love <fx@gnu.org>
parents:
diff changeset
222 \def\beginindentedkeys{\keyindent=1em}
Dave Love <fx@gnu.org>
parents:
diff changeset
223 \def\endindentedkeys{\keyindent=0em}
Dave Love <fx@gnu.org>
parents:
diff changeset
224 \endindentedkeys
Dave Love <fx@gnu.org>
parents:
diff changeset
225
Dave Love <fx@gnu.org>
parents:
diff changeset
226 % paralign - begin paragraph containing an alignment.
Dave Love <fx@gnu.org>
parents:
diff changeset
227 % If an \halign is entered while in vertical mode, a parskip is never
Dave Love <fx@gnu.org>
parents:
diff changeset
228 % inserted. Using \paralign instead of \halign solves this problem.
Dave Love <fx@gnu.org>
parents:
diff changeset
229 \def\paralign{\vskip\parskip\halign}
Dave Love <fx@gnu.org>
parents:
diff changeset
230
Dave Love <fx@gnu.org>
parents:
diff changeset
231 % \<...> - surrounds a variable name in a code example
Dave Love <fx@gnu.org>
parents:
diff changeset
232 \def\<#1>{{\it #1\/}}
Dave Love <fx@gnu.org>
parents:
diff changeset
233
Dave Love <fx@gnu.org>
parents:
diff changeset
234 % kbd - argument is characters typed literally. Like the Texinfo command.
Dave Love <fx@gnu.org>
parents:
diff changeset
235 \def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
Dave Love <fx@gnu.org>
parents:
diff changeset
236
Dave Love <fx@gnu.org>
parents:
diff changeset
237 % beginexample...endexample - surrounds literal text, such a code example.
Dave Love <fx@gnu.org>
parents:
diff changeset
238 % typeset in a typewriter font with line breaks preserved
Dave Love <fx@gnu.org>
parents:
diff changeset
239 \def\beginexample{\par\leavevmode\begingroup
Dave Love <fx@gnu.org>
parents:
diff changeset
240 \obeylines\obeyspaces\parskip0pt\tt}
Dave Love <fx@gnu.org>
parents:
diff changeset
241 {\obeyspaces\global\let =\ }
Dave Love <fx@gnu.org>
parents:
diff changeset
242 \def\endexample{\endgroup}
Dave Love <fx@gnu.org>
parents:
diff changeset
243
Dave Love <fx@gnu.org>
parents:
diff changeset
244 % key - definition of a key.
Dave Love <fx@gnu.org>
parents:
diff changeset
245 % \key{description of key}{key-name}
Dave Love <fx@gnu.org>
parents:
diff changeset
246 % prints the description left-justified, and the key-name in a \kbd
Dave Love <fx@gnu.org>
parents:
diff changeset
247 % form near the right margin.
Dave Love <fx@gnu.org>
parents:
diff changeset
248 \def\key#1#2{\leavevmode\hbox to \hsize{\vtop
Dave Love <fx@gnu.org>
parents:
diff changeset
249 {\hsize=.75\hsize\rightskip=1em
Dave Love <fx@gnu.org>
parents:
diff changeset
250 \hskip\keyindent\relax#1}\kbd{#2}\hfil}}
Dave Love <fx@gnu.org>
parents:
diff changeset
251
Dave Love <fx@gnu.org>
parents:
diff changeset
252 \newbox\metaxbox
Dave Love <fx@gnu.org>
parents:
diff changeset
253 \setbox\metaxbox\hbox{\kbd{M-x }}
Dave Love <fx@gnu.org>
parents:
diff changeset
254 \newdimen\metaxwidth
Dave Love <fx@gnu.org>
parents:
diff changeset
255 \metaxwidth=\wd\metaxbox
Dave Love <fx@gnu.org>
parents:
diff changeset
256
Dave Love <fx@gnu.org>
parents:
diff changeset
257 % metax - definition of a M-x command.
Dave Love <fx@gnu.org>
parents:
diff changeset
258 % \metax{description of command}{M-x command-name}
Dave Love <fx@gnu.org>
parents:
diff changeset
259 % Tries to justify the beginning of the command name at the same place
Dave Love <fx@gnu.org>
parents:
diff changeset
260 % as \key starts the key name. (The "M-x " sticks out to the left.)
Dave Love <fx@gnu.org>
parents:
diff changeset
261 \def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
Dave Love <fx@gnu.org>
parents:
diff changeset
262 {\hskip\keyindent\relax#1\hfil}%
Dave Love <fx@gnu.org>
parents:
diff changeset
263 \hskip -\metaxwidth minus 1fil
Dave Love <fx@gnu.org>
parents:
diff changeset
264 \kbd{#2}\hfil}}
Dave Love <fx@gnu.org>
parents:
diff changeset
265
Dave Love <fx@gnu.org>
parents:
diff changeset
266 % threecol - like "key" but with two key names.
Dave Love <fx@gnu.org>
parents:
diff changeset
267 % for example, one for doing the action backward, and one for forward.
Dave Love <fx@gnu.org>
parents:
diff changeset
268 \def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\hfil\quad
Dave Love <fx@gnu.org>
parents:
diff changeset
269 &\kbd{#3}\hfil\quad\cr}
Dave Love <fx@gnu.org>
parents:
diff changeset
270
Dave Love <fx@gnu.org>
parents:
diff changeset
271 %**end of header
Dave Love <fx@gnu.org>
parents:
diff changeset
272
Dave Love <fx@gnu.org>
parents:
diff changeset
273
Dave Love <fx@gnu.org>
parents:
diff changeset
274 \title{GNU Emacs Reference Card}
Dave Love <fx@gnu.org>
parents:
diff changeset
275
75331
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
276 \centerline{(for version \versionemacs)}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
277
Dave Love <fx@gnu.org>
parents:
diff changeset
278 \section{Starting Emacs}
Dave Love <fx@gnu.org>
parents:
diff changeset
279
75331
ce8275d968c3 Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents: 70860
diff changeset
280 To enter GNU Emacs \versionemacs, just type its name: \kbd{emacs}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
281
Dave Love <fx@gnu.org>
parents:
diff changeset
282 \section{Leaving Emacs}
Dave Love <fx@gnu.org>
parents:
diff changeset
283
Dave Love <fx@gnu.org>
parents:
diff changeset
284 \key{suspend Emacs (or iconify it under X)}{C-z}
Dave Love <fx@gnu.org>
parents:
diff changeset
285 \key{exit Emacs permanently}{C-x C-c}
Dave Love <fx@gnu.org>
parents:
diff changeset
286
Dave Love <fx@gnu.org>
parents:
diff changeset
287 \section{Files}
Dave Love <fx@gnu.org>
parents:
diff changeset
288
Dave Love <fx@gnu.org>
parents:
diff changeset
289 \key{{\bf read} a file into Emacs}{C-x C-f}
Dave Love <fx@gnu.org>
parents:
diff changeset
290 \key{{\bf save} a file back to disk}{C-x C-s}
Dave Love <fx@gnu.org>
parents:
diff changeset
291 \key{save {\bf all} files}{C-x s}
Dave Love <fx@gnu.org>
parents:
diff changeset
292 \key{{\bf insert} contents of another file into this buffer}{C-x i}
Dave Love <fx@gnu.org>
parents:
diff changeset
293 \key{replace this file with the file you really want}{C-x C-v}
Dave Love <fx@gnu.org>
parents:
diff changeset
294 \key{write buffer to a specified file}{C-x C-w}
64242
0ee94ce27f45 (Files): Change description of `C-x C-q' from
Juri Linkov <juri@jurta.org>
parents: 64127
diff changeset
295 \key{toggle read-only status of buffer}{C-x C-q}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
296
Dave Love <fx@gnu.org>
parents:
diff changeset
297 \section{Getting Help}
Dave Love <fx@gnu.org>
parents:
diff changeset
298
Dave Love <fx@gnu.org>
parents:
diff changeset
299 The help system is simple. Type \kbd{C-h} (or \kbd{F1}) and follow
Dave Love <fx@gnu.org>
parents:
diff changeset
300 the directions. If you are a first-time user, type \kbd{C-h t} for a
Dave Love <fx@gnu.org>
parents:
diff changeset
301 {\bf tutorial}.
Dave Love <fx@gnu.org>
parents:
diff changeset
302
Dave Love <fx@gnu.org>
parents:
diff changeset
303 \key{remove help window}{C-x 1}
Dave Love <fx@gnu.org>
parents:
diff changeset
304 \key{scroll help window}{C-M-v}
Dave Love <fx@gnu.org>
parents:
diff changeset
305
Dave Love <fx@gnu.org>
parents:
diff changeset
306 \key{apropos: show commands matching a string}{C-h a}
64242
0ee94ce27f45 (Files): Change description of `C-x C-q' from
Juri Linkov <juri@jurta.org>
parents: 64127
diff changeset
307 \key{describe the function a key runs}{C-h k}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
308 \key{describe a function}{C-h f}
Dave Love <fx@gnu.org>
parents:
diff changeset
309 \key{get mode-specific information}{C-h m}
Dave Love <fx@gnu.org>
parents:
diff changeset
310
Dave Love <fx@gnu.org>
parents:
diff changeset
311 \section{Error Recovery}
Dave Love <fx@gnu.org>
parents:
diff changeset
312
Dave Love <fx@gnu.org>
parents:
diff changeset
313 \key{{\bf abort} partially typed or executing command}{C-g}
64242
0ee94ce27f45 (Files): Change description of `C-x C-q' from
Juri Linkov <juri@jurta.org>
parents: 64127
diff changeset
314 \metax{{\bf recover} files lost by a system crash}{M-x recover-session}
58347
25b8b4e18c9a Mention C-/.
Eli Zaretskii <eliz@gnu.org>
parents: 57562
diff changeset
315 \metax{{\bf undo} an unwanted change}{C-x u, C-_ {\rm or} C-/}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
316 \metax{restore a buffer to its original contents}{M-x revert-buffer}
Dave Love <fx@gnu.org>
parents:
diff changeset
317 \key{redraw garbaged screen}{C-l}
Dave Love <fx@gnu.org>
parents:
diff changeset
318
Dave Love <fx@gnu.org>
parents:
diff changeset
319 \section{Incremental Search}
Dave Love <fx@gnu.org>
parents:
diff changeset
320
Dave Love <fx@gnu.org>
parents:
diff changeset
321 \key{search forward}{C-s}
Dave Love <fx@gnu.org>
parents:
diff changeset
322 \key{search backward}{C-r}
Dave Love <fx@gnu.org>
parents:
diff changeset
323 \key{regular expression search}{C-M-s}
Dave Love <fx@gnu.org>
parents:
diff changeset
324 \key{reverse regular expression search}{C-M-r}
Dave Love <fx@gnu.org>
parents:
diff changeset
325
Dave Love <fx@gnu.org>
parents:
diff changeset
326 \key{select previous search string}{M-p}
Dave Love <fx@gnu.org>
parents:
diff changeset
327 \key{select next later search string}{M-n}
Dave Love <fx@gnu.org>
parents:
diff changeset
328 \key{exit incremental search}{RET}
Dave Love <fx@gnu.org>
parents:
diff changeset
329 \key{undo effect of last character}{DEL}
Dave Love <fx@gnu.org>
parents:
diff changeset
330 \key{abort current search}{C-g}
Dave Love <fx@gnu.org>
parents:
diff changeset
331
Dave Love <fx@gnu.org>
parents:
diff changeset
332 Use \kbd{C-s} or \kbd{C-r} again to repeat the search in either direction.
77685
02fdc61fbbc6 (section{Incremental Search}): Minor corrections.
Richard M. Stallman <rms@gnu.org>
parents: 75331
diff changeset
333 If Emacs is still searching, \kbd{C-g} cancels only the part not matched.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
334
Dave Love <fx@gnu.org>
parents:
diff changeset
335 \shortcopyrightnotice
Dave Love <fx@gnu.org>
parents:
diff changeset
336
Dave Love <fx@gnu.org>
parents:
diff changeset
337 \section{Motion}
Dave Love <fx@gnu.org>
parents:
diff changeset
338
Dave Love <fx@gnu.org>
parents:
diff changeset
339 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
Dave Love <fx@gnu.org>
parents:
diff changeset
340 \threecol{{\bf entity to move over}}{{\bf backward}}{{\bf forward}}
Dave Love <fx@gnu.org>
parents:
diff changeset
341 \threecol{character}{C-b}{C-f}
Dave Love <fx@gnu.org>
parents:
diff changeset
342 \threecol{word}{M-b}{M-f}
Dave Love <fx@gnu.org>
parents:
diff changeset
343 \threecol{line}{C-p}{C-n}
Dave Love <fx@gnu.org>
parents:
diff changeset
344 \threecol{go to line beginning (or end)}{C-a}{C-e}
Dave Love <fx@gnu.org>
parents:
diff changeset
345 \threecol{sentence}{M-a}{M-e}
Dave Love <fx@gnu.org>
parents:
diff changeset
346 \threecol{paragraph}{M-\{}{M-\}}
Dave Love <fx@gnu.org>
parents:
diff changeset
347 \threecol{page}{C-x [}{C-x ]}
Dave Love <fx@gnu.org>
parents:
diff changeset
348 \threecol{sexp}{C-M-b}{C-M-f}
Dave Love <fx@gnu.org>
parents:
diff changeset
349 \threecol{function}{C-M-a}{C-M-e}
Dave Love <fx@gnu.org>
parents:
diff changeset
350 \threecol{go to buffer beginning (or end)}{M-<}{M->}
Dave Love <fx@gnu.org>
parents:
diff changeset
351 }
Dave Love <fx@gnu.org>
parents:
diff changeset
352
Dave Love <fx@gnu.org>
parents:
diff changeset
353 \key{scroll to next screen}{C-v}
Dave Love <fx@gnu.org>
parents:
diff changeset
354 \key{scroll to previous screen}{M-v}
Dave Love <fx@gnu.org>
parents:
diff changeset
355 \key{scroll left}{C-x <}
Dave Love <fx@gnu.org>
parents:
diff changeset
356 \key{scroll right}{C-x >}
Dave Love <fx@gnu.org>
parents:
diff changeset
357 \key{scroll current line to center of screen}{C-u C-l}
Dave Love <fx@gnu.org>
parents:
diff changeset
358
Dave Love <fx@gnu.org>
parents:
diff changeset
359 \section{Killing and Deleting}
Dave Love <fx@gnu.org>
parents:
diff changeset
360
Dave Love <fx@gnu.org>
parents:
diff changeset
361 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
Dave Love <fx@gnu.org>
parents:
diff changeset
362 \threecol{{\bf entity to kill}}{{\bf backward}}{{\bf forward}}
Dave Love <fx@gnu.org>
parents:
diff changeset
363 \threecol{character (delete, not kill)}{DEL}{C-d}
Dave Love <fx@gnu.org>
parents:
diff changeset
364 \threecol{word}{M-DEL}{M-d}
Dave Love <fx@gnu.org>
parents:
diff changeset
365 \threecol{line (to end of)}{M-0 C-k}{C-k}
Dave Love <fx@gnu.org>
parents:
diff changeset
366 \threecol{sentence}{C-x DEL}{M-k}
Dave Love <fx@gnu.org>
parents:
diff changeset
367 \threecol{sexp}{M-- C-M-k}{C-M-k}
Dave Love <fx@gnu.org>
parents:
diff changeset
368 }
Dave Love <fx@gnu.org>
parents:
diff changeset
369
Dave Love <fx@gnu.org>
parents:
diff changeset
370 \key{kill {\bf region}}{C-w}
Dave Love <fx@gnu.org>
parents:
diff changeset
371 \key{copy region to kill ring}{M-w}
Dave Love <fx@gnu.org>
parents:
diff changeset
372 \key{kill through next occurrence of {\it char}}{M-z {\it char}}
Dave Love <fx@gnu.org>
parents:
diff changeset
373
Dave Love <fx@gnu.org>
parents:
diff changeset
374 \key{yank back last thing killed}{C-y}
Dave Love <fx@gnu.org>
parents:
diff changeset
375 \key{replace last yank with previous kill}{M-y}
Dave Love <fx@gnu.org>
parents:
diff changeset
376
Dave Love <fx@gnu.org>
parents:
diff changeset
377 \section{Marking}
Dave Love <fx@gnu.org>
parents:
diff changeset
378
Dave Love <fx@gnu.org>
parents:
diff changeset
379 \key{set mark here}{C-@ {\rm or} C-SPC}
Dave Love <fx@gnu.org>
parents:
diff changeset
380 \key{exchange point and mark}{C-x C-x}
Dave Love <fx@gnu.org>
parents:
diff changeset
381
Dave Love <fx@gnu.org>
parents:
diff changeset
382 \key{set mark {\it arg\/} {\bf words} away}{M-@}
Dave Love <fx@gnu.org>
parents:
diff changeset
383 \key{mark {\bf paragraph}}{M-h}
Dave Love <fx@gnu.org>
parents:
diff changeset
384 \key{mark {\bf page}}{C-x C-p}
Dave Love <fx@gnu.org>
parents:
diff changeset
385 \key{mark {\bf sexp}}{C-M-@}
Dave Love <fx@gnu.org>
parents:
diff changeset
386 \key{mark {\bf function}}{C-M-h}
Dave Love <fx@gnu.org>
parents:
diff changeset
387 \key{mark entire {\bf buffer}}{C-x h}
Dave Love <fx@gnu.org>
parents:
diff changeset
388
Dave Love <fx@gnu.org>
parents:
diff changeset
389 \section{Query Replace}
Dave Love <fx@gnu.org>
parents:
diff changeset
390
Dave Love <fx@gnu.org>
parents:
diff changeset
391 \key{interactively replace a text string}{M-\%}
64127
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
392 % query-replace-regexp is bound to C-M-% but that can't be typed on
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
393 % consoles.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
394 \metax{using regular expressions}{M-x query-replace-regexp}
Dave Love <fx@gnu.org>
parents:
diff changeset
395
Dave Love <fx@gnu.org>
parents:
diff changeset
396 Valid responses in query-replace mode are
Dave Love <fx@gnu.org>
parents:
diff changeset
397
Dave Love <fx@gnu.org>
parents:
diff changeset
398 \key{{\bf replace} this one, go on to next}{SPC}
Dave Love <fx@gnu.org>
parents:
diff changeset
399 \key{replace this one, don't move}{,}
Dave Love <fx@gnu.org>
parents:
diff changeset
400 \key{{\bf skip} to next without replacing}{DEL}
Dave Love <fx@gnu.org>
parents:
diff changeset
401 \key{replace all remaining matches}{!}
Dave Love <fx@gnu.org>
parents:
diff changeset
402 \key{{\bf back up} to the previous match}{^}
Dave Love <fx@gnu.org>
parents:
diff changeset
403 \key{{\bf exit} query-replace}{RET}
Dave Love <fx@gnu.org>
parents:
diff changeset
404 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r}
Dave Love <fx@gnu.org>
parents:
diff changeset
405
Dave Love <fx@gnu.org>
parents:
diff changeset
406 \section{Multiple Windows}
Dave Love <fx@gnu.org>
parents:
diff changeset
407
64127
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
408 When two commands are shown, the second is a similar command for a
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
409 frame instead of a window.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
410
Dave Love <fx@gnu.org>
parents:
diff changeset
411 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 0\wd0
Dave Love <fx@gnu.org>
parents:
diff changeset
412 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
64127
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
413 \threecol{delete all other windows}{C-x 1\ \ \ \ }{C-x 5 1}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
414 \threecol{split window, above and below}{C-x 2\ \ \ \ }{C-x 5 2}
Dave Love <fx@gnu.org>
parents:
diff changeset
415 \threecol{delete this window}{C-x 0\ \ \ \ }{C-x 5 0}
Dave Love <fx@gnu.org>
parents:
diff changeset
416 }}
Dave Love <fx@gnu.org>
parents:
diff changeset
417 \key{split window, side by side}{C-x 3}
Dave Love <fx@gnu.org>
parents:
diff changeset
418
Dave Love <fx@gnu.org>
parents:
diff changeset
419 \key{scroll other window}{C-M-v}
Dave Love <fx@gnu.org>
parents:
diff changeset
420
Dave Love <fx@gnu.org>
parents:
diff changeset
421 {\setbox0=\hbox{\kbd{0}}\advance\hsize by 2\wd0
Dave Love <fx@gnu.org>
parents:
diff changeset
422 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
Dave Love <fx@gnu.org>
parents:
diff changeset
423 \threecol{switch cursor to another window}{C-x o}{C-x 5 o}
Dave Love <fx@gnu.org>
parents:
diff changeset
424
Dave Love <fx@gnu.org>
parents:
diff changeset
425 \threecol{select buffer in other window}{C-x 4 b}{C-x 5 b}
Dave Love <fx@gnu.org>
parents:
diff changeset
426 \threecol{display buffer in other window}{C-x 4 C-o}{C-x 5 C-o}
Dave Love <fx@gnu.org>
parents:
diff changeset
427 \threecol{find file in other window}{C-x 4 f}{C-x 5 f}
Dave Love <fx@gnu.org>
parents:
diff changeset
428 \threecol{find file read-only in other window}{C-x 4 r}{C-x 5 r}
Dave Love <fx@gnu.org>
parents:
diff changeset
429 \threecol{run Dired in other window}{C-x 4 d}{C-x 5 d}
Dave Love <fx@gnu.org>
parents:
diff changeset
430 \threecol{find tag in other window}{C-x 4 .}{C-x 5 .}
Dave Love <fx@gnu.org>
parents:
diff changeset
431 }}
Dave Love <fx@gnu.org>
parents:
diff changeset
432
Dave Love <fx@gnu.org>
parents:
diff changeset
433 \key{grow window taller}{C-x ^}
Dave Love <fx@gnu.org>
parents:
diff changeset
434 \key{shrink window narrower}{C-x \{}
Dave Love <fx@gnu.org>
parents:
diff changeset
435 \key{grow window wider}{C-x \}}
Dave Love <fx@gnu.org>
parents:
diff changeset
436
Dave Love <fx@gnu.org>
parents:
diff changeset
437 \section{Formatting}
Dave Love <fx@gnu.org>
parents:
diff changeset
438
Dave Love <fx@gnu.org>
parents:
diff changeset
439 \key{indent current {\bf line} (mode-dependent)}{TAB}
Dave Love <fx@gnu.org>
parents:
diff changeset
440 \key{indent {\bf region} (mode-dependent)}{C-M-\\}
Dave Love <fx@gnu.org>
parents:
diff changeset
441 \key{indent {\bf sexp} (mode-dependent)}{C-M-q}
Dave Love <fx@gnu.org>
parents:
diff changeset
442 \key{indent region rigidly {\it arg\/} columns}{C-x TAB}
Dave Love <fx@gnu.org>
parents:
diff changeset
443
Dave Love <fx@gnu.org>
parents:
diff changeset
444 \key{insert newline after point}{C-o}
Dave Love <fx@gnu.org>
parents:
diff changeset
445 \key{move rest of line vertically down}{C-M-o}
Dave Love <fx@gnu.org>
parents:
diff changeset
446 \key{delete blank lines around point}{C-x C-o}
Dave Love <fx@gnu.org>
parents:
diff changeset
447 \key{join line with previous (with arg, next)}{M-^}
Dave Love <fx@gnu.org>
parents:
diff changeset
448 \key{delete all white space around point}{M-\\}
Dave Love <fx@gnu.org>
parents:
diff changeset
449 \key{put exactly one space at point}{M-SPC}
Dave Love <fx@gnu.org>
parents:
diff changeset
450
Dave Love <fx@gnu.org>
parents:
diff changeset
451 \key{fill paragraph}{M-q}
Dave Love <fx@gnu.org>
parents:
diff changeset
452 \key{set fill column}{C-x f}
Dave Love <fx@gnu.org>
parents:
diff changeset
453 \key{set prefix each line starts with}{C-x .}
Dave Love <fx@gnu.org>
parents:
diff changeset
454
64127
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
455 \key{set face}{M-o}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
456
Dave Love <fx@gnu.org>
parents:
diff changeset
457 \section{Case Change}
Dave Love <fx@gnu.org>
parents:
diff changeset
458
Dave Love <fx@gnu.org>
parents:
diff changeset
459 \key{uppercase word}{M-u}
Dave Love <fx@gnu.org>
parents:
diff changeset
460 \key{lowercase word}{M-l}
Dave Love <fx@gnu.org>
parents:
diff changeset
461 \key{capitalize word}{M-c}
Dave Love <fx@gnu.org>
parents:
diff changeset
462
Dave Love <fx@gnu.org>
parents:
diff changeset
463 \key{uppercase region}{C-x C-u}
Dave Love <fx@gnu.org>
parents:
diff changeset
464 \key{lowercase region}{C-x C-l}
Dave Love <fx@gnu.org>
parents:
diff changeset
465
Dave Love <fx@gnu.org>
parents:
diff changeset
466 \section{The Minibuffer}
Dave Love <fx@gnu.org>
parents:
diff changeset
467
Dave Love <fx@gnu.org>
parents:
diff changeset
468 The following keys are defined in the minibuffer.
Dave Love <fx@gnu.org>
parents:
diff changeset
469
Dave Love <fx@gnu.org>
parents:
diff changeset
470 \key{complete as much as possible}{TAB}
Dave Love <fx@gnu.org>
parents:
diff changeset
471 \key{complete up to one word}{SPC}
Dave Love <fx@gnu.org>
parents:
diff changeset
472 \key{complete and execute}{RET}
Dave Love <fx@gnu.org>
parents:
diff changeset
473 \key{show possible completions}{?}
Dave Love <fx@gnu.org>
parents:
diff changeset
474 \key{fetch previous minibuffer input}{M-p}
Dave Love <fx@gnu.org>
parents:
diff changeset
475 \key{fetch later minibuffer input or default}{M-n}
Dave Love <fx@gnu.org>
parents:
diff changeset
476 \key{regexp search backward through history}{M-r}
Dave Love <fx@gnu.org>
parents:
diff changeset
477 \key{regexp search forward through history}{M-s}
Dave Love <fx@gnu.org>
parents:
diff changeset
478 \key{abort command}{C-g}
Dave Love <fx@gnu.org>
parents:
diff changeset
479
Dave Love <fx@gnu.org>
parents:
diff changeset
480 Type \kbd{C-x ESC ESC} to edit and repeat the last command that used the
77685
02fdc61fbbc6 (section{Incremental Search}): Minor corrections.
Richard M. Stallman <rms@gnu.org>
parents: 75331
diff changeset
481 minibuffer. Type \kbd{F10} to activate menu bar items on text terminals.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
482
Dave Love <fx@gnu.org>
parents:
diff changeset
483 \newcolumn
Dave Love <fx@gnu.org>
parents:
diff changeset
484 \title{GNU Emacs Reference Card}
Dave Love <fx@gnu.org>
parents:
diff changeset
485
Dave Love <fx@gnu.org>
parents:
diff changeset
486 \section{Buffers}
Dave Love <fx@gnu.org>
parents:
diff changeset
487
Dave Love <fx@gnu.org>
parents:
diff changeset
488 \key{select another buffer}{C-x b}
Dave Love <fx@gnu.org>
parents:
diff changeset
489 \key{list all buffers}{C-x C-b}
Dave Love <fx@gnu.org>
parents:
diff changeset
490 \key{kill a buffer}{C-x k}
Dave Love <fx@gnu.org>
parents:
diff changeset
491
Dave Love <fx@gnu.org>
parents:
diff changeset
492 \section{Transposing}
Dave Love <fx@gnu.org>
parents:
diff changeset
493
Dave Love <fx@gnu.org>
parents:
diff changeset
494 \key{transpose {\bf characters}}{C-t}
Dave Love <fx@gnu.org>
parents:
diff changeset
495 \key{transpose {\bf words}}{M-t}
Dave Love <fx@gnu.org>
parents:
diff changeset
496 \key{transpose {\bf lines}}{C-x C-t}
Dave Love <fx@gnu.org>
parents:
diff changeset
497 \key{transpose {\bf sexps}}{C-M-t}
Dave Love <fx@gnu.org>
parents:
diff changeset
498
Dave Love <fx@gnu.org>
parents:
diff changeset
499 \section{Spelling Check}
Dave Love <fx@gnu.org>
parents:
diff changeset
500
Dave Love <fx@gnu.org>
parents:
diff changeset
501 \key{check spelling of current word}{M-\$}
Dave Love <fx@gnu.org>
parents:
diff changeset
502 \metax{check spelling of all words in region}{M-x ispell-region}
Dave Love <fx@gnu.org>
parents:
diff changeset
503 \metax{check spelling of entire buffer}{M-x ispell-buffer}
Dave Love <fx@gnu.org>
parents:
diff changeset
504
Dave Love <fx@gnu.org>
parents:
diff changeset
505 \section{Tags}
Dave Love <fx@gnu.org>
parents:
diff changeset
506
Dave Love <fx@gnu.org>
parents:
diff changeset
507 \key{find a tag (a definition)}{M-.}
Dave Love <fx@gnu.org>
parents:
diff changeset
508 \key{find next occurrence of tag}{C-u M-.}
Dave Love <fx@gnu.org>
parents:
diff changeset
509 \metax{specify a new tags file}{M-x visit-tags-table}
Dave Love <fx@gnu.org>
parents:
diff changeset
510
Dave Love <fx@gnu.org>
parents:
diff changeset
511 \metax{regexp search on all files in tags table}{M-x tags-search}
Dave Love <fx@gnu.org>
parents:
diff changeset
512 \metax{run query-replace on all the files}{M-x tags-query-replace}
Dave Love <fx@gnu.org>
parents:
diff changeset
513 \key{continue last tags search or query-replace}{M-,}
Dave Love <fx@gnu.org>
parents:
diff changeset
514
Dave Love <fx@gnu.org>
parents:
diff changeset
515 \section{Shells}
Dave Love <fx@gnu.org>
parents:
diff changeset
516
Dave Love <fx@gnu.org>
parents:
diff changeset
517 \key{execute a shell command}{M-!}
Dave Love <fx@gnu.org>
parents:
diff changeset
518 \key{run a shell command on the region}{M-|}
Dave Love <fx@gnu.org>
parents:
diff changeset
519 \key{filter region through a shell command}{C-u M-|}
Dave Love <fx@gnu.org>
parents:
diff changeset
520 \key{start a shell in window \kbd{*shell*}}{M-x shell}
Dave Love <fx@gnu.org>
parents:
diff changeset
521
Dave Love <fx@gnu.org>
parents:
diff changeset
522 \section{Rectangles}
Dave Love <fx@gnu.org>
parents:
diff changeset
523
Dave Love <fx@gnu.org>
parents:
diff changeset
524 \key{copy rectangle to register}{C-x r r}
Dave Love <fx@gnu.org>
parents:
diff changeset
525 \key{kill rectangle}{C-x r k}
Dave Love <fx@gnu.org>
parents:
diff changeset
526 \key{yank rectangle}{C-x r y}
Dave Love <fx@gnu.org>
parents:
diff changeset
527 \key{open rectangle, shifting text right}{C-x r o}
Dave Love <fx@gnu.org>
parents:
diff changeset
528 \key{blank out rectangle}{C-x r c}
Dave Love <fx@gnu.org>
parents:
diff changeset
529 \key{prefix each line with a string}{C-x r t}
Dave Love <fx@gnu.org>
parents:
diff changeset
530
Dave Love <fx@gnu.org>
parents:
diff changeset
531 \section{Abbrevs}
Dave Love <fx@gnu.org>
parents:
diff changeset
532
Dave Love <fx@gnu.org>
parents:
diff changeset
533 \key{add global abbrev}{C-x a g}
Dave Love <fx@gnu.org>
parents:
diff changeset
534 \key{add mode-local abbrev}{C-x a l}
Dave Love <fx@gnu.org>
parents:
diff changeset
535 \key{add global expansion for this abbrev}{C-x a i g}
Dave Love <fx@gnu.org>
parents:
diff changeset
536 \key{add mode-local expansion for this abbrev}{C-x a i l}
Dave Love <fx@gnu.org>
parents:
diff changeset
537 \key{explicitly expand abbrev}{C-x a e}
Dave Love <fx@gnu.org>
parents:
diff changeset
538
Dave Love <fx@gnu.org>
parents:
diff changeset
539 \key{expand previous word dynamically}{M-/}
Dave Love <fx@gnu.org>
parents:
diff changeset
540
Dave Love <fx@gnu.org>
parents:
diff changeset
541 \section{Regular Expressions}
Dave Love <fx@gnu.org>
parents:
diff changeset
542
Dave Love <fx@gnu.org>
parents:
diff changeset
543 \key{any single character except a newline}{. {\rm(dot)}}
Dave Love <fx@gnu.org>
parents:
diff changeset
544 \key{zero or more repeats}{*}
Dave Love <fx@gnu.org>
parents:
diff changeset
545 \key{one or more repeats}{+}
Dave Love <fx@gnu.org>
parents:
diff changeset
546 \key{zero or one repeat}{?}
Dave Love <fx@gnu.org>
parents:
diff changeset
547 \key{quote regular expression special character {\it c\/}}{\\{\it c}}
Dave Love <fx@gnu.org>
parents:
diff changeset
548 \key{alternative (``or'')}{\\|}
Dave Love <fx@gnu.org>
parents:
diff changeset
549 \key{grouping}{\\( {\rm$\ldots$} \\)}
Dave Love <fx@gnu.org>
parents:
diff changeset
550 \key{same text as {\it n\/}th group}{\\{\it n}}
Dave Love <fx@gnu.org>
parents:
diff changeset
551 \key{at word break}{\\b}
Dave Love <fx@gnu.org>
parents:
diff changeset
552 \key{not at word break}{\\B}
Dave Love <fx@gnu.org>
parents:
diff changeset
553
Dave Love <fx@gnu.org>
parents:
diff changeset
554 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
Dave Love <fx@gnu.org>
parents:
diff changeset
555 \threecol{{\bf entity}}{{\bf match start}}{{\bf match end}}
Dave Love <fx@gnu.org>
parents:
diff changeset
556 \threecol{line}{^}{\$}
Dave Love <fx@gnu.org>
parents:
diff changeset
557 \threecol{word}{\\<}{\\>}
Dave Love <fx@gnu.org>
parents:
diff changeset
558 \threecol{buffer}{\\`}{\\'}
Dave Love <fx@gnu.org>
parents:
diff changeset
559
Dave Love <fx@gnu.org>
parents:
diff changeset
560 \threecol{{\bf class of characters}}{{\bf match these}}{{\bf match others}}
Dave Love <fx@gnu.org>
parents:
diff changeset
561 \threecol{explicit set}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]}
Dave Love <fx@gnu.org>
parents:
diff changeset
562 \threecol{word-syntax character}{\\w}{\\W}
Dave Love <fx@gnu.org>
parents:
diff changeset
563 \threecol{character with syntax {\it c}}{\\s{\it c}}{\\S{\it c}}
Dave Love <fx@gnu.org>
parents:
diff changeset
564 }
Dave Love <fx@gnu.org>
parents:
diff changeset
565
Dave Love <fx@gnu.org>
parents:
diff changeset
566 \section{International Character Sets}
Dave Love <fx@gnu.org>
parents:
diff changeset
567
64127
88b841a92534 Update `versionnumber' and `year'. Update Emacs's version to 22.
Lute Kamstra <lute@gnu.org>
parents: 64091
diff changeset
568 \key{specify principal language}{C-x RET l}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
569 \metax{show all input methods}{M-x list-input-methods}
Dave Love <fx@gnu.org>
parents:
diff changeset
570 \key{enable or disable input method}{C-\\}
Dave Love <fx@gnu.org>
parents:
diff changeset
571 \key{set coding system for next command}{C-x RET c}
Dave Love <fx@gnu.org>
parents:
diff changeset
572 \metax{show all coding systems}{M-x list-coding-systems}
Dave Love <fx@gnu.org>
parents:
diff changeset
573 \metax{choose preferred coding system}{M-x prefer-coding-system}
Dave Love <fx@gnu.org>
parents:
diff changeset
574
Dave Love <fx@gnu.org>
parents:
diff changeset
575 \section{Info}
Dave Love <fx@gnu.org>
parents:
diff changeset
576
Dave Love <fx@gnu.org>
parents:
diff changeset
577 \key{enter the Info documentation reader}{C-h i}
64242
0ee94ce27f45 (Files): Change description of `C-x C-q' from
Juri Linkov <juri@jurta.org>
parents: 64127
diff changeset
578 \key{find specified function or variable in Info}{C-h S}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
579 \beginindentedkeys
Dave Love <fx@gnu.org>
parents:
diff changeset
580
Dave Love <fx@gnu.org>
parents:
diff changeset
581 Moving within a node:
Dave Love <fx@gnu.org>
parents:
diff changeset
582
Dave Love <fx@gnu.org>
parents:
diff changeset
583 \key{scroll forward}{SPC}
Dave Love <fx@gnu.org>
parents:
diff changeset
584 \key{scroll reverse}{DEL}
Dave Love <fx@gnu.org>
parents:
diff changeset
585 \key{beginning of node}{. {\rm (dot)}}
Dave Love <fx@gnu.org>
parents:
diff changeset
586
Dave Love <fx@gnu.org>
parents:
diff changeset
587 Moving between nodes:
Dave Love <fx@gnu.org>
parents:
diff changeset
588
Dave Love <fx@gnu.org>
parents:
diff changeset
589 \key{{\bf next} node}{n}
Dave Love <fx@gnu.org>
parents:
diff changeset
590 \key{{\bf previous} node}{p}
Dave Love <fx@gnu.org>
parents:
diff changeset
591 \key{move {\bf up}}{u}
Dave Love <fx@gnu.org>
parents:
diff changeset
592 \key{select menu item by name}{m}
Dave Love <fx@gnu.org>
parents:
diff changeset
593 \key{select {\it n\/}th menu item by number (1--9)}{{\it n}}
Dave Love <fx@gnu.org>
parents:
diff changeset
594 \key{follow cross reference (return with \kbd{l})}{f}
Dave Love <fx@gnu.org>
parents:
diff changeset
595 \key{return to last node you saw}{l}
Dave Love <fx@gnu.org>
parents:
diff changeset
596 \key{return to directory node}{d}
64242
0ee94ce27f45 (Files): Change description of `C-x C-q' from
Juri Linkov <juri@jurta.org>
parents: 64127
diff changeset
597 \key{go to top node of Info file}{t}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
598 \key{go to any node by name}{g}
Dave Love <fx@gnu.org>
parents:
diff changeset
599
Dave Love <fx@gnu.org>
parents:
diff changeset
600 Other:
Dave Love <fx@gnu.org>
parents:
diff changeset
601
Dave Love <fx@gnu.org>
parents:
diff changeset
602 \key{run Info {\bf tutorial}}{h}
70860
46cec5e362d6 * refcard.tex (section{Info}): Add `i'. Use `s' instead of `M-s'.
Reiner Steib <Reiner.Steib@gmx.de>
parents: 68640
diff changeset
603 \key{look up a subject in the indices}{i}
46cec5e362d6 * refcard.tex (section{Info}): Add `i'. Use `s' instead of `M-s'.
Reiner Steib <Reiner.Steib@gmx.de>
parents: 68640
diff changeset
604 \key{search nodes for regexp}{s}
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
605 \key{{\bf quit} Info}{q}
Dave Love <fx@gnu.org>
parents:
diff changeset
606
Dave Love <fx@gnu.org>
parents:
diff changeset
607 \endindentedkeys
Dave Love <fx@gnu.org>
parents:
diff changeset
608
Dave Love <fx@gnu.org>
parents:
diff changeset
609 \section{Registers}
Dave Love <fx@gnu.org>
parents:
diff changeset
610
Dave Love <fx@gnu.org>
parents:
diff changeset
611 \key{save region in register}{C-x r s}
Dave Love <fx@gnu.org>
parents:
diff changeset
612 \key{insert register contents into buffer}{C-x r i}
Dave Love <fx@gnu.org>
parents:
diff changeset
613
Dave Love <fx@gnu.org>
parents:
diff changeset
614 \key{save value of point in register}{C-x r SPC}
Dave Love <fx@gnu.org>
parents:
diff changeset
615 \key{jump to point saved in register}{C-x r j}
Dave Love <fx@gnu.org>
parents:
diff changeset
616
Dave Love <fx@gnu.org>
parents:
diff changeset
617 \section{Keyboard Macros}
Dave Love <fx@gnu.org>
parents:
diff changeset
618
Dave Love <fx@gnu.org>
parents:
diff changeset
619 \key{{\bf start} defining a keyboard macro}{C-x (}
Dave Love <fx@gnu.org>
parents:
diff changeset
620 \key{{\bf end} keyboard macro definition}{C-x )}
Dave Love <fx@gnu.org>
parents:
diff changeset
621 \key{{\bf execute} last-defined keyboard macro}{C-x e}
Dave Love <fx@gnu.org>
parents:
diff changeset
622 \key{append to last keyboard macro}{C-u C-x (}
Dave Love <fx@gnu.org>
parents:
diff changeset
623 \metax{name last keyboard macro}{M-x name-last-kbd-macro}
Dave Love <fx@gnu.org>
parents:
diff changeset
624 \metax{insert Lisp definition in buffer}{M-x insert-kbd-macro}
Dave Love <fx@gnu.org>
parents:
diff changeset
625
Dave Love <fx@gnu.org>
parents:
diff changeset
626 \section{Commands Dealing with Emacs Lisp}
Dave Love <fx@gnu.org>
parents:
diff changeset
627
Dave Love <fx@gnu.org>
parents:
diff changeset
628 \key{eval {\bf sexp} before point}{C-x C-e}
Dave Love <fx@gnu.org>
parents:
diff changeset
629 \key{eval current {\bf defun}}{C-M-x}
Dave Love <fx@gnu.org>
parents:
diff changeset
630 \metax{eval {\bf region}}{M-x eval-region}
Dave Love <fx@gnu.org>
parents:
diff changeset
631 \key{read and eval minibuffer}{M-:}
Dave Love <fx@gnu.org>
parents:
diff changeset
632 \metax{load from standard system directory}{M-x load-library}
Dave Love <fx@gnu.org>
parents:
diff changeset
633
Dave Love <fx@gnu.org>
parents:
diff changeset
634 \section{Simple Customization}
Dave Love <fx@gnu.org>
parents:
diff changeset
635
Dave Love <fx@gnu.org>
parents:
diff changeset
636 \metax{customize variables and faces}{M-x customize}
Dave Love <fx@gnu.org>
parents:
diff changeset
637
Dave Love <fx@gnu.org>
parents:
diff changeset
638 % The intended audience here is the person who wants to make simple
Dave Love <fx@gnu.org>
parents:
diff changeset
639 % customizations and knows Lisp syntax.
Dave Love <fx@gnu.org>
parents:
diff changeset
640
Dave Love <fx@gnu.org>
parents:
diff changeset
641 Making global key bindings in Emacs Lisp (examples):
Dave Love <fx@gnu.org>
parents:
diff changeset
642
Dave Love <fx@gnu.org>
parents:
diff changeset
643 \beginexample%
Dave Love <fx@gnu.org>
parents:
diff changeset
644 (global-set-key "\\C-cg" 'goto-line)
Dave Love <fx@gnu.org>
parents:
diff changeset
645 (global-set-key "\\M-\#" 'query-replace-regexp)
Dave Love <fx@gnu.org>
parents:
diff changeset
646 \endexample
Dave Love <fx@gnu.org>
parents:
diff changeset
647
Dave Love <fx@gnu.org>
parents:
diff changeset
648 \section{Writing Commands}
Dave Love <fx@gnu.org>
parents:
diff changeset
649
Dave Love <fx@gnu.org>
parents:
diff changeset
650 \beginexample%
Dave Love <fx@gnu.org>
parents:
diff changeset
651 (defun \<command-name> (\<args>)
Dave Love <fx@gnu.org>
parents:
diff changeset
652 "\<documentation>" (interactive "\<template>")
Dave Love <fx@gnu.org>
parents:
diff changeset
653 \<body>)
Dave Love <fx@gnu.org>
parents:
diff changeset
654 \endexample
Dave Love <fx@gnu.org>
parents:
diff changeset
655
Dave Love <fx@gnu.org>
parents:
diff changeset
656 An example:
Dave Love <fx@gnu.org>
parents:
diff changeset
657
Dave Love <fx@gnu.org>
parents:
diff changeset
658 \beginexample%
Dave Love <fx@gnu.org>
parents:
diff changeset
659 (defun this-line-to-top-of-window (line)
77685
02fdc61fbbc6 (section{Incremental Search}): Minor corrections.
Richard M. Stallman <rms@gnu.org>
parents: 75331
diff changeset
660 "Reposition current line to top of window.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
661 With ARG, put point on line ARG."
Dave Love <fx@gnu.org>
parents:
diff changeset
662 (interactive "P")
Dave Love <fx@gnu.org>
parents:
diff changeset
663 (recenter (if (null line)
Dave Love <fx@gnu.org>
parents:
diff changeset
664 0
Dave Love <fx@gnu.org>
parents:
diff changeset
665 (prefix-numeric-value line))))
Dave Love <fx@gnu.org>
parents:
diff changeset
666 \endexample
Dave Love <fx@gnu.org>
parents:
diff changeset
667
Dave Love <fx@gnu.org>
parents:
diff changeset
668 The \kbd{interactive} spec says how to read arguments interactively.
Dave Love <fx@gnu.org>
parents:
diff changeset
669 Type \kbd{C-h f interactive} for more details.
Dave Love <fx@gnu.org>
parents:
diff changeset
670
Dave Love <fx@gnu.org>
parents:
diff changeset
671 \copyrightnotice
Dave Love <fx@gnu.org>
parents:
diff changeset
672
Dave Love <fx@gnu.org>
parents:
diff changeset
673 \bye
Dave Love <fx@gnu.org>
parents:
diff changeset
674
Dave Love <fx@gnu.org>
parents:
diff changeset
675 % Local variables:
Dave Love <fx@gnu.org>
parents:
diff changeset
676 % compile-command: "tex refcard"
Dave Love <fx@gnu.org>
parents:
diff changeset
677 % End:
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
678
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
679 % arch-tag: d67bdf5d-b77c-44eb-a22e-f4f7d25174d2