aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-10 14:46:05 +0200
committerLars Ingebrigtsen2019-07-10 14:50:20 +0200
commitdfb5282faf2bb52f08428ac60d99afe33d3de9fb (patch)
treec2e9c08efd2d98435c1f01c2101ce54e00168608
parentba59181c41a4685b595200306c6585a004c41e26 (diff)
downloademacs-dfb5282faf2bb52f08428ac60d99afe33d3de9fb.tar.gz
emacs-dfb5282faf2bb52f08428ac60d99afe33d3de9fb.zip
Doc clarification in abbrev-prefix-mark
* lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is removed (bug#33382).
-rw-r--r--lisp/abbrev.el17
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el
index 3d0a843e375..ad5e75b7987 100644
--- a/lisp/abbrev.el
+++ b/lisp/abbrev.el
@@ -370,13 +370,16 @@ Expands the abbreviation after defining it."
370 370
371(defun abbrev-prefix-mark (&optional arg) 371(defun abbrev-prefix-mark (&optional arg)
372 "Mark current point as the beginning of an abbrev. 372 "Mark current point as the beginning of an abbrev.
373Abbrev to be expanded starts here rather than at beginning of word. 373The abbrev to be expanded starts here rather than at beginning of
374This way, you can expand an abbrev with a prefix: insert the prefix, 374word. This way, you can expand an abbrev with a prefix: insert
375use this command, then insert the abbrev. This command inserts a 375the prefix, use this command, then insert the abbrev.
376temporary hyphen after the prefix (until the intended abbrev 376
377expansion occurs). 377This command a hyphen after the prefix, and if the abbrev is
378If the prefix is itself an abbrev, this command expands it, unless 378subsequently expanded, this hyphen will be removed.
379ARG is non-nil. Interactively, ARG is the prefix argument." 379
380If the prefix is itself an abbrev, this command expands it,
381unless ARG is non-nil. Interactively, ARG is the prefix
382argument."
380 (interactive "P") 383 (interactive "P")
381 (or arg (expand-abbrev)) 384 (or arg (expand-abbrev))
382 (setq abbrev-start-location (point-marker) 385 (setq abbrev-start-location (point-marker)