summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ChangeLog3
-rw-r--r--test/automated/icalendar-tests.el3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 5e29dd4e8d0..d03176fbf30 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,8 @@
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.
diff --git a/test/automated/icalendar-tests.el b/test/automated/icalendar-tests.el
index bca462da4d9..28fa47630a8 100644
--- a/test/automated/icalendar-tests.el
+++ b/test/automated/icalendar-tests.el
@@ -1194,8 +1194,7 @@ Argument INPUT icalendar event string."
(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)