summaryrefslogtreecommitdiff
path: root/lisp/bookmark.el
diff options
context:
space:
mode:
authorKarl Fogel <kfogel@red-bean.com>2005-04-11 01:18:35 +0000
committerKarl Fogel <kfogel@red-bean.com>2005-04-11 01:18:35 +0000
commit7ce5cc42af8c0a332f14dfe546d2d2b95790d2e8 (patch)
tree961c1b15626b551bb7a3175c1f7eac1128ce1187 /lisp/bookmark.el
parent4b200eba0092b66b899b402c2d9a78008aa88c3f (diff)
downloademacs-7ce5cc42af8c0a332f14dfe546d2d2b95790d2e8.tar.gz
(bookmark-write-file): Catch errors writing file.
This is the same change as revision 1.30 of saveplace.el.
Diffstat (limited to 'lisp/bookmark.el')
-rw-r--r--lisp/bookmark.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 869896b087a..0696f929584 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1355,7 +1355,9 @@ for a file, defaulting to the file defined by variable
((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)))))))