@@ -1830,7 +1830,7 @@ the alias in the project."
1830
1830
(let ((short (thread-last (buffer-substring-no-properties
1831
1831
(cljr--point-after 'paredit-backward )
1832
1832
(1- (point )))
1833
- (s-chop -prefix " ::" ))))
1833
+ (string-remove -prefix " ::" ))))
1834
1834
(unless (or (cljr--resolve-alias short)
1835
1835
(cljr--js-alias-p short))
1836
1836
(if-let ((aliases (ignore-errors (cljr--get-aliases-from-middleware)))
@@ -1896,8 +1896,8 @@ form."
1896
1896
1897
1897
(defun cljr--excluded-from-project-clean-p (filename )
1898
1898
(member (s-with filename
1899
- (s-chop -prefix (cljr--project-dir))
1900
- (s-chop -prefix " /" ))
1899
+ (string-remove -prefix (cljr--project-dir))
1900
+ (string-remove -prefix " /" ))
1901
1901
cljr-project-clean-exceptions))
1902
1902
1903
1903
;;;### autoload
@@ -1948,7 +1948,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-project-clean"
1948
1948
" Strips metadata and comments"
1949
1949
(with-temp-buffer
1950
1950
(let ((names (list )))
1951
- (insert (thread-last deps (s-chop -prefix " [" ) (s-chop -suffix " ]" )))
1951
+ (insert (thread-last deps (string-remove -prefix " [" ) (string-remove -suffix " ]" )))
1952
1952
(goto-char (point-min ))
1953
1953
(while (not (cljr--empty-buffer-p))
1954
1954
(push (cljr--extract-next-dependency-name) names))
@@ -2026,8 +2026,8 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-sort-project-dep
2026
2026
(cljr--point-after 'paredit-forward ))
2027
2027
cljr--get-sorted-dependency-names
2028
2028
(cljr--sort-dependency-vectors (thread-last (clojure-delete-and-extract-sexp)
2029
- (s-chop -prefix " [" )
2030
- (s-chop -suffix " ]" )))
2029
+ (string-remove -prefix " [" )
2030
+ (string-remove -suffix " ]" )))
2031
2031
insert))
2032
2032
(indent-region (point-min ) (point-max ))
2033
2033
(save-buffer )))
@@ -2385,7 +2385,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-promote-function
2385
2385
(defun cljr--project-relative-path (path )
2386
2386
" Denormalize PATH to make to make it relative to the project
2387
2387
root."
2388
- (s-chop -prefix (cljr--project-dir) path))
2388
+ (string-remove -prefix (cljr--project-dir) path))
2389
2389
2390
2390
(defun cljr--get-valid-filename (hash )
2391
2391
" Get :file value from the hash table and convert path if necessary."
@@ -2708,17 +2708,17 @@ Date. -> Date
2708
2708
~@sym => sym"
2709
2709
(cond
2710
2710
((string-suffix-p " ." name)
2711
- (thread-last name (s-chop -suffix " ." ) cljr--normalize-symbol-name))
2711
+ (thread-last name (string-remove -suffix " ." ) cljr--normalize-symbol-name))
2712
2712
((string-prefix-p " #'" name)
2713
- (thread-last name (s-chop -prefix " #'" ) cljr--normalize-symbol-name))
2713
+ (thread-last name (string-remove -prefix " #'" ) cljr--normalize-symbol-name))
2714
2714
((string-prefix-p " '" name)
2715
- (thread-last name (s-chop -prefix " '" ) cljr--normalize-symbol-name))
2715
+ (thread-last name (string-remove -prefix " '" ) cljr--normalize-symbol-name))
2716
2716
((string-prefix-p " ~" name)
2717
- (thread-last name (s-chop -prefix " ~" ) cljr--normalize-symbol-name))
2717
+ (thread-last name (string-remove -prefix " ~" ) cljr--normalize-symbol-name))
2718
2718
((string-prefix-p " ~@" name)
2719
- (thread-last name (s-chop -prefix " ~@" ) cljr--normalize-symbol-name))
2719
+ (thread-last name (string-remove -prefix " ~@" ) cljr--normalize-symbol-name))
2720
2720
((string-prefix-p " @" name)
2721
- (thread-last name (s-chop -prefix " @" ) cljr--normalize-symbol-name))
2721
+ (thread-last name (string-remove -prefix " @" ) cljr--normalize-symbol-name))
2722
2722
(t name)))
2723
2723
2724
2724
(defun cljr--call-middleware-to-resolve-missing (symbol )
@@ -3255,7 +3255,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
3255
3255
(let ((keyfn (cadr args)))
3256
3256
(cljr--insert-example-fn (cider-symbol-at-point)
3257
3257
(if (cljr--keywordp keyfn)
3258
- (list (s-chop -prefix " :" keyfn))
3258
+ (list (string-remove -prefix " :" keyfn))
3259
3259
(list 0 ))
3260
3260
path)))
3261
3261
@@ -3265,7 +3265,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
3265
3265
(cider-symbol-at-point))))
3266
3266
(cljr--insert-example-fn (cider-symbol-at-point)
3267
3267
(if (cljr--keywordp last-path-entry)
3268
- (list (s-chop -prefix " :" last-path-entry))
3268
+ (list (string-remove -prefix " :" last-path-entry))
3269
3269
(list 0 ))
3270
3270
path)))
3271
3271
@@ -3286,7 +3286,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
3286
3286
(= 3 (length args))))
3287
3287
(param-name (if making-comparator?
3288
3288
(when (cljr--keywordp (car args))
3289
- (s-chop -prefix " :" (car args)))
3289
+ (string-remove -prefix " :" (car args)))
3290
3290
(when-let (coll-name (cljr--guess-param-name (car (last args))))
3291
3291
(inflection-singularize-string coll-name)))))
3292
3292
(cljr--insert-example-fn fn-name
@@ -3374,9 +3374,9 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
3374
3374
((and fn-call (string-suffix-p " ." fn-call))
3375
3375
(s-dashed-words (car (last (s-split " \\ ." fn-call t )))))
3376
3376
((and fn-call (string-prefix-p " create-" fn-call))
3377
- (s-chop -prefix " create-" fn-call))
3377
+ (string-remove -prefix " create-" fn-call))
3378
3378
((and fn-call (string-prefix-p " .get" fn-call))
3379
- (s-dashed-words (s-chop -prefix " .get" fn-call)))
3379
+ (s-dashed-words (string-remove -prefix " .get" fn-call)))
3380
3380
((string= " get-in" fn-call)
3381
3381
(cljr--find-param-name-from-get-in prepped-form))
3382
3382
((string= " get" fn-call)
@@ -3428,7 +3428,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
3428
3428
(paredit-backward-down)
3429
3429
(cider-symbol-at-point))))
3430
3430
(when (cljr--keywordp last-path-entry)
3431
- (s-chop -prefix " :" last-path-entry))))
3431
+ (string-remove -prefix " :" last-path-entry))))
3432
3432
3433
3433
(defun cljr--find-param-name-from-get (form )
3434
3434
(let ((key (cljr--with-string-content form
@@ -3437,7 +3437,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
3437
3437
(cljr--skip-past-whitespace-and-comments)
3438
3438
(cljr--extract-sexp))))
3439
3439
(when (cljr--keywordp key)
3440
- (s-chop -prefix " :" key))))
3440
+ (string-remove -prefix " :" key))))
3441
3441
3442
3442
(defun cljr--insert-example-fn (name args path )
3443
3443
" Create a new function from NAME and ARGS.
0 commit comments