Subject: [PATCH] Some fixes for refcard.tex

From: Xue Fuqiao <[email-masked]>
Date: Fri, 29 Mar 2013 17:02:27 +0800

The following patch refines some entries in etc/refcards/refcard.tex:

diff -cp trunk/etc/refcards/refcard.tex.orig trunk/etc/refcards/refcard.tex
*** trunk/etc/refcards/refcard.tex.orig	2013-03-10 06:42:26.000000000 +0800
--- trunk/etc/refcards/refcard.tex	2013-03-29 16:54:48.000000000 +0800
*************** If Emacs is still searching, \kbd{C-g} c
*** 355,360 ****
--- 355,361 ----
  \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}
*************** minibuffer.  Type \kbd{F10} to activate
*** 504,509 ****
--- 505,511 ----
  \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}
  
*************** minibuffer.  Type \kbd{F10} to activate
*** 512,523 ****
  \metax{specify a new tags file}{M-x visit-tags-table}
  
  \metax{regexp search on all files in tags table}{M-x tags-search}
! \metax{run query-replace on all the files}{M-x tags-query-replace}
  \key{continue last tags search or query-replace}{M-,}
  
  \section{Shells}
  
  \key{execute a shell command}{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}
--- 514,526 ----
  \metax{specify a new tags file}{M-x visit-tags-table}
  
  \metax{regexp search on all files in tags table}{M-x tags-search}
! \metax{run {\bf query-replace-regexp} on all files listed in tags table}{M-x tags-query-replace}
  \key{continue last tags search or query-replace}{M-,}
  
  \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}
*************** minibuffer.  Type \kbd{F10} to activate
*** 554,562 ****
--- 557,568 ----
  \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}
*************** minibuffer.  Type \kbd{F10} to activate
*** 565,576 ****
--- 571,585 ----
  \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}
*************** Moving within a node:
*** 592,598 ****
  
  \key{scroll forward}{SPC}
  \key{scroll reverse}{DEL}
! \key{beginning of node}{. {\rm (dot)}}
  
  Moving between nodes:
  
--- 601,607 ----
  
  \key{scroll forward}{SPC}
  \key{scroll reverse}{DEL}
! \key{beginning of node}{b}
  
  Moving between nodes:
  
*************** Other:
*** 630,646 ****
  \key{{\bf start} defining a keyboard macro}{C-x (}
  \key{{\bf end} keyboard macro definition}{C-x )}
  \key{{\bf execute} last-defined keyboard macro}{C-x e}
! \key{append to last keyboard macro}{C-u C-x (}
  \metax{name last keyboard macro}{M-x name-last-kbd-macro}
  \metax{insert Lisp definition in buffer}{M-x insert-kbd-macro}
  
  \section{Commands Dealing with Emacs Lisp}
  
! \key{eval {\bf sexp} before point}{C-x C-e}
  \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}
  
  \section{Simple Customization}
  
--- 639,655 ----
  \key{{\bf start} defining a keyboard macro}{C-x (}
  \key{{\bf end} keyboard macro definition}{C-x )}
  \key{{\bf execute} last-defined keyboard macro}{C-x e}
! \key{record subsequent keyboard input, then append to last keyboard macro}{C-u C-x (}
  \metax{name last keyboard macro}{M-x name-last-kbd-macro}
  \metax{insert Lisp definition in buffer}{M-x insert-kbd-macro}
  
  \section{Commands Dealing with Emacs Lisp}
  
! \key{eval {\bf sexp} before point}{C-x C-e} % sexp?  form?  expression?  S-expression?
  \key{eval current {\bf defun}}{C-M-x}
  \metax{eval {\bf region}}{M-x eval-region}
  \key{read and eval minibuffer}{M-:}
! \metax{load a Lisp library from {\bf load-path}}{M-x load-library}
  
  \section{Simple Customization}
  
*************** An example:
*** 669,675 ****
  \beginexample%
  (defun this-line-to-top-of-window (line)
    "Reposition current line to top of window.
! With ARG, put point on line ARG."
    (interactive "P")
    (recenter (if (null line)
                  0
--- 678,684 ----
  \beginexample%
  (defun this-line-to-top-of-window (line)
    "Reposition current line to top of window.
! With prefix argument LINE, put point on LINE."
    (interactive "P")
    (recenter (if (null line)
                  0
*************** With ARG, put point on line ARG."
*** 677,683 ****
  \endexample
  
  The \kbd{interactive} spec says how to read arguments interactively.
! Type \kbd{C-h f interactive} for more details.
  
  \copyrightnotice
  
--- 686,692 ----
  \endexample
  
  The \kbd{interactive} spec says how to read arguments interactively.
! Type \kbd{C-h f interactive RET} for more details.
  
  \copyrightnotice

diff -cp trunk/etc/ChangeLog.orig trunk/etc/ChangeLog
*** trunk/etc/ChangeLog.orig	2013-03-23 18:14:12.000000000 +0800
--- trunk/etc/ChangeLog	2013-03-29 17:00:51.000000000 +0800
***************
*** 1,3 ****
--- 1,7 ----
+ 2013-03-29  Xue Fuqiao  <[email-masked]>
+ 
+ 	* refcards/refcard.tex: Refine some entries.
+ 
  2013-03-21  Eric Ludlam  <[email-masked]>
  
  	* srecode/ede-autoconf.srt: Change Copyright to FSF.

-- 
Xue Fuqiao
http://www.gnu.org/software/emacs/