Skip to content

Commit e1e61ae

Browse files
author
Bozhidar Batsov
committed
Remove redundant save-restriction
1 parent e062ac7 commit e1e61ae

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clojure-mode.el

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,12 +1013,11 @@ Useful if a file has been renamed."
10131013
(interactive)
10141014
(let ((nsname (clojure-expected-ns)))
10151015
(when nsname
1016-
(save-restriction
1017-
(save-excursion
1018-
(save-match-data
1019-
(if (clojure-find-ns)
1020-
(replace-match nsname nil nil nil 4)
1021-
(error "Namespace not found"))))))))
1016+
(save-excursion
1017+
(save-match-data
1018+
(if (clojure-find-ns)
1019+
(replace-match nsname nil nil nil 4)
1020+
(error "Namespace not found")))))))
10221021

10231022
(defun clojure-find-ns ()
10241023
"Find the namespace of the current Clojure buffer."

0 commit comments

Comments
 (0)