[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux 3e03d72 049/112: Don't use dash.el function (#34)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux 3e03d72 049/112: Don't use dash.el function (#34) |
Date: |
Wed, 11 Aug 2021 09:57:51 -0400 (EDT) |
branch: elpa/crux
commit 3e03d7272f99939eb669c59f5b8843912e1e49cf
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>
Don't use dash.el function (#34)
---
crux.el | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/crux.el b/crux.el
index 157b07b..ed3e306 100644
--- a/crux.el
+++ b/crux.el
@@ -234,12 +234,11 @@ point reaches the beginning or end of the buffer, stop
there."
(pcase-let* ((origin (point))
(`(,beg . ,end) (crux-get-positions-of-line-or-region))
(region (buffer-substring-no-properties beg end)))
- (-dotimes arg
- (lambda (n)
- (goto-char end)
- (newline)
- (insert region)
- (setq end (point))))
+ (dotimes (_i arg)
+ (goto-char end)
+ (newline)
+ (insert region)
+ (setq end (point)))
(goto-char (+ origin (* (length region) arg) arg))))
(defun crux-duplicate-and-comment-current-line-or-region (arg)
@@ -252,12 +251,11 @@ point reaches the beginning or end of the buffer, stop
there."
(region (buffer-substring-no-properties beg end)))
(comment-or-uncomment-region beg end)
(setq end (line-end-position))
- (-dotimes arg
- (lambda (n)
- (goto-char end)
- (newline)
- (insert region)
- (setq end (point))))
+ (dotimes (_ arg)
+ (goto-char end)
+ (newline)
+ (insert region)
+ (setq end (point)))
(goto-char (+ origin (* (length region) arg) arg))))
(defun crux-rename-file-and-buffer ()
- [nongnu] elpa/crux 2cdf266 069/112: Insert literal s-exp instead of printing in crux-eval-and-replace (#50), (continued)
- [nongnu] elpa/crux 2cdf266 069/112: Insert literal s-exp instead of printing in crux-eval-and-replace (#50), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 2b4bf62 074/112: Give crux group to crux-reopen-as-root-mode, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 772123a 081/112: Support using any shell creating function with crux-visit-term-buffer, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux b401f45 050/112: [Fix #35] Replace a deprecated function, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux ad42bcf 053/112: Support make `crux-cleanup-buffer-or-region` support makefiles, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux e3c9714 055/112: Make crux-move-beginning-of-line function mode aware (#45), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 1e591c5 031/112: Merge pull request #16 from jiegec/master, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux ca62859 038/112: Merge pull request #22 from dgtized/fix-tranpose-typo, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux fde9d4b 044/112: Fix malformed header line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 5b3c815 047/112: Release 0.3, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3e03d72 049/112: Don't use dash.el function (#34),
ELPA Syncer <=
- [nongnu] elpa/crux b60d9f4 051/112: Fix a compilation warning, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 54cc9b8 056/112: Fix typo in crux-top-join-line, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 11096b9 058/112: Fix typo in keybindings (#47), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux cedec52 063/112: Mark crux-recentf-ido-find-file as obsolete, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 66954bf 022/112: Mention crux-indent-defun, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3042f6f 029/112: Add some contribution guidelines, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 225b5e3 042/112: Merge pull request #29 from Wilfred/rename_file_and_buffer_tweaks, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6ae09d0 045/112: Add functions on duplicate current line or region (#31), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 4302357 052/112: Make crux-visit-term-buffer ask to restart dead process (#36), ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 2e16b82 087/112: Rework `move-to-mode-line-start` to add extensibility (#71), ELPA Syncer, 2021/08/11