annotate etc/refcards/survival.tex @ 107541:d59e6301c2cd

Add "union tags" in mpc.el. * mpc.el: Remove backward compatibility code. (mpc-browser-tags): Change default. (mpc--find-memoize-union-tags): New var. (mpc-cmd-flush, mpc-cmd-special-tag-p): New fun. (mpc-cmd-find): Handle the case where the playlist does not exist. Handle union-tags. (mpc-cmd-list): Use mpc-cmd-special-tag-p. Handle union-tags. (mpc-cmd-add): Use mpc-cmd-flush. (mpc-tagbrowser-tag-name): New fun. (mpc-tagbrowser-buf): Use it. (mpc-songs-refresh): Use cond. Move to point-min as a fallback.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 24 Mar 2010 20:06:08 -0400
parents 8b08de8dc0aa
children 376148b31b5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 %&tex
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 % Title: GNU Emacs Survival Card
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
3
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
4 % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 104005
diff changeset
5 % 2009, 2010 Free Software Foundation, Inc.
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
6
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 % Author: Wlodek Bzyl <matwb@univ.gda.pl>
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
8
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
9 % This file is part of GNU Emacs.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
10
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
11 % GNU Emacs is free software: you can redistribute it and/or modify
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
12 % it under the terms of the GNU General Public License as published by
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
13 % the Free Software Foundation, either version 3 of the License, or
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
14 % (at your option) any later version.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
15
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
16 % GNU Emacs is distributed in the hope that it will be useful,
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
17 % but WITHOUT ANY WARRANTY; without even the implied warranty of
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
18 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
19 % GNU General Public License for more details.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
20
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
21 % You should have received a copy of the GNU General Public License
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
22 % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
23
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
24 %**start of header
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 % User interface is `plain.tex' and macros described below
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 %
103254
cbea58d660d2 * refcards/survival.tex: Add M-g M-g binding.
Chong Yidong <cyd@stupidchicken.com>
parents: 100975
diff changeset
28 % \title{CARD TITLE}{for version 23}
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 % \section{NAME}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 % optional paragraphs separated with \askip amount of vertical space
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 % \key{KEY-NAME} description of key or
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32 % \mkey{M-x LONG-LISP-NAME} description of Elisp function
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 %
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 % \kbd{ARG} -- argument is typed literally
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 \def\plainfmtname{plain}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37 \ifx\fmtname\plainfmtname
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
38 \else
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 \errmessage{This file requires `plain' format to be typeset correctly}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 \endinput
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
41 \fi
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42
82878
04f46902291b Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82679
diff changeset
43 % PDF output layout. 0 for A4, 1 for letter (US), a `l' is added for
04f46902291b Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82679
diff changeset
44 % a landscape layout.
04f46902291b Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82679
diff changeset
45 \input pdflayout.sty
04f46902291b Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82679
diff changeset
46 \pdflayout=(1)
04f46902291b Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82679
diff changeset
47
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
48 \def\versionemacs{23} % version of Emacs this is for
107297
8b08de8dc0aa Update short copyright year in refcard tex files.
Glenn Morris <rgm@gnu.org>
parents: 106815
diff changeset
49 \def\year{2010} % latest copyright year
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
50
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 \def\copyrightnotice{\penalty-1\vfill
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 \vbox{\smallfont\baselineskip=0.8\baselineskip\raggedcenter
104005
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
53 Copyright \copyright\ \year\ Free Software Foundation, Inc.\break
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
54 For GNU Emacs version \versionemacs\break
76ec8228b5d8 Standardize headers.
Glenn Morris <rgm@gnu.org>
parents: 103254
diff changeset
55 Author W{\l}odek Bzyl (matwb@univ.gda.pl)
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 Permission is granted to make and distribute copies of
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 this card provided the copyright notice and this permission notice
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
59 are preserved on all copies.\par}}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
60
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
61 \hsize 3.2in
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
62 \vsize 7.95in
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
63 \font\titlefont=cmss10 scaled 1200
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
64 \font\headingfont=cmss10
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
65 \font\smallfont=cmr6
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66 \font\smallsy=cmsy6
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
67 \font\eightrm=cmr8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
68 \font\eightbf=cmbx8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
69 \font\eightit=cmti8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
70 \font\eighttt=cmtt8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
71 \font\eightmi=cmmi8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
72 \font\eightsy=cmsy8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
73 \font\eightss=cmss8
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
74 \textfont0=\eightrm
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
75 \textfont1=\eightmi
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
76 \textfont2=\eightsy
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
77 \def\rm{\eightrm} \rm
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
78 \def\bf{\eightbf}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
79 \def\it{\eightit}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
80 \def\tt{\eighttt}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
81 \def\ss{\eightss}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
82 \baselineskip=0.8\baselineskip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
83
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84 \newdimen\intercolumnskip % horizontal space between columns
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 \intercolumnskip=0.5in
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
86
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
87 % The TeXbook, p. 257
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
88 \let\lr=L \newbox\leftcolumn
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
89 \output={\if L\lr
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
90 \global\setbox\leftcolumn\columnbox \global\let\lr=R
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
91 \else
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
92 \doubleformat \global\let\lr=L\fi}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
93 \def\doubleformat{\shipout\vbox{\makeheadline
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
94 \leftline{\box\leftcolumn\hskip\intercolumnskip\columnbox}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95 \makefootline}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 \advancepageno}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
97 \def\columnbox{\leftline{\pagebody}}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
98
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
99 \def\newcolumn{\vfil\eject}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
100
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
101 \def\bye{\par\vfil\supereject
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
102 \if R\lr \null\vfil\eject\fi
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
103 \end}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
104
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
105 \outer\def\title#1#2{{\titlefont\centerline{#1}}\vskip 1ex plus 0.5ex
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106 \centerline{\ss#2}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
107 \vskip2\baselineskip}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
108
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
109 \outer\def\section#1{\filbreak
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110 \bskip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 \leftline{\headingfont #1}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 \askip}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113 \def\bskip{\vskip 2.5ex plus 0.25ex }
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 \def\askip{\vskip 0.75ex plus 0.25ex}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
115
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
116 \newdimen\defwidth \defwidth=0.25\hsize
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
117 \def\hang{\hangindent\defwidth}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
118
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
119 \def\textindent#1{\noindent\llap{\hbox to \defwidth{\tt#1\hfil}}\ignorespaces}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120 \def\key{\par\hangafter=0\hang\textindent}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 \def\mtextindent#1{\noindent\hbox{\tt#1\quad}\ignorespaces}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 \def\mkey{\par\hangafter=1\hang\mtextindent}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
124
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
125 \def\kbd#{\bgroup\tt \let\next= }
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
126
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
127 \newdimen\raggedstretch
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128 \newskip\raggedparfill \raggedparfill=0pt plus 1fil
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 \def\nohyphens
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 {\hyphenpenalty10000\exhyphenpenalty10000\pretolerance10000}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
131 \def\raggedspaces
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 {\spaceskip=0.3333em\relax
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 \xspaceskip=0.5em\relax}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 \def\raggedright
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 {\raggedstretch=6em
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 \nohyphens
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 \rightskip=0pt plus \raggedstretch
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138 \raggedspaces
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 \parfillskip=\raggedparfill
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 \relax}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141 \def\raggedcenter
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 {\raggedstretch=6em
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 \nohyphens
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 \rightskip=0pt plus \raggedstretch
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 \leftskip=\rightskip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 \raggedspaces
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 \parfillskip=0pt
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 \relax}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 \chardef\\=`\\
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152 \raggedright
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 \nopagenumbers
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 \parindent 0pt
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 \interlinepenalty=10000
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156 \hoffset -0.2in
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 %\voffset 0.2in
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 %**end of header
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162 \title{GNU\ \ Emacs\ \ Survival\ \ Card}{for version \versionemacs}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 In the following, \kbd{C-z} means hit the `\kbd{z}' key while
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 holding down the {\it Ctrl}\ \ key. \kbd{M-z} means hit the
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 `\kbd{z}' key while hitting the {\it Meta\/} (labeled {\it Alt\/}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167 on some keyboards) or after hitting {\it Esc\/} key.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 \section{Running Emacs}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 To enter GNU Emacs, just type its name: \kbd{emacs}.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 Emacs divides the frame into several areas:
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 menu line,
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 buffer area with the edited text,
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 mode line describing the buffer in the window above it,
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 and a minibuffer/echo area in the last line.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 \key{C-x C-c} quit Emacs
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 \key{C-x C-f} edit file; this command uses the minibuffer to read
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 the file name; use this to create new files by entering the name
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 of the new file
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182 \key{C-x C-s} save the file
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 \key{C-x k} kill a buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 \key{C-g} in most context: cancel, stop, abort partially typed or
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 executing command
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186 \key{C-x u} undo
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 \section{Moving About}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 \key{C-l} scroll current line to center of window
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 \key{C-x b} switch to another buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 \key{M-<} move to beginning of buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 \key{M->} move to end of buffer
103254
cbea58d660d2 * refcards/survival.tex: Add M-g M-g binding.
Chong Yidong <cyd@stupidchicken.com>
parents: 100975
diff changeset
194 \key{M-g M-g} go to a given line number
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 \section{Multiple Windows}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 \key{C-x 0} remove the current window from the display
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 \key{C-x 1} make active window the only window
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 \key{C-x 2} split window horizontally
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 \key{C-x 3} split window vertically
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202 \key{C-x o} move to other window
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 \section{Regions}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206 Emacs defines a `region' as the space between the {\it mark\/} and
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 the {\it point}. A mark is set with \kbd{C-{\it space}}.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 The point is at the cursor position.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 \key{M-h} mark entire paragraph
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211 \key{C-x h} mark entire buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 \section{Killing and Copying}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 \key{C-w} kill region
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 \key{M-w} copy region to kill-ring
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 \key{C-k} kill from the cursor all the way to the end of the line
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 \key{M-DEL} kill word
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 \key{C-y} yank back the last kill (\kbd{C-w C-y} combination could be
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220 used to move text around)
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 \key{M-y} replace last yank with previous kill
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223 \section{Searching}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 \key{C-s} search for a string
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 \key{C-r} search for a string backwards
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 \key{RET} quit searching
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 \key{M-C-s} regular expression search
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229 \key{M-C-r} reverse regular expression search
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
230 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
231 Use \kbd{C-s} or \kbd{C-r} again to repeat the search in either direction.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
232
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
233 \section{Tags}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
234
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 Tags tables files record locations of function and
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 procedure definitions, global variables, data types and anything
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 else convenient. To create a tags table file, type
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238 `{\tt etags} {\it input\_files}' as a shell command.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240 \key{M-.} find a definition
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
241 \key{C-u M-.} find next occurrence of definition
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
242 \key{M-*} pop back to where \kbd{M-.} was last invoked
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
243 \mkey{M-x tags-query-replace} run query-replace on all files
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
244 recorded in tags table
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
245 \key{M-,} continue last tags search or query-replace
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
246
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
247 \section{Compiling}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
248
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
249 \key{M-x compile} compile code in active window
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
250 \key{C-c C-c} go to the next compiler error, when in
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
251 the compile window or
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
252 \key{C-x `} when in the window with source code
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
253
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
254 \section{Dired, the Directory Editor}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
255
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 \key{C-x d} invoke Dired
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 \key{d} flag this file for deletion
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 \key{\~{}} flag all backup files for deletion
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 \key{u} remove deletion flag
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
260 \key{x} delete the files flagged for deletion
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
261 \key{C} copy file
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
262 \key{g} update the Dired buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
263 \key{f} visit the file described on the current line
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 \key{s} switch between alphabetical date/time order
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
266 \section{Reading and Sending Mail}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
267
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
268 \key{M-x rmail} start reading mail
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
269 \key{q} quit reading mail
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
270 \key{h} show headers
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
271 \key{d} mark the current message for deletion
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
272 \key{x} remove all messages marked for deletion
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
273
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
274 \key{C-x m} begin composing a message
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
275 \key{C-c C-c} send the message and switch to another buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
276 \key{C-c C-f C-c} move to the `CC' header field, creating one
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
277 if there is none
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
278
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
279 \section{Miscellaneous}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
280
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
281 \key{M-q} fill paragraph
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
282 \key{M-/} expand previous word dynamically
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
283 \key{C-z} iconify (suspend) Emacs when running it under X or
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
284 shell, respectively
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
285 \mkey{M-x revert-buffer} replace the text being edited with the
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
286 text of the file on disk
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
287
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
288 \section{Query Replace}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
289
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
290 \key{M-\%} interactively search and replace
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
291 \key{M-C-\%} using regular expressions
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
292 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
293 Valid responses in query-replace mode are
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
294 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
295 \key{SPC} replace this one, go on to next
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
296 \key{,} replace this one, don't move
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
297 \key{DEL} skip to next without replacing
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
298 \key{!} replace all remaining matches
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
299 \key{\^{}} back up to the previous match
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
300 \key{RET} exit query-replace
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
301 \key{C-r} enter recursive edit (\kbd{M-C-c} to exit)
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
302
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
303 \section{Regular Expressions}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
304
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
305 \key{. {\rm(dot)}} any single character except a newline
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
306 \key{*} zero or more repeats
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
307 \key{+} one or more repeats
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
308 \key{?} zero or one repeat
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
309 \key{[$\ldots$]} denotes a class of character to match
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
310 \key{[\^{}$\ldots$]} negates the class
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
311
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
312 \key{\\{\it c}} quote characters otherwise having a special
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
313 meaning in regular expressions
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
314
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
315 \key{$\ldots$\\|$\ldots$\\|$\ldots$} matches one of
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
316 the alternatives (``or'')
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
317 \key{\\( $\ldots$ \\)} groups a series of pattern elements to
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
318 a single element
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
319 \key{\\{\it n}} same text as {\it n\/}th group
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
320
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
321 \key{\^{}} matches at line beginning
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
322 \key{\$} matches at line end
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
323
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
324 \key{\\w} matches word-syntax character
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
325 \key{\\W} matches non-word-syntax character
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
326 \key{\\<} matches at word beginning
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
327 \key{\\>} matches at word end
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
328 \key{\\b} matches at word break
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
329 \key{\\B} matches at non-word break
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
330
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
331 \section{Registers}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
332
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
333 \key{C-x r s} save region in register
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
334 \key{C-x r i} insert register contents into buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
335
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
336 \key{C-x r SPC} save value of point in register
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
337 \key{C-x r j} jump to point saved in register
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
338
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
339 \section{Rectangles}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
340
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
341 \key{C-x r r} copy rectangle to register
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
342 \key{C-x r k} kill rectangle
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
343 \key{C-x r y} yank rectangle
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
344 \key{C-x r t} prefix each line with a string
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
345
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
346 \key{C-x r o} open rectangle, shifting text right
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
347 \key{C-x r c} blank out rectangle
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
348
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
349 \section{Shells}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
350
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
351 \key{M-x shell} start a shell within Emacs
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
352 \key{M-!} execute a shell command
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
353 \key{M-|} run a shell command on the region
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
354 \key{C-u M-|} filter region through a shell command
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
355
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
356 \section{Spelling Check}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
357
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
358 \key{M-\$} check spelling of word at the cursor
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
359 \mkey{M-x ispell-region} check spelling of all words in region
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
360 \mkey{M-x ispell-buffer} check spelling of entire buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
361
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
362 \section{International Character Sets}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
363
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
364 \key{C-x RET C-\\} select and activate input method for
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
365 the current buffer
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
366 \key{C-\\} enable or disable input method
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
367 \mkey{M-x list-input-methods} show all input methods
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
368 \mkey{M-x set-language-environment} specify principal language
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
369
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
370 \key{C-x RET c} set coding system for next command
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
371 \mkey{M-x find-file-literally} visit file with no conversion
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
372 of any kind
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
373
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
374 \mkey{M-x list-coding-systems} show all coding systems
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
375 \mkey{M-x prefer-coding-system} choose preferred coding system
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
376
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
377 \section{Keyboard Macros}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
378
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
379 \key{C-x (} start defining a keyboard macro
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
380 \key{C-x )} end keyboard macro definition
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
381 \key{C-x e} execute last-defined keyboard macro
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
382 \key{C-u C-x (} append to last keyboard macro
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
383 \mkey{M-x name-last-kbd-macro} name last keyboard macro
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
384
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
385 \section{Simple Customization}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
386
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
387 \key{M-x customize} customize variables and faces
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
388
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
389 \section{Getting Help}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
390
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 Emacs does command completion for you. Typing \kbd{M-x}
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 {\it tab\/} or {\it space\/} gives a list of Emacs commands.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 \key{C-h} Emacs help
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 \key{C-h t} run the Emacs tutorial
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 \key{C-h i} enter Info, the documentation browser
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 \key{C-h a} show commands matching a string (apropos)
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 \key{C-h k} display documentation of the function invoked by
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
399 keystroke
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
400 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
401 Emacs gets into different {\it modes}, each of which customizes
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
402 Emacs for editing text of a particular sort. The mode line
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403 contains names of the current modes, in parentheses.
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 \askip
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 \key{C-h m} get mode-specific information
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 \copyrightnotice
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 \bye
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
410
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
411 % Local variables:
82878
04f46902291b Specify PDF layout, use a PDF `compile-command' local variable.
Michaël Cadilhac <michael.cadilhac@lrde.org>
parents: 82679
diff changeset
412 % compile-command: "pdftex survival"
82679
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
413 % End:
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
414
eab21677ffd4 Move refcards from etc/ to etc/refcards/
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415 % arch-tag: 4f9a0562-617b-4843-aee1-450c41d6b22c