# HG changeset patch # User Gerd Moellmann # Date 985791086 0 # Node ID f347448dda9e73fc98a89301d6bab98ebdd7b02b # Parent 0c7a504e8522f709c20095d6f06fc27866513959 (bookmark-get-bookmark): Handle case that BOOKMARK is not a string. diff -r 0c7a504e8522 -r f347448dda9e lisp/bookmark.el --- a/lisp/bookmark.el Wed Mar 28 14:32:24 2001 +0000 +++ b/lisp/bookmark.el Wed Mar 28 14:51:26 2001 +0000 @@ -345,11 +345,13 @@ (defun bookmark-get-bookmark (bookmark) - "Return the full entry for BOOKMARK in bookmark-alist." - (apply (if bookmark-completion-ignore-case - #'assoc-ignore-case - #'assoc) - (list bookmark bookmark-alist))) + "Return the full entry for BOOKMARK in bookmark-alist. +If BOOKMARK is not a string, return nil." + (when (stringp bookmark) + (apply (if bookmark-completion-ignore-case + #'assoc-ignore-case + #'assoc) + (list bookmark bookmark-alist)))) (defun bookmark-get-bookmark-record (bookmark)