[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mmm-mode 119ec9d0ef 03/17: Fix most docstrings in mmm-c
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mmm-mode 119ec9d0ef 03/17: Fix most docstrings in mmm-class.el |
Date: |
Wed, 21 Feb 2024 09:58:25 -0500 (EST) |
branch: externals/mmm-mode
commit 119ec9d0ef96598bb3ab3852f08c3d5382a62638
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Fix most docstrings in mmm-class.el
The docstrings of mmm-ify and mmm-match region requires more thought.
---
mmm-class.el | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/mmm-class.el b/mmm-class.el
index 638009e92d..09b73769f4 100644
--- a/mmm-class.el
+++ b/mmm-class.el
@@ -26,7 +26,7 @@
;;; Commentary:
;; This file contains variable and function definitions for
-;; manipulating and applying MMM submode classes. See `mmm-vars.el'
+;; manipulating and applying MMM submode classes. See `mmm-vars.el'
;; for variables that list classes.
;;; Code:
@@ -90,8 +90,9 @@ none is specified by CLASS."
(classes &key (start (point-min)) (stop (point-max)) face)
"Apply all submode classes in CLASSES, in order.
All classes are applied regardless of any errors that may occur in
-other classes. If any errors occur, `mmm-apply-classes' exits with an
-error once all classes have been applied."
+other classes. If any errors occur, `mmm-apply-classes' exits with an
+error once all classes have been applied.
+START, STOP, and FACE is passed to `mmm-apply-class' for each class."
(let (invalid-classes)
(dolist (class classes)
(condition-case err
@@ -153,8 +154,8 @@ and interactive history."
&allow-other-keys
)
"Create submode regions from START to STOP according to arguments.
-If CLASSES is supplied, it must be a list of valid CLASSes. Otherwise,
-the rest of the arguments are for an actual class being applied. See
+If CLASSES is supplied, it must be a list of valid CLASSes. Otherwise,
+the rest of the arguments are for an actual class being applied. See
`mmm-classes-alist' for information on what they all mean."
;; Make sure we get the default values in the `all' list.
(setq all (append
@@ -275,8 +276,8 @@ and OK-RESUME if the region is valid."
invalid-resume ok-resume)))))))
(defun mmm-match->point (beginp offset match)
- "Find a point of starting or stopping from the match data. If
-BEGINP, start at \(match-beginning MATCH), else \(match-end MATCH),
+ "Find a point of starting or stopping from the match data.
+If BEGINP, start at \(match-beginning MATCH), else \(match-end MATCH),
and move OFFSET. Handles all values of OFFSET--see `mmm-classes-alist'."
(save-excursion
(goto-char (if beginp
@@ -290,14 +291,14 @@ and move OFFSET. Handles all values of OFFSET--see
`mmm-classes-alist'."
(defun mmm-match-and-verify (pos start stop &optional verify)
"Find first match for POS between point and STOP satisfying VERIFY.
-Return non-nil if a match was found, and set match data. POS can be a
+Return non-nil if a match was found, and set match data. POS can be a
number-or-marker, a regexp, or a function.
-If POS is a number-or-marker, it is used as-is. If it is a string, it
-is searched for as a regexp until VERIFY returns non-nil. If it is a
-function, it is called with argument STOP and must return non-nil iff
-a match is found, and set the match data. Note that VERIFY is ignored
-unless POS is a regexp."
+If POS is a number-or-marker between START and STOP, it is used as-is.
+If it is a string, it is searched for as a regexp until VERIFY returns
+non-nil. If it is a function, it is called with argument STOP and must
+return non-nil if a match is found, and set the match data. Note that
+VERIFY is ignored unless POS is a regexp."
(cond
;; A marker can be used as-is, but only if it's in bounds.
((and (number-or-marker-p pos) (>= pos start) (<= pos stop))
@@ -316,8 +317,8 @@ unless POS is a regexp."
(defun mmm-get-form (form)
"Return the delimiter form specified by FORM.
-If FORM is nil, call `mmm-default-get-form'. If FORM is a string,
-return it. If FORM is a function, call it. If FORM is a list, return
+If FORM is nil, call `mmm-default-get-form'. If FORM is a string,
+return it. If FORM is a function, call it. If FORM is a list, return
its `car' \(usually in this case, FORM is a one-element list
containing a function to be used as the delimiter form."
(cond ((stringp form) form)
@@ -326,6 +327,7 @@ containing a function to be used as the delimiter form."
((listp form) (car form))))
(defun mmm-default-get-form ()
+ "Get the default delimiter form."
(regexp-quote (match-string 0)))
;;}}}
- [elpa] externals/mmm-mode updated (96906747e8 -> fec2640727), ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 649724ef14 13/17: Fix some docstrings in mmm-noweb.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode b4d7de6d5f 11/17: Correct customization type of mmm-mode-prefix-key, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode bf746235ba 10/17: Improve docstrings in mmm-vars.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode dddd6164bc 12/17: Fix some docstrings in mmm-region.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 156a75295e 14/17: Small doc changes to mmm-defaults, -mason and -myghty, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode a5e71976ab 15/17: Enable lexical-binding in all files, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode fec2640727 17/17: Merge pull request #139 from snogge/lexical, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode ce6320ceba 04/17: Fix checkdoc error in mmm-cmds.el docstrings, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode c45140dc16 16/17: Add test to verify mmm-version, variable and function, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 119ec9d0ef 03/17: Fix most docstrings in mmm-class.el,
ELPA Syncer <=
- [elpa] externals/mmm-mode f357670a64 02/17: Add Emacs 29.1 and 29.2 to github CI testing, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 8d0043b6df 07/17: Rewrite mmm-save-keyword(s) to work with lexical-binding t, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 355ab67251 09/17: Use line-beginning-position in mmm-erb-indent-line, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 42a5333b0a 08/17: Clean up comments and docstrings in mmm-mode.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 9b6823c89a 01/17: Update github workflow to use actions/checkout@v4, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode e58756254c 06/17: Don't shadow case-fold-search with mmm-ify argument, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 920fd5dff2 05/17: Rewrite mmm-get-block, ELPA Syncer, 2024/02/21