[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround a92151def9 129/175: Revert "surround-functio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround a92151def9 129/175: Revert "surround-function improvement for lisp modes (#134)" |
Date: |
Mon, 9 Oct 2023 13:01:08 -0400 (EDT) |
branch: elpa/evil-surround
commit a92151def9db892b4eaef687d1a7fbe5b97cc760
Author: Filipe Correa Lima da Silva <filipe.silva@bcb.gov.br>
Commit: Filipe Correa Lima da Silva <filipe.silva@bcb.gov.br>
Revert "surround-function improvement for lisp modes (#134)"
This reverts commit 5a20c9757eff64e1567d313eb254126aef2bf3b2.
---
evil-surround.el | 35 +++--------------------------------
test/evil-surround-test.el | 13 +------------
2 files changed, 4 insertions(+), 44 deletions(-)
diff --git a/evil-surround.el b/evil-surround.el
index 3478bd1175..fbcaee7203 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -76,34 +76,6 @@ This only affects inserting pairs, not deleting or changing
them."
(function :tag "Function"))))
(make-variable-buffer-local 'evil-surround-pairs-alist)
-(defcustom evil-surround-lisp-modes '(
- cider-repl-mode
- clojure-mode
- clojurec-mode
- clojurescript-mode
- clojurex-mode
- common-lisp-mode
- emacs-lisp-mode
- eshell-mode
- geiser-repl-mode
- inf-clojure-mode
- inferior-emacs-lisp-mode
- inferior-lisp-mode
- inferior-scheme-mode
- lisp-interaction-mode
- lisp-mode
- monroe-mode
- racket-mode
- racket-repl-mode
- scheme-interaction-mode
- scheme-mode
- slime-repl-mode
- stumpwm-mode
- )
- "List of Lisp-related modes."
- :type '(repeat symbol)
- :group 'evil-surround)
-
(defcustom evil-surround-operator-alist
'((evil-change . change)
(evil-delete . delete))
@@ -133,9 +105,8 @@ Each item is of the form (OPERATOR . OPERATION)."
(defun evil-surround-function ()
"Read a functionname from the minibuffer and wrap selection in function call"
(let ((fname (evil-surround-read-from-minibuffer "" "")))
- (cons (format (if (member major-mode evil-surround-lisp-modes)
- "(%s " "%s(")
- (or fname "")) ")")))
+ (cons (format "%s(" (or fname ""))
+ ")")))
(defun evil-surround-read-tag ()
"Read a XML tag from the minibuffer."
@@ -186,7 +157,7 @@ See also `evil-surround-inner-overlay'."
(while (looking-at regexp) (forward-char))
(evil-set-range-beginning range (point))
(goto-char (evil-range-end range))
- (while (looking-back regexp nil) (backward-char))
+ (while (looking-back regexp) (backward-char))
(evil-set-range-end range (point))))))
(defun evil-surround-inner-overlay (char)
diff --git a/test/evil-surround-test.el b/test/evil-surround-test.el
index ae425ab33f..120bac5bb0 100644
--- a/test/evil-surround-test.el
+++ b/test/evil-surround-test.el
@@ -55,21 +55,10 @@
:visual-end nil
"argument1 argument2"
(turn-on-evil-surround-mode)
- (c-mode)
("ysiwffunction" [return])
"function(argument1) argument2"
("W.")
- "function(argument1) function(argument2)")
- (evil-test-buffer
- :visual-start nil
- :visual-end nil
- "argument1 argument2"
- (turn-on-evil-surround-mode)
- (emacs-lisp-mode)
- ("ysiwffunction" [return])
- "(function argument1) argument2"
- ("$.")
- "(function argument1) (function argument2)"))
+ "function(argument1) function(argument2)"))
(ert-info ("even more examples from readme: tag surrounding with dot repeat")
(evil-test-buffer
:visual-start nil
- [nongnu] elpa/evil-surround 28466957f9 044/175: Update README.md, (continued)
- [nongnu] elpa/evil-surround 28466957f9 044/175: Update README.md, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 9508236d8e 052/175: Merge branch 'fix-esc-surround' of github.com:hlissner/evil-surround into fix-esc-surround, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 430c81f2a1 071/175: Fix #71, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8c03039e0e 073/175: Merge pull request #73 from hlissner/linewise-surround-fix, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 277759d894 074/175: Fix repeat action (.) for ys and yS operators., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround c99ca440df 057/175: I changed all references of "surround-pairs-alist" to, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 3812140e11 086/175: Merge pull request #83 from wbolster/use-explicit-autoload-definitions, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 00f70acfff 083/175: Merge pull request #81 from wbolster/read-keys-with-translation, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround f448455313 097/175: add credits to Tim Harper, ELPA Syncer, 2023/10/09
- [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 <=
- [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, 2023/10/09
- [nongnu] elpa/evil-surround 1a4bc20f15 135/175: add csw, csW, css and csp shortcuts, ELPA Syncer, 2023/10/09