From: Glenn Morris Date: Thu, 11 Jul 2013 15:57:45 +0000 (-0700) Subject: Silence icalendar-tests.el compilation X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1843 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a550ba33599d58484e3fc8addde14618c914c302;p=emacs.git Silence icalendar-tests.el compilation * test/automated/icalendar-tests.el (icalendar-tests--do-test-cycle): Use with-current-buffer. --- 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)