From: Stefan Kangas Date: Sat, 6 Jul 2019 14:35:52 +0000 (+0200) Subject: Improve an error message in bookmark.el X-Git-Tag: emacs-27.0.90~2088 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01aac6c1fcf8cf8d3f2463e8182f986abf768e29;p=emacs.git Improve an error message in bookmark.el * lisp/bookmark.el (bookmark-alist-from-buffer): Improve error message (bug#36391). --- diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 4f908313ccf..2640b2157ab 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -650,7 +650,9 @@ affect point." (forward-char -1) (read (current-buffer))) ;; Else no hope of getting information here. - (error "Not bookmark format"))))) + (if buffer-file-name + (error "File not in bookmark format: %s" buffer-file-name) + (error "Buffer not in bookmark format: %s" (buffer-name))))))) (defun bookmark-upgrade-version-0-alist (old-list)