diff options
author | Edward M. Reingold <[email protected]> | 1998-05-11 15:48:24 +0000 |
---|---|---|
committer | Edward M. Reingold <[email protected]> | 1998-05-11 15:48:24 +0000 |
commit | 38023020788a342bbe71ebbf30c3b4d1fd8c4155 (patch) | |
tree | 17524528a04ed24976f2b3350e6f06e9acca5e17 /lisp/calendar/calendar.el | |
parent | b5305eb0516c217caba18b37ff8c993acaa7cfc0 (diff) |
On exiting, don't signal error when user changes mind.
Diffstat (limited to 'lisp/calendar/calendar.el')
-rw-r--r-- | lisp/calendar/calendar.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index 65e2ace68f..10498e5b08 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el @@ -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) |