all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 23408@debbugs.gnu.org
Subject: bug#23408: 25.0.90; bookmark.el: incorrect use of `define-error'
Date: Wed, 12 Jun 2019 18:47:15 +0200	[thread overview]
Message-ID: <CADwFkmnBFWB89KAjUR-VPGsBA7wgJSc1essihR=82TsP6x7y6g@mail.gmail.com> (raw)
In-Reply-To: <ec0b5115-95bb-4a27-92ec-d160e2e41380@default>

[-- Attachment #1: Type: text/plain, Size: 373 bytes --]

Drew Adams <drew.adams@oracle.com> writes:
> bookmark.el uses `define-error' without passing a string for argument
> MESSAGE.
>
> Emacs Dev had decided that this is incorrect usage, and thus that
> `define-error' does not provide the same functionality as you get by
> using property `error-conditions' directly.

The attached patch should fix this.

Thanks,
Stefan Kangas

[-- Attachment #2: 0001-Add-MESSAGE-string-to-bookmark-errors-bug-23408.patch --]
[-- Type: application/octet-stream, Size: 837 bytes --]

From b91ed9ab522f4818308c984cad6f15f5097f6eef Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Wed, 12 Jun 2019 18:42:46 +0200
Subject: [PATCH] Add MESSAGE string to bookmark-errors (bug#23408)

* lisp/bookmark.el (bookmark-errors): Add MESSAGE parameter string.
---
 lisp/bookmark.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 5a9859d83d..a69919cc08 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1172,7 +1172,8 @@ bookmark-handle-bookmark
     (setq bookmark-current-bookmark bookmark-name-or-record))
   nil)
 
-(define-error 'bookmark-errors nil)
+(define-error 'bookmark-errors
+  "Bookmark error")
 (define-error 'bookmark-error-no-filename
   "Bookmark has no associated file (or directory)" 'bookmark-errors)
 
-- 
2.21.0


  reply	other threads:[~2019-06-12 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-30 19:35 bug#23408: 25.0.90; bookmark.el: incorrect use of `define-error' Drew Adams
2019-06-12 16:47 ` Stefan Kangas [this message]
2019-06-12 17:12   ` Drew Adams
2019-06-15 21:45     ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmnBFWB89KAjUR-VPGsBA7wgJSc1essihR=82TsP6x7y6g@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=23408@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.