From a550ba33599d58484e3fc8addde14618c914c302 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 11 Jul 2013 08:57:45 -0700 Subject: [PATCH] Silence icalendar-tests.el compilation * test/automated/icalendar-tests.el (icalendar-tests--do-test-cycle): Use with-current-buffer. --- test/ChangeLog | 3 +++ test/automated/icalendar-tests.el | 3 +-- 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 + * 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) -- 2.39.2