]> code.delx.au - gnu-emacs/blobdiff - etc/refcards/refcard.tex
Ibuffer change marks
[gnu-emacs] / etc / refcards / refcard.tex
index 52b9348db2612a17115886b211508f0385fa5b3d..a5c74191dacc126bc839147f2d61998490d7a67e 100644 (file)
@@ -1,7 +1,7 @@
 % Reference Card for GNU Emacs
 
-% Copyright (C) 1987, 1993, 1996-1997, 2001-2011
-%   Free Software Foundation, Inc.
+% Copyright (C) 1987, 1993, 1996-1997, 2001-2016 Free Software
+% Foundation, Inc.
 
 % Author: Stephen Gildea <gildea@stop.mail-abuse.org>
 
@@ -63,8 +63,7 @@
 
 % Nothing else needs to be changed below this line.
 
-\def\versionemacs{23}           % version of Emacs this is for
-\def\year{2011}                 % copyright year
+\input emacsver.tex
 
 \def\shortcopyrightnotice{\vskip 1ex plus 2 fill
   \centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
@@ -332,6 +331,7 @@ If Emacs is still searching, \kbd{C-g} cancels only the part not matched.
 
 \shortcopyrightnotice
 
+\newcolumn
 \section{Motion}
 
 \paralign to \hsize{#\tabskip=10pt plus 1 fil&#\tabskip=0pt&#\cr
@@ -352,7 +352,11 @@ If Emacs is still searching, \kbd{C-g} cancels only the part not matched.
 \key{scroll to previous screen}{M-v}
 \key{scroll left}{C-x <}
 \key{scroll right}{C-x >}
-\key{scroll current line to center of screen}{C-u C-l}
+\key{scroll current line to center, top, bottom}{C-l}
+
+\key{goto line}{M-g g}
+\key{goto char}{M-g c}
+\key{back to indentation}{M-m}
 
 \section{Killing and Deleting}
 
@@ -393,14 +397,15 @@ If Emacs is still searching, \kbd{C-g} cancels only the part not matched.
 
 Valid responses in query-replace mode are
 
-\key{{\bf replace} this one, go on to next}{SPC}
+\key{{\bf replace} this one, go on to next}{SPC {\rm or} y}
 \key{replace this one, don't move}{,}
-\key{{\bf skip} to next without replacing}{DEL}
+\key{{\bf skip} to next without replacing}{DEL {\rm or} n}
 \key{replace all remaining matches}{!}
 \key{{\bf back up} to the previous match}{^}
 \key{{\bf exit} query-replace}{RET}
 \key{enter recursive edit (\kbd{C-M-c} to exit)}{C-r}
 
+\newcolumn
 \section{Multiple Windows}
 
 When two commands are shown, the second is a similar command for a
@@ -438,6 +443,7 @@ frame instead of a window.
 \key{indent {\bf region} (mode-dependent)}{C-M-\\}
 \key{indent {\bf sexp} (mode-dependent)}{C-M-q}
 \key{indent region rigidly {\it arg\/} columns}{C-x TAB}
+\key{indent for comment}{M-;}
 
 \key{insert newline after point}{C-o}
 \key{move rest of line vertically down}{C-M-o}
@@ -499,6 +505,7 @@ minibuffer.  Type \kbd{F10} to activate menu bar items on text terminals.
 \key{check spelling of current word}{M-\$}
 \metax{check spelling of all words in region}{M-x ispell-region}
 \metax{check spelling of entire buffer}{M-x ispell-buffer}
+\metax{toggle on-the-fly spell checking}{M-x flyspell-mode}
 
 \section{Tags}
 
@@ -513,6 +520,7 @@ minibuffer.  Type \kbd{F10} to activate menu bar items on text terminals.
 \section{Shells}
 
 \key{execute a shell command}{M-!}
+\key{execute a shell command asynchronously}{M-\&}
 \key{run a shell command on the region}{M-|}
 \key{filter region through a shell command}{C-u M-|}
 \key{start a shell in window \kbd{*shell*}}{M-x shell}
@@ -536,15 +544,25 @@ minibuffer.  Type \kbd{F10} to activate menu bar items on text terminals.
 
 \key{expand previous word dynamically}{M-/}
 
+\section{Miscellaneous}
+
+\key{numeric argument}{C-u {\it num}}
+\key{negative argument}{M--}
+\key{quoted insert}{C-q {\it char}}
+
+\newcolumn
 \section{Regular Expressions}
 
 \key{any single character except a newline}{. {\rm(dot)}}
 \key{zero or more repeats}{*}
 \key{one or more repeats}{+}
 \key{zero or one repeat}{?}
+\key{quote special characters}{\\}
 \key{quote regular expression special character {\it c\/}}{\\{\it c}}
 \key{alternative (``or'')}{\\|}
 \key{grouping}{\\( {\rm$\ldots$} \\)}
+\key{shy grouping}{\\(:? {\rm$\ldots$} \\)}
+\key{explicit numbered grouping}{\\(:NUM {\rm$\ldots$} \\)}
 \key{same text as {\it n\/}th group}{\\{\it n}}
 \key{at word break}{\\b}
 \key{not at word break}{\\B}
@@ -553,12 +571,15 @@ minibuffer.  Type \kbd{F10} to activate menu bar items on text terminals.
 \threecol{{\bf entity}}{{\bf match start}}{{\bf match end}}
 \threecol{line}{^}{\$}
 \threecol{word}{\\<}{\\>}
+\threecol{symbol}{\\_<}{\\_>}
 \threecol{buffer}{\\`}{\\'}
+%% FIXME: "`" and "'" isn't displayed correctly in the output PDF file
 
 \threecol{{\bf class of characters}}{{\bf match these}}{{\bf match others}}
 \threecol{explicit set}{[ {\rm$\ldots$} ]}{[^ {\rm$\ldots$} ]}
 \threecol{word-syntax character}{\\w}{\\W}
 \threecol{character with syntax {\it c}}{\\s{\it c}}{\\S{\it c}}
+\threecol{character with category {\it c}}{\\c{\it c}}{\\C{\it c}}
 }
 
 \section{International Character Sets}
@@ -580,7 +601,7 @@ Moving within a node:
 
 \key{scroll forward}{SPC}
 \key{scroll reverse}{DEL}
-\key{beginning of node}{. {\rm (dot)}}
+\key{beginning of node}{b}
 
 Moving between nodes:
 
@@ -604,6 +625,7 @@ Other:
 
 \endindentedkeys
 
+\newcolumn
 \section{Registers}
 
 \key{save region in register}{C-x r s}
@@ -627,7 +649,7 @@ Other:
 \key{eval current {\bf defun}}{C-M-x}
 \metax{eval {\bf region}}{M-x eval-region}
 \key{read and eval minibuffer}{M-:}
-\metax{load from standard system directory}{M-x load-library}
+\metax{load a Lisp library from {\bf load-path}}{M-x load-library}
 
 \section{Simple Customization}
 
@@ -656,7 +678,7 @@ An example:
 \beginexample%
 (defun this-line-to-top-of-window (line)
   "Reposition current line to top of window.
-With ARG, put point on line ARG."
+With prefix argument LINE, put point on LINE."
   (interactive "P")
   (recenter (if (null line)
                 0
@@ -664,7 +686,7 @@ With ARG, put point on line ARG."
 \endexample
 
 The \kbd{interactive} spec says how to read arguments interactively.
-Type \kbd{C-h f interactive} for more details.
+Type \kbd{C-h f interactive RET} for more details.
 
 \copyrightnotice