diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 5307cad..52697c2 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1126,6 +1126,7 @@ Changes current buffer and point and returns nil, or signals a `file-error'." (set-buffer (cond ((and file (file-readable-p file) (not (buffer-live-p buf))) + (add-to-history 'file-name-history file) (find-file-noselect file)) ;; No file found. See if buffer BUF have been created. ((and buf (get-buffer buf)))