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