Commit dfb5282f authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Doc clarification in abbrev-prefix-mark

* lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is
removed (bug#33382).
parent ba59181c
Pipeline #2360 passed with stage
in 52 minutes and 58 seconds
...@@ -370,13 +370,16 @@ Expands the abbreviation after defining it." ...@@ -370,13 +370,16 @@ Expands the abbreviation after defining it."
(defun abbrev-prefix-mark (&optional arg) (defun abbrev-prefix-mark (&optional arg)
"Mark current point as the beginning of an abbrev. "Mark current point as the beginning of an abbrev.
Abbrev to be expanded starts here rather than at beginning of word. The abbrev to be expanded starts here rather than at beginning of
This way, you can expand an abbrev with a prefix: insert the prefix, word. This way, you can expand an abbrev with a prefix: insert
use this command, then insert the abbrev. This command inserts a the prefix, use this command, then insert the abbrev.
temporary hyphen after the prefix (until the intended abbrev
expansion occurs). This command a hyphen after the prefix, and if the abbrev is
If the prefix is itself an abbrev, this command expands it, unless subsequently expanded, this hyphen will be removed.
ARG is non-nil. Interactively, ARG is the prefix argument."
If the prefix is itself an abbrev, this command expands it,
unless ARG is non-nil. Interactively, ARG is the prefix
argument."
(interactive "P") (interactive "P")
(or arg (expand-abbrev)) (or arg (expand-abbrev))
(setq abbrev-start-location (point-marker) (setq abbrev-start-location (point-marker)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment