[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master d94ebf7 10/22: Fix some `checkdoc' warnings
From: |
Stefan Monnier |
Subject: |
[elpa] master d94ebf7 10/22: Fix some `checkdoc' warnings |
Date: |
Wed, 3 Aug 2016 14:26:10 +0000 (UTC) |
branch: master
commit d94ebf72a7836f76400e03ca424b74fff4a4cd10
Author: Mitchel Humpherys <address@hidden>
Commit: Mitchel Humpherys <address@hidden>
Fix some `checkdoc' warnings
---
README.md | 14 ++++++--------
diffview.el | 26 +++++++++++---------------
2 files changed, 17 insertions(+), 23 deletions(-)
diff --git a/README.md b/README.md
index 1e8851d..d3297ef 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[![License
GPL3](https://img.shields.io/badge/license-GPL_3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.html)
Render a unified diff (top/bottom) in an easy-to-comprehend side-by-side
-format. This comes in handy for reading patches from mailing lists (or
+format. This comes in handy for reading patches from mailing lists (or
from whencever you might acquire them).
### Installation
@@ -41,19 +41,17 @@ After:<br>
#### `(diffview-current)`
-Parses the content of the current buffer as a diff and opens
- the result in a side-by-side view
+Show current diff buffer in a side-by-side view.
#### `(diffview-region)`
-Parses the content of the current buffer as a diff and opens
- the result in a side-by-side view
+Show current diff region in a side-by-side view.
#### `(diffview-message)`
-Parses the content of the current buffer (assumed to be a
- message (i.e. in `Article` mode)) as a diff and opens the
- result in a side-by-side view
+Show `message-mode` buffer in a side-by-side view.
+
+This is useful for reading patches from mailing lists.
-----
<div style="padding-top:15px;color: #d0d0d0;">
diff --git a/diffview.el b/diffview.el
index 9e149da..874775d 100644
--- a/diffview.el
+++ b/diffview.el
@@ -24,7 +24,7 @@
;; [![License
GPL3](https://img.shields.io/badge/license-GPL_3-green.svg)](http://www.gnu.org/licenses/gpl-3.0.html)
;;
;; Render a unified diff (top/bottom) in an easy-to-comprehend side-by-side
-;; format. This comes in handy for reading patches from mailing lists (or
+;; format. This comes in handy for reading patches from mailing lists (or
;; from whencever you might acquire them).
;;
;;; Installation:
@@ -57,8 +57,7 @@
(require 'message)
(defun diffview--print-all-lines-to-buffer (lines buffer-name)
- "Prints each line in `LINES' to a buffer named `BUFFER-NAME'
- with an intervening \n between each line"
+ "Prints each line in `LINES' to a buffer named `BUFFER-NAME'."
(let ((old-temp-buffer (get-buffer buffer-name)))
;; (with-output-to-temp-buffer buffer-name
(when old-temp-buffer
@@ -72,13 +71,12 @@
(defvar diffview--plus-bufname "*side-by-side-2*")
(defvar diffview--saved-wincfg nil)
(defvar diffview--regexp-is-plus-line "^\\+\\([^+]\\{1\\}\\|$\\)"
- "a + followed by one non + or the end of the line")
+ "A + followed by one non + or the end of the line.")
(defvar diffview--regexp-is-minus-line "^-\\([^-]\\{1\\}\\|$\\)"
- "a - followed by one non - or the end of the line")
+ "A - followed by one non - or the end of the line.")
(defun diffview--view-string (input-string)
- "Parses `INPUT-STRING' as a diff and opens the result in a
-side-by-side view"
+ "Displays `INPUT-STRING' (a diff) in a side-by-side view."
(setq diffview--saved-wincfg (current-window-configuration))
(delete-other-windows)
(let (plus-lines
@@ -153,23 +151,21 @@ side-by-side view"
;;;###autoload
(defun diffview-current ()
- "Parses the content of the current buffer as a diff and opens
- the result in a side-by-side view"
+ "Show current diff buffer in a side-by-side view."
(interactive)
(diffview--view-string (buffer-string)))
;;;###autoload
(defun diffview-region ()
- "Parses the content of the current buffer as a diff and opens
- the result in a side-by-side view"
+ "Show current diff region in a side-by-side view."
(interactive)
(diffview--view-string (buffer-substring (point) (mark))))
;;;###autoload
(defun diffview-message ()
- "Parses the content of the current buffer (assumed to be a
- message (i.e. in `Article' mode)) as a diff and opens the
- result in a side-by-side view"
+ "Show `message-mode' buffer in a side-by-side view.
+
+This is useful for reading patches from mailing lists."
(interactive)
(let (beg end)
(save-excursion
@@ -190,7 +186,7 @@ side-by-side view"
(setq font-lock-defaults '(diff-font-lock-keywords t nil nil nil
(font-lock-multiline . nil))))
(defun diffview--quit ()
- "Quit diffview and clean up diffview buffers"
+ "Quit diffview and clean up diffview buffers."
(interactive)
(delete-other-windows)
(scroll-all-mode 0)
- [elpa] master e321c3d 09/22: Improve clarity of some docs, (continued)
- [elpa] master e321c3d 09/22: Improve clarity of some docs, Stefan Monnier, 2016/08/03
- [elpa] master c762e64 11/22: Use emacs quotes, Stefan Monnier, 2016/08/03
- [elpa] master a156d34 07/22: set up some more reasonable autoloads, Stefan Monnier, 2016/08/03
- [elpa] master dd42c87 14/22: Regenerate README.md (now includes MELPA badge), Stefan Monnier, 2016/08/03
- [elpa] master da412da 15/22: Makefile: Proper local build support, Stefan Monnier, 2016/08/03
- [elpa] master 214ec59 16/22: Regenerate README.md (now includes MELPA stable badge), Stefan Monnier, 2016/08/03
- [elpa] master 32bb19a 20/22: README.md: Re-generate (now includes MELPA stable badge), Stefan Monnier, 2016/08/03
- [elpa] master 031b709 21/22: diffview.el: Add `Maintainer' pseudo-header, Stefan Monnier, 2016/08/03
- [elpa] master 9029356 08/22: Update documentation, Stefan Monnier, 2016/08/03
- [elpa] master d762ee5 05/22: Update some package tags, Stefan Monnier, 2016/08/03
- [elpa] master d94ebf7 10/22: Fix some `checkdoc' warnings,
Stefan Monnier <=
- [elpa] master 9e1ddf5 12/22: Rely on make-readme-markdown for license badge, Stefan Monnier, 2016/08/03
- [elpa] master 1ba9c74 04/22: Add GPLv3 badge, Stefan Monnier, 2016/08/03
- [elpa] master 63f00b4 13/22: Add MELPA installation instructions, Stefan Monnier, 2016/08/03
- [elpa] master 548ad25 19/22: diffview.el: Remove unnecessary html, Stefan Monnier, 2016/08/03
- [elpa] master 4be8d94 17/22: Revert "Regenerate README.md (now includes MELPA stable badge)", Stefan Monnier, 2016/08/03
- [elpa] master 89be8c1 01/22: initial commit, Stefan Monnier, 2016/08/03
- [elpa] master cb707b2 06/22: Fix some warnings from flycheck-package.el, Stefan Monnier, 2016/08/03
- [elpa] master e30def7 22/22: Add 'packages/diffview/' from commit '031b70913e755c5e55222680f80185032a7d1728', Stefan Monnier, 2016/08/03
- [elpa] master 471dc36 18/22: diffview.el: Version bump (1.0), Stefan Monnier, 2016/08/03