[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-mime 3974bd4190 093/118: make checkdoc happy
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-mime 3974bd4190 093/118: make checkdoc happy |
Date: |
Wed, 5 Jan 2022 07:58:49 -0500 (EST) |
branch: elpa/org-mime
commit 3974bd41902a810d18a787e49f07cddd7849c693
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
make checkdoc happy
---
README.org | 5 ++---
org-mime.el | 42 ++++++++++++++++++++++--------------------
2 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/README.org b/README.org
index 66890a1f89..8b4244d00f 100644
--- a/README.org
+++ b/README.org
@@ -1,9 +1,8 @@
-* org-mime v0.2.0
-
+* org-mime
[[https://travis-ci.org/org-mime/org-mime][https://travis-ci.org/org-mime/org-mime.svg?branch=master]]
[[http://melpa.org/#/org-mime][file:http://melpa.org/packages/org-mime-badge.svg]]
[[http://stable.melpa.org/#/org-mime][file:http://stable.melpa.org/packages/org-mime-badge.svg]]
-org-mime can be used to send HTML email using Org-mode HTML export.
+This program sends HTML email using Org-mode HTML export.
This approximates a WYSiWYG HTML mail editor from within Emacs, and can be
useful for sending tables, fontified source code, and inline images in email.
diff --git a/org-mime.el b/org-mime.el
index f2f29761dc..45c3404a02 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -6,7 +6,7 @@
;; Maintainer: Chen Bin (redguardtoo)
;; Keywords: mime, mail, email, html
;; Homepage: http://github.com/org-mime/org-mime
-;; Version: 0.2.0
+;; Version: 0.2.1
;; Package-Requires: ((emacs "25.1") (cl-lib "0.5"))
;; This file is not part of GNU Emacs.
@@ -42,7 +42,7 @@
;; encoding.
;;
;; `org-mime-org-subtree-htmlize' is similar to `org-mime-org-buffer-htmlize'
-;; but works on current subtree. It can read following subtree properties:
+;; but works on current subtree. It can read following subtree properties:
;; MAIL_SUBJECT, MAIL_TO, MAIL_FROM, MAIL_CC, and MAIL_BCC.
;;
;; Here is the sample of a subtree:
@@ -61,13 +61,13 @@
;; :with-author nil
;; :with-toc nil))
;;
-;; Or just setup your export options in the org buffer/subtree. These are
+;; Or just setup your export options in the org buffer/subtree. These are
;; overridden by `org-mime-export-options' when it is non-nil.
;;
;;
;; Quick start:
;; Write a message in message-mode, make sure the mail body follows
-;; org format. Run `org-mime-edit-mail-in-org-mode' to edit mail
+;; org format. Run `org-mime-edit-mail-in-org-mode' to edit mail
;; in a special edit with `org-mode'.
;; Run `org-mime-htmlize' to convert the plain text mail to html mail.
;; Run `org-mime-revert-to-plain-text-mail' if you want to restore to
@@ -91,7 +91,7 @@
;; 1. In order to embed images into your mail, use the syntax below,
;; [[/full/path/to/your.jpg]]
;;
-;; 2. It's easy to add your own emphasis markup. For example, to render text
+;; 2. It's easy to add your own emphasis markup. For example, to render text
;; between "@" in a red color, you can add a function to `org-mime-html-hook':
;;
;; (add-hook 'org-mime-html-hook
@@ -110,6 +110,8 @@
;; The solution is patching org-mode,
;; https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00016.html
;;
+;; 5. See https://github.com/org-mime/org-mime for more tips
+;;
;;; Code:
(require 'cl-lib)
@@ -141,7 +143,7 @@ And ensure first line isn't assumed to be a title line."
(defcustom org-mime-export-ascii nil
"ASCII export options for text/plain.
-Default (nil) selects the original org-mode file."
+Default (nil) selects the original org file."
:group 'org-mime
:type '(choice 'ascii 'latin1 'utf-8))
@@ -211,7 +213,7 @@ buffer holding the text to be exported.")
(org-export--get-inbuffer-options))))))
(defun org-mime-current-line ()
- "Get current line"
+ "Get current line."
(buffer-substring-no-properties (line-beginning-position)
(line-end-position)))
@@ -319,7 +321,7 @@ HTML is the body of the message."
(buffer-substring (point-min) (point-max)))))
(defun org-mime-multipart (plain html &optional images)
- "Markup a multipart/alternative with HTML alternatives.
+ "Markup PLAIN body a multipart/alternative with HTML alternatives.
If html portion of message includes IMAGES they are wrapped in
multipart/related part."
(cl-case org-mime-library
(mml (concat "<#multipart type=alternative>\n<#part type=text/plain>\n"
@@ -374,7 +376,7 @@ CURRENT-FILE is used to calculate full path of images."
;; Catch non-existent files here. Otherwise users get an error on
sending.
(unless (file-exists-p path)
- (user-error "path: %s does not exist" path))
+ (user-error "Path: %s does not exist" path))
;; Do it
(add-to-list 'html-images
@@ -399,7 +401,7 @@ CURRENT-FILE is used to calculate full path of images."
nil)))
(defun org-mime-insert-html-content (plain file html opts)
- "Insert HTML content."
+ "Insert PLAIN into FILE with HTML content and OPTS."
(let* ((files (org-mime-extract-non-image-files))
;; dvipng for inline latex because MathJax doesn't work in mail
;; Also @see https://github.com/org-mime/org-mime/issues/16
@@ -583,15 +585,16 @@ The cursor ends in the TO field."
"Get Org major version."
(string-to-number (car (split-string (org-release) "\\."))))
-(defun org-mime-attr (p)
- (org-entry-get nil p org-mime-use-property-inheritance))
+(defun org-mime-attr (property)
+ "Get org mime PROPERTY."
+ (org-entry-get nil property org-mime-use-property-inheritance))
;;;###autoload
(defun org-mime-org-subtree-htmlize (&optional htmlize-first-level)
- "Create an email buffer of the current subtree. If HTMLIZE-FIRST-LEVEL is
-not nil, the first level subtree which containing current subtree is htmlized.
+ "Create an email buffer from current subtree.
+If HTMLIZE-FIRST-LEVEL is t, first level subtree of current node is htmlized.
-Following headline properties can determine the mail headers,
+Following headline properties can determine the mail headers.
* subtree heading
:PROPERTIES:
:MAIL_SUBJECT: mail title
@@ -599,8 +602,7 @@ Following headline properties can determine the mail
headers,
:MAIL_CC: person2@gmail.com
:MAIL_BCC: person3@gmail.com
:MAIL_FROM: sender@gmail.com
- :END:
-"
+ :END:"
(interactive "P")
(save-excursion
(org-back-to-heading)
@@ -763,7 +765,7 @@ Following headline properties can determine the mail
headers,
(org-mime-src-mode))))))
(defun org-mime-revert-to-plain-text-mail ()
- "Revert mail body to plain text "
+ "Revert mail body to plain text."
(interactive)
(let* ((txt-sep "<#part type=text/plain")
(html-sep "<#part type=text/html>")
@@ -789,14 +791,14 @@ Following headline properties can determine the mail
headers,
(message "Can not find plain text mail.")))))
(defun org-mime-confirm-when-no-multipart ()
- "Prompts whether to send email if the buffer does not seem to be html-ized"
+ "Prompts whether to send email if the buffer is not html-ized."
(let ((found-multipart (save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(search-forward "<#multipart type=alternative>"
nil t)))))
(when (and (not found-multipart)
- (not (y-or-n-p "org-mime-htmlize not called; send anyway?")))
+ (not (y-or-n-p "It seems `org-mime-htmlize' is NOT called; send
anyway? ")))
(setq quit-flag t))))
- [nongnu] elpa/org-mime 11965c407f 055/118: rewrite beautify function, (continued)
- [nongnu] elpa/org-mime 11965c407f 055/118: rewrite beautify function, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime cf7dbea171 054/118: rename cleanup function to match beautify user option, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 53e0c8141b 058/118: one-line fix for klipse errors in org-mime, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime baa6cde22f 057/118: Merge pull request #25 from tmurph/blockquote-parser, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 1b516d604a 056/118: remove unnecessary dependency, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 817744f3b1 062/118: remove plain text body, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 4bd5d55ba9 071/118: fixed logic, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime dd9dac74cc 073/118: doc on html export, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime d827dbfb97 077/118: Add option to export ASCII for text/plain section, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 3596bbfe10 079/118: Fix: #36 Add ASCII export for org-mime-htmlize, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 3974bd4190 093/118: make checkdoc happy,
ELPA Syncer <=
- [nongnu] elpa/org-mime b47811562b 099/118: Merge pull request #52 from tomheon/fix-gmail-quoting, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 4580e345cb 102/118: add emacs 27 ci, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 0caaf273e7 011/118: Use a plain ASCII export for the text part, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 62791db188 033/118: beautify quoted mail properly, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 7a6dae2494 039/118: Lisp error: (error "Too many arguments") – should be defcustom, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime b9def25bf4 043/118: Edit docstrings for checkdoc compatibility., ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 6593522166 051/118: Fix: #22, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime ea7a470872 061/118: add badge, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 8de4bb693d 064/118: image could be nil, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime f8eac8ccde 066/118: restore plain text mail, ELPA Syncer, 2022/01/05