X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=5ce6992a843110f3dc57504674c2c863491f5f10;hp=72bba891f6caf99063422982137a8b64ae2fed11;hb=3a33e9043d75d7f7c58daee30d802a0066e3fd74;hpb=c5d28fb6e23278139ef19ba4d4d95aee83dfeaa6 diff --git a/elpher.el b/elpher.el index 72bba89..5ce6992 100644 --- a/elpher.el +++ b/elpher.el @@ -1638,6 +1638,9 @@ bookmark list, while URL is the url of the entry." (defun elpher-save-bookmarks (bookmarks) "Record the bookmark list BOOKMARKS to the user's bookmark file. Beware that this completely replaces the existing contents of the file." + (let ((bookmark-dir (file-name-directory elpher-bookmarks-file))) + (unless (file-directory-p bookmark-dir) + (make-directory bookmark-dir))) (with-temp-file elpher-bookmarks-file (erase-buffer) (insert "; Elpher bookmarks file\n\n"