From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27726: 26.0.50; plist functions give confusing errors on invalid plists Date: Sun, 16 Jul 2017 21:50:27 +0200 Message-ID: <87y3rorwjg.fsf@mouse> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500234679 4043 195.159.176.226 (16 Jul 2017 19:51:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2017 19:51:19 +0000 (UTC) To: 27726@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 16 21:51:14 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 1dWpZK-0000KH-Sr for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 21:51:06 +0200 Original-Received: from localhost ([::1]:46669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWpZQ-0007sS-5e for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 15:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWpZJ-0007sN-AP for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWpZG-0007yH-6B for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40038) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWpZG-0007yD-2N for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWpZF-0006WW-PU for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:51: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: Sun, 16 Jul 2017 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150023465525057 (code B ref -1); Sun, 16 Jul 2017 19:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jul 2017 19:50:55 +0000 Original-Received: from localhost ([127.0.0.1]:42715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWpZ8-0006W3-SW for submit@debbugs.gnu.org; Sun, 16 Jul 2017 15:50:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWpZ6-0006Vr-Gg for submit@debbugs.gnu.org; Sun, 16 Jul 2017 15:50:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWpZ0-0007ob-7K for submit@debbugs.gnu.org; Sun, 16 Jul 2017 15:50:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dWpYz-0007oQ-VT for submit@debbugs.gnu.org; Sun, 16 Jul 2017 15:50:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWpYy-0007qa-Ms for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:50:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWpYv-0007iY-E1 for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:50:44 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:50861) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWpYu-0007bH-NY for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 15:50:40 -0400 Original-Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dWpYi-0005HC-BT for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 21:50:30 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:134640 Archived-At: (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.) In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-07-16 built on mouse Repository revision: 45892db6f53cccc045da9c7215b467617c067f04 Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Ubuntu 17.04 -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no