# HG changeset patch # User Chong Yidong # Date 1225304532 0 # Node ID b0198599138f98e4de9c16bc81e9f7989e73a802 # Parent d0781e01ee9c39737ee071eb87469fca5dc2da54 (bookmark-get-bookmark-record): Signal error for invalid bookmark. diff -r d0781e01ee9c -r b0198599138f lisp/bookmark.el --- a/lisp/bookmark.el Wed Oct 29 18:21:50 2008 +0000 +++ b/lisp/bookmark.el Wed Oct 29 18:22:12 2008 +0000 @@ -330,7 +330,8 @@ (defun bookmark-get-bookmark-record (bookmark) "Return the guts of the entry for BOOKMARK in `bookmark-alist'. That is, all information but the name." - (let ((alist (cdr (bookmark-get-bookmark bookmark)))) + (let ((alist (cdr (or (bookmark-get-bookmark bookmark) + (error "Invalid bookmark %s" bookmark))))) ;; The bookmark objects can either look like (NAME ALIST) or ;; (NAME . ALIST), so we have to distinguish the two here. (if (and (null (cdr alist)) (consp (caar alist)))