From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#27726: 26.0.50; plist functions give confusing errors on invalid plists Date: Sat, 02 Sep 2017 19:10:47 +0000 Message-ID: References: <87y3rorwjg.fsf@mouse> <83r2vpz2ur.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11c1773e38be37055839a3df" X-Trace: blaine.gmane.org 1504379555 15407 195.159.176.226 (2 Sep 2017 19:12:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2017 19:12:35 +0000 (UTC) Cc: 27726-done@debbugs.gnu.org To: Eli Zaretskii , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 02 21:12:20 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doDq0-0002se-W8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Sep 2017 21:12:13 +0200 Original-Received: from localhost ([::1]:47073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doDq7-0007uz-Uj for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Sep 2017 15:12:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doDpv-0007u2-8U for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:12:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doDpq-0002jo-8L for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:12:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doDpq-0002ji-5G for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1doDpp-00060F-TX for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:12:01 -0400 Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2017 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 27726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 27726@debbugs.gnu.org, p.stephani2@gmail.com, larsi@gnus.org Original-Received: via spool by 27726-done@debbugs.gnu.org id=D27726.150437947423008 (code D ref 27726); Sat, 02 Sep 2017 19:12:01 +0000 Original-Received: (at 27726-done) by debbugs.gnu.org; 2 Sep 2017 19:11:14 +0000 Original-Received: from localhost ([127.0.0.1]:43897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doDp0-0005yw-KX for submit@debbugs.gnu.org; Sat, 02 Sep 2017 15:11:14 -0400 Original-Received: from mail-oi0-f47.google.com ([209.85.218.47]:33836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doDou-0005yO-2w for 27726-done@debbugs.gnu.org; Sat, 02 Sep 2017 15:11:07 -0400 Original-Received: by mail-oi0-f47.google.com with SMTP id w10so22233980oie.1 for <27726-done@debbugs.gnu.org>; Sat, 02 Sep 2017 12:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J46ECpAbYBTT7O2ZSRfMW38XYkZUrMl7coHrug+hn/I=; b=nayCIfgYGjaKoTJL2gVTKaNueuFVfciz9Mn6fJYlM7NrOWEjX8EtxYi3PXiQ/JRsug ojRzWC7l+6ZjAdoNk1iP5C8fppDNxG+rVxhBLCPTutAlLT+cRkiyaGZHgjDevw6WQ877 zAo+8I1CPH16HcLwSi742T0QQJHVju46R06MCLwK+wMPWbJeFgQaKT7r0Ih5EH98hR6A 40Nz2l7NJa3Nx+jRbUKpFR2U/LZ8xqzX9DKnNJVNCcw7i9ktOgoXXcoxnfTFTDqb/8G/ Hjw1WyIa02dWmSBtRr3wPXsH1RsnntqM8Ny+GdHVY/274CWRopSDULXgO3P/hrPo5nUQ XmuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J46ECpAbYBTT7O2ZSRfMW38XYkZUrMl7coHrug+hn/I=; b=dD4B+ll29TNjHz6MjLAc1mU/70bVo0rrYcLAiwXAnGkMXno0i5GBi/QW0AQ9i1ccGd lXQ9mFYuZs99gcWZrDxrY/2Ys2PN6c40q7ydabUIOT0a8YZ6zm492FHm8QEpiJDg88/W Cv4HFwM8gkoReDh6GsKSbB7nodiMK6Fj3UQ3Fo0Z9crTmiouXD22reluTTSxVziNEkzZ Of13wWhG4czqGO335lpej9MqSqqJWasewSglmNeo3+Qk410jjIS/W30myNDOtc0nfnqM QdbwM4A7IvOBkB9uNwIrPYjLVxeam7hvnISphyz9DLAPsA2Fhz45BR4S+9nXVZq8BVpY +1NQ== X-Gm-Message-State: AHPjjUi+wVh/rJ3tB5rWdlZf6BOeAu4hIjXgFhnnshgWXZXf0VLGGAe0 md7tdZQgWZeqyETRn5WGQiIrCTsfq+X2 X-Google-Smtp-Source: ADKCNb6mbLWQDClFy/P0h8JbD0Azcwsz+ge0RWjt+Erbt8rAPFx1RNo1tbAlZAwfeFCZtiHQSdzP9+9o76r2szDSMKQ= X-Received: by 10.202.74.197 with SMTP id x188mr4796023oia.296.1504379458336; Sat, 02 Sep 2017 12:10:58 -0700 (PDT) In-Reply-To: <83r2vpz2ur.fsf@gnu.org> 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:136516 Archived-At: --001a11c1773e38be37055839a3df Content-Type: text/plain; charset="UTF-8" Eli Zaretskii schrieb am Sa., 2. Sep. 2017 um 14:46 Uhr: > unblock 24655 by 27726 > thanks > > > From: Lars Ingebrigtsen > > Date: Sun, 16 Jul 2017 21:50:27 +0200 > > > > > > (plist-put '(:foo 1 :bar) :zot 2) > > > > Debugger entered--Lisp error: (wrong-type-argument listp (:foo 1 :bar)) > > plist-put((:foo 1 :bar) :zot 2) > > eval((plist-put '(:foo 1 :bar) :zot 2) nil) > > elisp--eval-last-sexp(nil) > > eval-last-sexp(nil) > > funcall-interactively(eval-last-sexp nil) > > call-interactively(eval-last-sexp nil nil) > > command-execute(eval-last-sexp) > > > > The error seems to say that '(:foo 1 :bar) isn't a list. But the > > problem is that it's not a valid plist, since it has an odd number of > > elements. > > > > So I think there should be a different error being signalled here. (And > > there isn't really a backwards compatibility issue here of introducing a > > new error symbol: Emacs 26.1 started signalling errors for these lists; > > previously it was fine having odd plists.) > > Would someone please look into this bug? > I've installed commit 71766a45f1 to improve the message. --001a11c1773e38be37055839a3df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Sa., 2. Sep. 2017 um 14:46=C2=A0Uhr:
unblock 24655 by 27726
thanks

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 16 Jul 2017 21:50:27 +0200
>
>
> (plist-put '(:foo 1 :bar) :zot 2)
>
> Debugger entered--Lisp error: (wrong-type-argument listp (:foo 1 :bar)= )
>=C2=A0 =C2=A0plist-put((:foo 1 :bar) :zot 2)
>=C2=A0 =C2=A0eval((plist-put '(:foo 1 :bar) :zot 2) nil)
>=C2=A0 =C2=A0elisp--eval-last-sexp(nil)
>=C2=A0 =C2=A0eval-last-sexp(nil)
>=C2=A0 =C2=A0funcall-interactively(eval-last-sexp nil)
>=C2=A0 =C2=A0call-interactively(eval-last-sexp nil nil)
>=C2=A0 =C2=A0command-execute(eval-last-sexp)
>
> The error seems to say that '(:foo 1 :bar) isn't a list.=C2=A0= But the
> problem is that it's not a valid plist, since it has an odd number= of
> elements.
>
> So I think there should be a different error being signalled here.=C2= =A0 (And
> there isn't really a backwards compatibility issue here of introdu= cing a
> new error symbol: Emacs 26.1 started signalling errors for these lists= ;
> previously it was fine having odd plists.)

Would someone please look into this bug?

I've installed commit =C2=A071766a45f1 to improve the message.
<= /div>
--001a11c1773e38be37055839a3df--