/[emacs]/emacs/man/abbrevs.texi
ViewVC logotype

Diff of /emacs/man/abbrevs.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by rms, Sun Nov 11 01:52:15 2001 UTC revision 1.16 by rms, Thu Jan 3 05:19:26 2002 UTC
# Line 82  Define a word in the buffer as an abbrev Line 82  Define a word in the buffer as an abbrev
82  @item C-x a i l  @item C-x a i l
83  Define a word in the buffer as a mode-specific abbrev  Define a word in the buffer as a mode-specific abbrev
84  (@code{inverse-add-mode-abbrev}).  (@code{inverse-add-mode-abbrev}).
85    @item M-x define-global-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET}
86    Define @var{abbrev} as an abbrev expanding into @var{exp}.
87    @item M-x define-mode-abbrev @key{RET} @var{abbrev} @key{RET} @var{exp} @key{RET}
88    Define @var{abbrev} as a mode-specific abbrev expanding into @var{exp}.
89  @item M-x kill-all-abbrevs  @item M-x kill-all-abbrevs
90  This command discards all abbrev definitions currently in effect,  This command discards all abbrev definitions currently in effect,
91  leaving a blank slate.  leaving a blank slate.
# Line 121  l}.  These commands are called ``inverse Line 125  l}.  These commands are called ``inverse
125  meaning of the two text strings they use (one from the buffer and one  meaning of the two text strings they use (one from the buffer and one
126  read with the minibuffer).  read with the minibuffer).
127    
128    @findex define-mode-abbrev
129    @findex define-global-abbrev
130      You can define an abbrev without inserting either the abbrev or its
131    expansion in the buffer using the command @code{define-global-abbrev}.
132    It reads two arguments--the abbrev, and its expansion.  The command
133    @code{define-mode-abbrev} does likewise for a mode-specific abbrev.
134    
135    To change the definition of an abbrev, just define a new definition.    To change the definition of an abbrev, just define a new definition.
136  When the abbrev has a prior definition, the abbrev definition commands  When the abbrev has a prior definition, the abbrev definition commands
137  ask for confirmation before replacing it.  ask for confirmation before replacing it.

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26