[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lorem-ipsum 4c7a9df33e 29/30: Fix some minor stylistic iss
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/lorem-ipsum 4c7a9df33e 29/30: Fix some minor stylistic issues |
Date: |
Sun, 11 Dec 2022 20:59:24 -0500 (EST) |
branch: elpa/lorem-ipsum
commit 4c7a9df33e80a82999df59a8b47ace51d762e579
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Joe Schafer <joe.schafer@delta46.us>
Fix some minor stylistic issues
---
lorem-ipsum.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/lorem-ipsum.el b/lorem-ipsum.el
index 255b8b8bbe..362d0ed82b 100644
--- a/lorem-ipsum.el
+++ b/lorem-ipsum.el
@@ -166,14 +166,15 @@
"Insert lorem ipsum paragraphs into buffer.
If NUM is non-nil, insert NUM paragraphs."
(interactive "p")
- (if (not num)(setq num 1))
- (if (> num 0)
- (progn
- (insert (concat
- (mapconcat 'identity
- (nth (random (length lorem-ipsum-text))
- lorem-ipsum-text)
lorem-ipsum-sentence-separator) lorem-ipsum-paragraph-separator))
- (lorem-ipsum-insert-paragraphs (- num 1)))))
+ (if (not num) (setq num 1))
+ (when (> num 0)
+ (insert (concat
+ (mapconcat #'identity
+ (nth (random (length lorem-ipsum-text))
+ lorem-ipsum-text)
+ lorem-ipsum-sentence-separator)
+ lorem-ipsum-paragraph-separator))
+ (lorem-ipsum-insert-paragraphs (- num 1))))
;;;###autoload
(defalias 'Lorem-ipsum-insert-paragraphs 'lorem-ipsum-insert-paragraphs)
@@ -183,13 +184,12 @@ If NUM is non-nil, insert NUM paragraphs."
"Insert lorem ipsum sentences into buffer.
If NUM is non-nil, insert NUM sentences."
(interactive "p")
- (if (not num)(setq num 1))
- (if (> num 0)
- (progn
- (let ((para
- (nth (random (length lorem-ipsum-text)) lorem-ipsum-text)))
- (insert (concat (nth (random (length para)) para)
lorem-ipsum-sentence-separator)))
- (lorem-ipsum-insert-sentences (- num 1)))))
+ (if (not num) (setq num 1))
+ (when (> num 0)
+ (let ((para
+ (nth (random (length lorem-ipsum-text)) lorem-ipsum-text)))
+ (insert (concat (nth (random (length para)) para)
lorem-ipsum-sentence-separator)))
+ (lorem-ipsum-insert-sentences (- num 1))))
;;;###autoload
(defalias 'Lorem-ipsum-insert-sentences 'lorem-ipsum-insert-sentences)
@@ -199,7 +199,7 @@ If NUM is non-nil, insert NUM sentences."
"Insert lorem ipsum list items into buffer.
If NUM is non-nil, insert NUM list items."
(interactive "p")
- (if (not num)(setq num 1))
+ (if (not num) (setq num 1))
(when (> num 0)
(insert lorem-ipsum-list-beginning)
(dotimes (_ num)
- [nongnu] elpa/lorem-ipsum a19b5372ff 14/30: fix lonely paren, (continued)
- [nongnu] elpa/lorem-ipsum a19b5372ff 14/30: fix lonely paren, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum c287072c46 17/30: fix table formatting, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 9ee134c149 19/30: expand on manual installation, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum da75c155da 26/30: Merge pull request #5 from nja/master, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 590301d2c3 27/30: Fix some minor packaging issues and warnings, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 7b0ff165d7 15/30: remove errant newline, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 5c5058ffff 18/30: put key sequences in code blocks, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 4b39f6fed4 24/30: Merge pull request #2 from peterwvj/patch-1, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 63e5e5f21c 30/30: Bump version to 0.3, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 5d35808d77 08/30: add autoload cookies to entry functions, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 4c7a9df33e 29/30: Fix some minor stylistic issues,
ELPA Syncer <=