[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 1b2f83b: Fix docstring of bookmark-get-bookmark
From: |
Basil L. Contovounesios |
Subject: |
[Emacs-diffs] emacs-26 1b2f83b: Fix docstring of bookmark-get-bookmark |
Date: |
Thu, 30 May 2019 08:32:47 -0400 (EDT) |
branch: emacs-26
commit 1b2f83bb7984269b92eb0afb323e3e74baf87068
Author: Stefan Kangas <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>
Fix docstring of bookmark-get-bookmark
* lisp/bookmark.el (bookmark-get-bookmark): Document optional
argument NOERROR. (bug#20148)
---
lisp/bookmark.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index a2a7123..0bc2688 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 1b2f83b: Fix docstring of bookmark-get-bookmark,
Basil L. Contovounesios <=