emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/m-buffer 41ca2908a3 032/115: Added documentation for fo


From: ELPA Syncer
Subject: [elpa] externals/m-buffer 41ca2908a3 032/115: Added documentation for four functions.
Date: Tue, 19 Jul 2022 15:58:46 -0400 (EDT)

branch: externals/m-buffer
commit 41ca2908a373f484679803fbb0a679117ed4abeb
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    Added documentation for four functions.
---
 m-buffer.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/m-buffer.el b/m-buffer.el
index d8c5a46368..ef2873cb1e 100644
--- a/m-buffer.el
+++ b/m-buffer.el
@@ -425,12 +425,18 @@ MATCH is of the form BUFFER-OR-WINDOW MATCH-OPTIONS. See
    match :regexp "\\\w+"))
 
 (defun m-buffer-match-empty-line (&rest match)
+  "Returns a list of matches to all empty lines.
+MATCH is of the form BUFFER-OR-WINDOW MATCH-OPTIONS. See
+`m-buffer-match-data' for further details."
   (m-buffer-apply-snoc
    'm-buffer-match-data
    match :regexp "^$"
    :post-match 'm-buffer-post-match-forward-line))
 
 (defun m-buffer-match-non-empty-line (&rest match)
+  "Returns a list of matches to all non-empty lines.
+MATCH is fo the form BUFFER-OR-WINDOW MATCH-OPTIONS. See
+`m-buffer-match-data' for further details."
   (m-buffer-apply-snoc
    'm-buffer-match-data
    match :regexp "^.+$"))
@@ -547,10 +553,16 @@ otherwise use `m-buffer-overlay-face-match'."
    (m-buffer-overlay-match match-data)))
 
 (defun m-buffer-text-property-face (match-data face)
+  "To MATCH-DATA apply FACE. This is for use in buffers which do
+not have `font-lock-mode' enabled; otherwise use
+`m-buffer-text-property-font-lock-face'."
   (m-buffer-put-text-property-match match-data
    'face face))
 
 (defun m-buffer-text-property-font-lock-face (match-data face)
+  "To MATCH-DATA apply FACE. This is for use in buffers which have
+`font-lock-mode' enabled; otherwise use
+`m-buffer-text-property-face'."
   (m-buffer-put-text-property-match match-data
    'font-lock-face face))
 



reply via email to

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