X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=9ac3fc0c7e83a983fe17fec61cf9b8588c967f0e;hp=4c34f5223fc8cab514e0e389592d9eece41666b1;hb=f2860c3b2d20fdc456b0bf554ab846e34c4458da;hpb=3561c2815bc6bc896fc7a6da8f094edca48c55b8 diff --git a/elpher.el b/elpher.el index 4c34f52..9ac3fc0 100644 --- a/elpher.el +++ b/elpher.el @@ -1618,6 +1618,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"