emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master dfb5282: Doc clarification in abbrev-prefix-mark


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master dfb5282: Doc clarification in abbrev-prefix-mark
Date: Wed, 10 Jul 2019 08:50:51 -0400 (EDT)

branch: master
commit dfb5282faf2bb52f08428ac60d99afe33d3de9fb
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Doc clarification in abbrev-prefix-mark
    
    * lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is
    removed (bug#33382).
---
 lisp/abbrev.el | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 3d0a843..ad5e75b 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]