Skip to content

Commit

Permalink
Adds save-match-data.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstadig committed May 24, 2013
1 parent 61ce1d5 commit 74f0cd6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clojure-test-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,10 @@ Clojure src file for the given test namespace.")
(let ((regexp clojure-test-regex))
(save-restriction
(save-excursion
(goto-char (point-min))
(when (re-search-forward regexp nil t)
(match-string-no-properties 0))))))
(save-match-data
(goto-char (point-min))
(when (re-search-forward regexp nil t)
(match-string-no-properties 0)))))))

;;;###autoload
(progn
Expand Down

0 comments on commit 74f0cd6

Please sign in to comment.