File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2686,16 +2686,16 @@ lists up."
2686
2686
(defun clojure--rename-ns-alias-internal (current-alias new-alias )
2687
2687
" Rename a namespace alias CURRENT-ALIAS to NEW-ALIAS."
2688
2688
(clojure--find-ns-in-direction 'backward )
2689
- (let ((rgx (concat " :as +" current-alias))
2689
+ (let ((rgx (concat " :as +" ( regexp-quote current-alias) ))
2690
2690
(bound (save-excursion (forward-list 1 ) (point ))))
2691
2691
(when (search-forward-regexp rgx bound t )
2692
2692
(replace-match (concat " :as " new-alias))
2693
2693
(save-excursion
2694
- (while (re-search-forward (concat current-alias " /" ) nil t )
2694
+ (while (re-search-forward (concat ( regexp-quote current-alias) " /" ) nil t )
2695
2695
(when (not (nth 3 (syntax-ppss )))
2696
2696
(replace-match (concat new-alias " /" )))))
2697
2697
(save-excursion
2698
- (while (re-search-forward (concat " #::" current-alias " {" ) nil t )
2698
+ (while (re-search-forward (concat " #::" ( regexp-quote current-alias) " {" ) nil t )
2699
2699
(replace-match (concat " #::" new-alias " {" ))))
2700
2700
(message " Successfully renamed alias '%s ' to '%s ' " current-alias new-alias))))
2701
2701
You can’t perform that action at this time.
0 commit comments