branch: externals/cm-mode
commit fbc4167ecce1c1d8a716c5facd5499683240f181
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>
Update docstring of cm-move-into-markup.
---
cm-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cm-mode.el b/cm-mode.el
index 366d3df932..60464864b3 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -462,7 +462,11 @@ delimiter, do not move. Return T if point has moved."
(/= pos (point))))
(defun cm-move-into-markup (type)
- "Make sure point is inside the delimiters of TYPE."
+ "Make sure point is inside the delimiters of TYPE.
+Point is either moved forward if at an opening delimiter or
+backward if at a closing delimiter. When moving backward, point
+is moved past a comment if the change before the comment is of
+TYPE."
(unless (cm-move-past-delim (second (assq type cm-delimiters)))
(if (eq (car (cm-markup-at-point t)) 'cm-comment)
(cm-forward-markup 'cm-comment -1))