]> git.eshelyaron.com Git - emacs.git/commit
Avoid asking repeatedly about reloading bookmarks file
authorStefan Kangas <stefan@marxist.se>
Sun, 14 Feb 2021 23:43:15 +0000 (00:43 +0100)
committerStefan Kangas <stefan@marxist.se>
Sun, 14 Feb 2021 23:51:36 +0000 (00:51 +0100)
commitf5b172fb6e41e9bf75acd1fd94325a13d75987bf
tree0bc7c9802393988cc285f5b150d2365070b60ab6
parent875ba6f7e79d6d9416e8661213fed362dc182e3f
Avoid asking repeatedly about reloading bookmarks file

* lisp/bookmark.el (bookmark-maybe-load-default-file): Reload watched
bookmarks file only if its mtime has changed since the last query.
This avoids asking repeatedly about reloading the bookmarks file if
the user has already said "no" to a previous query.
(bookmark--watch-file-already-queried-p): New function.
(bookmark--watch-already-asked-mtime): New variable.
lisp/bookmark.el