GNU bug report logs - #20148
24.4: function `bookmark-get-bookmark'

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Fri, 20 Mar 2015 04:44:02 UTC

Severity: wishlist

Tags: fixed

Found in version 24.4

Fixed in version 26.3

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


Message #27 received at 20148-done <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 20148-done <at> debbugs.gnu.org
Subject: Re: bug#20148: 24.4: function `bookmark-get-bookmark'
Date: Thu, 30 May 2019 13:38:02 +0100
tags 20148 fixed
close 20148 26.3
quit

> From a874f231ba0216ca2c3feedaae8ddb32f378f80e Mon Sep 17 00:00:00 2001
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Sun, 26 May 2019 12:04:56 +0200
> Subject: [PATCH] Fix docstring of bookmark-get-bookmark
>
> * bookmark.el (bookmark-get-bookmark): Fix docstring.
> ---
>  lisp/bookmark.el | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/lisp/bookmark.el b/lisp/bookmark.el
> index b1fe690dac..5c14f705eb 100644
> --- a/lisp/bookmark.el
> +++ b/lisp/bookmark.el
> @@ -334,7 +334,9 @@ bookmark-get-bookmark
>  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."
> +just return it.
> +Signal an error if bookmark is invalid.  If optional argument
> +NOERROR is non-nil, return nil instead."
>    (cond
>     ((consp bookmark-name-or-record) bookmark-name-or-record)
>     ((stringp bookmark-name-or-record)

The docstring already mentioned signalling an error, so I tweaked your
patch to include only the second of the two new sentences, as well as to
mention the full relative file name (lisp/bookmark.el) and the bug
reference (bug#20148) in the commit log, and pushed to emacs-26[1], and
am therefore closing this report.

[1: 1b2f83bb79]: Fix docstring of bookmark-get-bookmark
  2019-05-30 13:32:10 +0100
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1b2f83bb7984269b92eb0afb323e3e74baf87068

Thanks,

-- 
Basil




This bug report was last modified 5 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.