* test/automated/icalendar-tests.el (icalendar-tests--do-test-cycle):
Use with-current-buffer.
2013-07-11 Glenn Morris <rgm@gnu.org>
+ * automated/icalendar-tests.el (icalendar-tests--do-test-cycle):
+ Use with-current-buffer.
+
* automated/undo-tests.el (undo-test-buffer-modified)
(undo-test-file-modified): New tests.
(should (string= org-input cycled)))))
;; clean up
(kill-buffer (find-buffer-visiting temp-diary))
- (save-excursion
- (set-buffer (find-buffer-visiting temp-ics))
+ (with-current-buffer (find-buffer-visiting temp-ics)
(set-buffer-modified-p nil)
(kill-buffer (current-buffer)))
(delete-file temp-diary)