]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix docstring of bookmark-get-bookmark
authorStefan Kangas <stefankangas@gmail.com>
Sun, 26 May 2019 10:04:56 +0000 (12:04 +0200)
committerBasil L. Contovounesios <contovob@tcd.ie>
Thu, 30 May 2019 12:32:10 +0000 (13:32 +0100)
* lisp/bookmark.el (bookmark-get-bookmark): Document optional
argument NOERROR. (bug#20148)

lisp/bookmark.el

index a2a712348de9ac5c5bfbb3deea48de3c88c653aa..0bc2688537e96e679076ecdfae19aae711647c20 100644 (file)
@@ -333,8 +333,9 @@ one element from `bookmark-alist'."
   "Return the bookmark record corresponding to BOOKMARK-NAME-OR-RECORD.
 If BOOKMARK-NAME-OR-RECORD is a string, look for the corresponding
 bookmark record in `bookmark-alist'; return it if found, otherwise
-error.  Else if BOOKMARK-NAME-OR-RECORD is already a bookmark record,
-just return it."
+error.  If optional argument NOERROR is non-nil, return nil
+instead of signaling an error.  Else if BOOKMARK-NAME-OR-RECORD
+is already a bookmark record, just return it."
   (cond
    ((consp bookmark-name-or-record) bookmark-name-or-record)
    ((stringp bookmark-name-or-record)