Mercurial > emacs
diff lisp/bookmark.el @ 61454:014fcf8d4038
(bookmark-write-file): Catch errors writing file.
This is the same change as revision 1.30 of saveplace.el.
author | Karl Fogel <kfogel@red-bean.com> |
---|---|
date | Mon, 11 Apr 2005 01:18:35 +0000 |
parents | 8b4c93f5bcf1 |
children | d00be6e651cd 146c086df160 |
line wrap: on
line diff
--- a/lisp/bookmark.el Sun Apr 10 23:38:37 2005 +0000 +++ b/lisp/bookmark.el Mon Apr 11 01:18:35 2005 +0000 @@ -1355,7 +1355,9 @@ ((eq 'nospecial bookmark-version-control) version-control) (t t)))) - (write-file file) + (condition-case nil + (write-file file) + (file-error (message "Can't write %s" file))) (kill-buffer (current-buffer)) (if (>= baud-rate 9600) (message "Saving bookmarks to file %s...done" file)))))))