]> git.eshelyaron.com Git - emacs.git/commitdiff
On exiting, don't signal error when user changes mind.
authorEdward M. Reingold <reingold@emr.cs.iit.edu>
Mon, 11 May 1998 15:48:24 +0000 (15:48 +0000)
committerEdward M. Reingold <reingold@emr.cs.iit.edu>
Mon, 11 May 1998 15:48:24 +0000 (15:48 +0000)
lisp/calendar/calendar.el

index 65e2ace68fc1f0a62a029aa5ca0d0402a49faff8..10498e5b088bb6caf0ead04e90049304037635f2 100644 (file)
@@ -2096,11 +2096,10 @@ the STRINGS are just concatenated and the result truncated."
   "Get out of the calendar window and hide it and related buffers."
   (interactive)
   (let* ((diary-buffer (get-file-buffer diary-file)))
-    (if (and diary-buffer (buffer-modified-p diary-buffer)
-            (not
-             (yes-or-no-p
-              "Diary modified; do you really want to exit the calendar? ")))
-       (beep)
+    (if (or (not diary-buffer)
+            (not (buffer-modified-p diary-buffer))
+            (yes-or-no-p
+             "Diary modified; do you really want to exit the calendar? "))
       ;; Need to do this multiple times because one time can replace some
       ;; calendar-related buffers with other calendar-related buffers
       (mapcar (lambda (x)