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

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

[elpa] externals/org 0c4358b4ac 2/2: lisp/ox-html.el: Fix some checkdoc


From: ELPA Syncer
Subject: [elpa] externals/org 0c4358b4ac 2/2: lisp/ox-html.el: Fix some checkdoc warnings
Date: Mon, 11 Dec 2023 07:05:07 -0500 (EST)

branch: externals/org
commit 0c4358b4acde2f08d9eb52e07a6b74dc9bac519f
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    lisp/ox-html.el: Fix some checkdoc warnings
    
    * lisp/ox-html.el (org-html-format-list-item): Document some function
    arguments.
    (org-html--latex-environment-numbered-p): Suppress checkdoc heuristics.
    (org-html-image-link-filter): Add docstring.
    (org-html-table--table.el-table):
    (org-html-final-function):  Document the function arguments.
---
 lisp/ox-html.el | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 7a494e9d50..61e4648d9b 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2910,7 +2910,10 @@ INFO is a plist holding contextual information.  See
 (defun org-html-format-list-item (contents type checkbox info
                                           &optional term-counter-id
                                           headline)
-  "Format a list item into HTML."
+  "Format a list item into HTML.
+CONTENTS is the item contents.  TYPE is one of symbols `ordered',
+`unordered', or `descriptive'.  CHECKBOX checkbox type is nil or one of
+symbols `on', `off', or `trans'.   INFO is the info plist."
   (let ((class (if checkbox
                   (format " class=\"%s\""
                           (symbol-name checkbox)) ""))
@@ -3051,7 +3054,7 @@ used as a predicate for `org-export-get-ordinal' or a 
value to
                   (org-element-property :value element)))
 
 (defun org-html--latex-environment-numbered-p (element)
-  "Non-nil when ELEMENT contains a numbered LaTeX math environment.
+  "Non-nil when ELEMENT is a numbered LaTeX math environment.
 Starred and \"displaymath\" environments are not numbered."
   (not (string-match-p "\\`[ \t]*\\\\begin{\\(.*\\*\\|displaymath\\)}"
                       (org-element-property :value element))))
@@ -3133,6 +3136,9 @@ CONTENTS is nil.  INFO is a plist holding contextual 
information."
 ;;;; Link
 
 (defun org-html-image-link-filter (data _backend info)
+"Process image links that are inside descriptions.
+DATA is the parse tree.  INFO is and info plist.
+See `org-export-insert-image-links' for more details."
   (org-export-insert-image-links data info org-html-inline-image-rules))
 
 (defun org-html-inline-image-p (link info)
@@ -3793,7 +3799,7 @@ INFO is a plist used as a communication channel."
       (cdr (org-element-contents table-row)))))
 
 (defun org-html-table--table.el-table (table _info)
-  "Format table.el tables into HTML.
+  "Format table.el TABLE into HTML.
 INFO is a plist used as a communication channel."
   (when (eq (org-element-property :type table) 'table.el)
     (require 'table)
@@ -3923,7 +3929,8 @@ contextual information."
 ;;; Filter Functions
 
 (defun org-html-final-function (contents _backend info)
-  "Filter to indent the HTML and convert HTML entities."
+  "Filter to indent the HTML and convert HTML entities.
+CONTENTS is the exported HTML code.  INFO is the info plist."
   (with-temp-buffer
     (insert contents)
     (set-auto-mode t)



reply via email to

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