]> git.eshelyaron.com Git - emacs.git/commitdiff
Doc clarification in abbrev-prefix-mark
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 10 Jul 2019 12:46:05 +0000 (14:46 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 10 Jul 2019 12:50:20 +0000 (14:50 +0200)
* lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is
removed (bug#33382).

lisp/abbrev.el

index 3d0a843e375a1527dfddfef81713800396e78fb4..ad5e75b79870b326e8d1dd1f2cc2f9d0d4105293 100644 (file)
@@ -370,13 +370,16 @@ Expands the abbreviation after defining it."
 
 (defun abbrev-prefix-mark (&optional arg)
   "Mark current point as the beginning of an abbrev.
-Abbrev to be expanded starts here rather than at beginning of word.
-This way, you can expand an abbrev with a prefix: insert the prefix,
-use this command, then insert the abbrev.  This command inserts a
-temporary hyphen after the prefix (until the intended abbrev
-expansion occurs).
-If the prefix is itself an abbrev, this command expands it, unless
-ARG is non-nil.  Interactively, ARG is the prefix argument."
+The abbrev to be expanded starts here rather than at beginning of
+word.  This way, you can expand an abbrev with a prefix: insert
+the prefix, use this command, then insert the abbrev.
+
+This command a hyphen after the prefix, and if the abbrev is
+subsequently expanded, this hyphen will be removed.
+
+If the prefix is itself an abbrev, this command expands it,
+unless ARG is non-nil.  Interactively, ARG is the prefix
+argument."
   (interactive "P")
   (or arg (expand-abbrev))
   (setq abbrev-start-location (point-marker)