[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles fd85719817 089/225: Improve doc strings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles fd85719817 089/225: Improve doc strings |
Date: |
Wed, 12 Jan 2022 08:58:57 -0500 (EST) |
branch: elpa/evil-goggles
commit fd85719817d66e68603a45455c6de7d89f2946da
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Improve doc strings
---
evil-goggles.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/evil-goggles.el b/evil-goggles.el
index 71ea46bbbe..58fed0b313 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -237,7 +237,7 @@ This variable must be set before `evil-goggles-mode' is
enabled"
"Advice for function `undo-tree-undo` and function `undo-tree-redo`.
ORIG-FUN is the original function.
-ARG are the arguments of the original function."
+ARG is the arguments of the original function."
(unwind-protect
(progn
(advice-add 'primitive-undo :around
'evil-goggles--primitive-undo-advice)
@@ -245,6 +245,10 @@ ARG are the arguments of the original function."
(advice-remove 'primitive-undo 'evil-goggles--primitive-undo-advice)))
(defun evil-goggles--primitive-undo-advice (orig-fun n list)
+ "Advice for function `primitive-undo`.
+
+ORIG-FUN is the original function.
+N and LIST are the arguments of the original function."
(let ((undo-item (evil-goggles--get-undo-item list)))
;; show hint on the text which will be removed before undo/redo removes it
@@ -269,8 +273,11 @@ ARG are the arguments of the original function."
(when (eq 1 (length processed-list))
(car processed-list))))
-(defun evil-goggles--undo-elt (elt)
- (pcase elt
+(defun evil-goggles--undo-elt (undo-elt)
+ "Process UNDO-ELT.
+
+Return a list: either ('text-added beg end) or ('text-removed beg end)"
+ (pcase undo-elt
;; (BEG . END) means text added
(`(,(and beg (pred integerp)) . ,(and end (pred integerp)))
`(text-added ,beg ,end))
- [nongnu] elpa/evil-goggles 788c73d505 041/225: Make lighter configurable, (continued)
- [nongnu] elpa/evil-goggles 788c73d505 041/225: Make lighter configurable, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 97498ef1ba 050/225: Clarify package should be on Melpa, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles bf6f836609 056/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 10512f5b3b 054/225: Check evil-mode is on with bound-and-true-p, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ae77a5c6f0 067/225: Replace the boilerplate in evil-goggles-faces.el with a macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0f6254f548 070/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 902270eea8 084/225: Show a vertical visual hint for vertical text objects., ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 879114abea 085/225: Don't show the overlay when evil-mc is displaying multiple fake cursors, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 0c713e7462 086/225: Add experimental support for undo/redo, off by default, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles fec8dfd7b5 088/225: Simplify undo/redo checks, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles fd85719817 089/225: Improve doc strings,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles 0585f4d657 097/225: Try to avoid Travis seg-faults by running emacs in batch mode, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 142e0a9f2b 105/225: Remove unused option, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles ee7fafb858 107/225: Remove debugs, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5404dcfaf8 106/225: Don't quote inherited faces so face-background works, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 13fd7e348c 110/225: Disable pulsing by default, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 49c1318098 113/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6bf281c788 117/225: Simplify macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 9f4a9dec5a 122/225: Fix comment, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 04b93b8564 157/225: Use alternative pulse duration calculation, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 79a25e4da1 163/225: make compile: use dolist instead of mapc, ELPA Syncer, 2022/01/12