[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround e46c455c7d 167/175: Silence byte-compiler wa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround e46c455c7d 167/175: Silence byte-compiler warnings |
Date: |
Mon, 9 Oct 2023 13:01:17 -0400 (EDT) |
branch: elpa/evil-surround
commit e46c455c7d50af1d8b5537d1e2f1a611f1ec73f4
Author: Brian Leung <leungbk@posteo.net>
Commit: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>
Silence byte-compiler warnings
---
evil-surround.el | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/evil-surround.el b/evil-surround.el
index 0c8bfa13b5..2426aa6431 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -168,7 +168,7 @@ function call in prefixed form."
(defun evil-surround-read-tag ()
"Read a XML tag from the minibuffer."
(let* ((input (evil-surround-read-from-minibuffer "<" ""
evil-surround-read-tag-map))
- (match (string-match (concat evil-surround-tag-name-re
"\\(.*?\\)\\([>]*\\)$") input))
+ (_ (string-match (concat evil-surround-tag-name-re
"\\(.*?\\)\\([>]*\\)$") input))
(tag (match-string 1 input))
(rest (match-string 2 input))
(keep-attributes (not (string-match-p ">" input)))
@@ -231,16 +231,19 @@ See also `evil-surround-inner-overlay'."
nil nil t))))))
(defun evil-surround-trim-whitespace-from-range (range &optional regexp)
- "Given an evil-range, trim whitespace around range by shrinking the range
such that it neither begins nor ends with whitespace. Does not modify the
buffer."
+ "Given an evil-range, trim whitespace around range by shrinking
+the range such that it neither begins nor ends with whitespace.
+Does not modify the buffer."
(let ((regexp (or regexp "[ \f\t\n\r\v]")))
(save-excursion
(save-match-data
(goto-char (evil-range-beginning range))
(while (looking-at regexp) (forward-char))
- (evil-set-range-beginning range (point))
- (goto-char (evil-range-end range))
- (while (looking-back regexp) (backward-char))
- (evil-set-range-end range (point))))))
+ (let ((new-beg (point)))
+ (evil-set-range-beginning range new-beg)
+ (goto-char (evil-range-end range))
+ (while (looking-back regexp new-beg) (backward-char))
+ (evil-set-range-end range (point)))))))
(defun evil-surround-inner-overlay (char)
"Return inner overlay for the delimited range represented by CHAR.
- [nongnu] elpa/evil-surround 853b9fdf11 110/175: Add tests for repeat, visual mode, visual line mode, (continued)
- [nongnu] elpa/evil-surround 853b9fdf11 110/175: Add tests for repeat, visual mode, visual line mode, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a92151def9 129/175: Revert "surround-function improvement for lisp modes (#134)", ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 2af81ab3ac 127/175: fix readme on how to add a new surround pair, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7780daa573 169/175: Support multiple-character delimiter deletion, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 897203ca5f 134/175: update readme: copyright years, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7236499c43 148/175: fix typos in the readme, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8449d19d05 158/175: Fix visual screen-line surrounding bug., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 346d4d85fc 150/175: Fix dot repeat with counted motions, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround d210e1fc2c 140/175: main el file: add dots and caps to evil-surround-tag-name-re, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8069f9c2f3 147/175: trying to update travis configuration, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround e46c455c7d 167/175: Silence byte-compiler warnings,
ELPA Syncer <=
- [nongnu] elpa/evil-surround 1a4bc20f15 135/175: add csw, csW, css and csp shortcuts, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 1c34944d8c 149/175: remove emacs 24 and 25 from the build pipeline, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 9e445b7ab1 136/175: main el file: fix version to 1.0.3, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8fad8540c4 172/175: Revert "Revert "Enable lexical binding"", ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround a0ac30158d 113/175: add @edkolev's custom logo, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 3bd73794ee 153/175: Fix yss behavior with visual-line-mode, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 33bb00787a 053/175: Merge pull request #54 from hlissner/fix-esc-surround, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 491e17093b 072/175: Generalize operator surround detection, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 852a7bae12 006/175: when deleting surround with left-bracket (, {.[... etc... trim the space inside the region, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround fd421b573f 032/175: Fix doc for surround delete operator, ELPA Syncer, 2023/10/09