]> git.eshelyaron.com Git - emacs.git/commitdiff
Document the recent add-global-abbrev change
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 11 Jul 2022 13:38:59 +0000 (15:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 11 Jul 2022 13:38:59 +0000 (15:38 +0200)
* doc/emacs/abbrevs.texi (Defining Abbrevs): Document that you can
use the active region.

doc/emacs/abbrevs.texi

index 07f66ec10ace8f3aaf7795cb40782c5d248b843d..77f40c7df2d14756dc2493c5461b462036b827de 100644 (file)
@@ -106,8 +106,10 @@ taken as the expansion.  For example, to define the abbrev @samp{foo} as
 mentioned above, insert the text @samp{find outer otter} and then type
 @kbd{C-u 3 C-x a g f o o @key{RET}}.
 
-  An argument of zero to @kbd{C-x a g} means to use the contents of the
-region as the expansion of the abbrev being defined.
+  If you're using @code{transient-mark-mode} (which is the default),
+the active region will be used as the expansion of the abbrev being
+defined.  If not, an argument of zero to @kbd{C-x a g} means to use
+the contents of the region.
 
 @kindex C-x a l
 @findex add-mode-abbrev