From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#20625: 25.0.50; doc of `define-error` is incorrect Date: Sat, 30 Apr 2016 21:25:11 +0200 Message-ID: <87h9eidhm0.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462044402 27979 80.91.229.3 (30 Apr 2016 19:26:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2016 19:26:42 +0000 (UTC) Cc: 20625@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 21:26:31 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awaX7-0001ix-Sc for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 21:26:30 +0200 Original-Received: from localhost ([::1]:59408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awaX4-0002ju-6Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 15:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awaWv-0002Wm-8G for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 15:26:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awaWj-0005uM-C4 for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 15:26:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awaWj-0005t2-8Y for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 15:26:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awaWf-0006BI-Qx for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 15:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2016 19:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20625 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20625-submit@debbugs.gnu.org id=B20625.146204431623686 (code B ref 20625); Sat, 30 Apr 2016 19:26:01 +0000 Original-Received: (at 20625) by debbugs.gnu.org; 30 Apr 2016 19:25:16 +0000 Original-Received: from localhost ([127.0.0.1]:58433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awaVw-00069y-Es for submit@debbugs.gnu.org; Sat, 30 Apr 2016 15:25:16 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awaVu-00069r-Vp for 20625@debbugs.gnu.org; Sat, 30 Apr 2016 15:25:15 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awaVs-0005tG-3j; Sat, 30 Apr 2016 21:25:14 +0200 In-Reply-To: (Drew Adams's message of "Thu, 21 May 2015 14:04:31 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117430 Archived-At: Drew Adams writes: >>>From `C-h f': > > (define-error NAME MESSAGE &optional PARENT) > > Define NAME as a new error signal. > MESSAGE is a string that will be output to the echo area if such an error > is signaled without being caught by a `condition-case'. > PARENT is either a signal or a list of signals from which it inherits. > Defaults to `error'. > > No, MESSAGE is not necessarily a string. It is a required argument, but > the code explicitly makes use of the case where it is nil. And existing > code delivered with Emacs (e.g. bookmark.el) makes use of a nil MESSAGE. > That case should be documented. The function doesn't error out if MESSAGE isn't a string, but it still shouldn't be. So I don't think that's a bug. Feel free to submit a new bug report for bookmark.el not supplying a string. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no