[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lorem-ipsum 7268e111f9 25/30: Insert list beginning
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/lorem-ipsum 7268e111f9 25/30: Insert list beginning |
Date: |
Sun, 11 Dec 2022 20:59:23 -0500 (EST) |
branch: elpa/lorem-ipsum
commit 7268e111f9d5b65d613247030ab5b5538d4f5280
Author: Johan Andersson <nilsjohanandersson@gmail.com>
Commit: Johan Andersson <nilsjohanandersson@gmail.com>
Insert list beginning
---
lorem-ipsum.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/lorem-ipsum.el b/lorem-ipsum.el
index 50eeb3a73a..d8a347a30c 100644
--- a/lorem-ipsum.el
+++ b/lorem-ipsum.el
@@ -197,13 +197,13 @@ If NUM is non-nil, insert NUM sentences."
If NUM is non-nil, insert NUM list items."
(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 lorem-ipsum-list-bullet
- (nth (random (length para)) para)
- lorem-ipsum-list-item-end)))
- (lorem-ipsum-insert-list (- num 1)))
+ (when (> num 0)
+ (insert lorem-ipsum-list-beginning)
+ (dotimes (i num)
+ (let ((para (nth (random (length lorem-ipsum-text)) lorem-ipsum-text)))
+ (insert (concat lorem-ipsum-list-bullet
+ (nth (random (length para)) para)
+ lorem-ipsum-list-item-end))))
(insert lorem-ipsum-list-end)))
;;;###autoload
- [nongnu] elpa/lorem-ipsum a2a45dd401 06/30: Merge pull request #1 from jschaf/tweaks, (continued)
- [nongnu] elpa/lorem-ipsum a2a45dd401 06/30: Merge pull request #1 from jschaf/tweaks, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum cc7f00cfa5 09/30: add convenience keyword, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 7416d71dfd 11/30: add group and default keybindings, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum bfcb7cd50a 04/30: add README.md, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum e265ac064a 12/30: add interactive to lorem-ipsum-use-default-bindings, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum a1d1a63b6d 13/30: add commentary, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum db7e5433e1 21/30: add package version and additional commentary, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 893a275057 22/30: move special thanks below package metadata, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 57682a5d6b 23/30: Add MELPA installation instructions, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 5857686989 20/30: change Lorem to lorem, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 7268e111f9 25/30: Insert list beginning,
ELPA Syncer <=
- [nongnu] elpa/lorem-ipsum 861e29b034 28/30: Use lexical-binding, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 3d0152632d 16/30: add detail to README.md, ELPA Syncer, 2022/12/11
- [nongnu] elpa/lorem-ipsum 2242006bd0 10/30: fix provide symbol to Lorem-ipsum, ELPA Syncer, 2022/12/11
- [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