From unknown Fri Sep 12 04:34:02 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#30425: 27.0.50; Return value of `pcase' not specified if no patterns match
Resent-From: Philipp
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 11 Feb 2018 20:57:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 30425
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 30425@debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.15183825712693
(code B ref -1); Sun, 11 Feb 2018 20:57:02 +0000
Received: (at submit) by debbugs.gnu.org; 11 Feb 2018 20:56:11 +0000
Received: from localhost ([127.0.0.1]:38650 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1ekyfT-0000hN-A0
for submit@debbugs.gnu.org; Sun, 11 Feb 2018 15:56:11 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46362)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1ekyfR-0000hB-Pq
for submit@debbugs.gnu.org; Sun, 11 Feb 2018 15:56:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ekyfL-0000Zx-62
for submit@debbugs.gnu.org; Sun, 11 Feb 2018 15:56:04 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59652)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1ekyfL-0000ZA-1c
for submit@debbugs.gnu.org; Sun, 11 Feb 2018 15:56:03 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37300)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ekyfJ-0004x1-L6
for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 15:56:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ekyfI-0000UP-K9
for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 15:56:01 -0500
Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:34713)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1ekyfI-0000TZ-Dm
for bug-gnu-emacs@gnu.org; Sun, 11 Feb 2018 15:56:00 -0500
Received: by mail-wm0-x232.google.com with SMTP id j21so6095060wmh.1
for ; Sun, 11 Feb 2018 12:56:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=wuiR6+qeq4vvNKGNc32pYSQsAKTr51MDtdTwuY6IUHc=;
b=lUXDKlPiQuimwLB9DQz6rpJVJDq67GgZ0NOnuqPRlkTRBuhdICuWNPd5En4x+pWPM0
Qe2YrgOFoyQITOH+uVVCrEPB1gmF6rv7lapy+rmQzDMUKRUBDPZ9arL6iXJaVP5XzFGT
0yQ0nJUh27e7XwejyKZyk9nS/L9/MW23WoPHk1clVnXeqRpoR+EWdauzlPb7rhCI3kRH
Lgpz7UsD7ABfCOr+os2QoMSsbRQ0LnHZYdCYTZ6aInT+yEYOt8EL8Py8/0Ln9Jk8Es+y
yE7WIWv26ElC+TP1HZd+3F2emYFtPPgjZyu42/0Wdr56FxWtxHbsFtHPQgdTok+3C9c4
c9sQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=wuiR6+qeq4vvNKGNc32pYSQsAKTr51MDtdTwuY6IUHc=;
b=qY21ADuXsbyyVqk6LiY1mJoB2CeIHnXBw/PFR3g9nUZugwUm9wMj55aPEdAi6oKcw9
LVZWzT3D4zAnjLzYaBLZ0YWUFEizEZ5DHAzVdOXxuboHRel5NeTn8ld1JRFDkf9xTimv
fEhvy0fJWvUTDW8ltvWfRjRiHSXkOylNqIf2HBoQKzSAR3n37Yu6IrQ0CiR2XiVZL4Sr
Gh1rfVSYdM97blVnItnkYwYC/fbsQ/HS6HOAhNAqfGVFmbYSX6YG2w2gQ6TC9ZJnsOm8
zC3G/VWxTYoVoqnuanpLnlW5/Mm7w93GxryRCKOm+n82WPiVqSCcmirZdBCeHEroeEk1
Gj5Q==
X-Gm-Message-State: APf1xPATxSW3+tlIgoR4fvAVBYn7uO0zKqCv1QhXjRLprBErWj9O+iV4
a3xwhjlbhDWBBNl/C4s2PBbDIiy6
X-Google-Smtp-Source: AH8x225rOUJcg/UV1vYf6nkMc3yzSfjfD13jQBkx92kHj+fcQ0/y3osLDKbtIdZQ9rm5X0yzXjVQLQ==
X-Received: by 10.28.52.9 with SMTP id b9mr2062367wma.114.1518382558842;
Sun, 11 Feb 2018 12:55:58 -0800 (PST)
Received: from p ([2001:4c50:25a:2900:89b:2d81:1b31:4f4a])
by smtp.gmail.com with ESMTPSA id r76sm3931288wmf.0.2018.02.11.12.55.57
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Sun, 11 Feb 2018 12:55:57 -0800 (PST)
From: Philipp
Date: Sun, 11 Feb 2018 21:55:56 +0100
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.8 (---)
Neither the manual nor the docstring of `pcase' specify what happens if
no patterns match. Probably the intention and actual behavior is that
it returns nil in that case, but that should be documented in the manual
and the docstring.
In GNU Emacs 27.0.50 (build 49, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47))
of 2018-02-11 built on p
Repository revision: 13f4b518d0bb7cb4536d341a2a2c8d0b76f75f6b
Windowing system distributor 'Apple', version 10.3.1561
System Description: Mac OS X 10.13.3
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --with-modules --without-pop --with-mailutils
--enable-gcc-warnings=yes --enable-checking
--enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''
Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
JSON
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote kqueue cocoa ns
multi-tty make-network-process emacs)
Memory information:
((conses 16 204902 7845)
(symbols 48 20092 1)
(miscs 40 56 123)
(strings 32 28897 1979)
(string-bytes 1 771864)
(vectors 16 35246)
(vector-slots 8 721896 13796)
(floats 8 52 64)
(intervals 56 211 0)
(buffers 992 11))
From unknown Fri Sep 12 04:34:02 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#30425: 27.0.50; Return value of `pcase' not specified if no patterns match
Resent-From: Noam Postavsky
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 31 Mar 2018 05:04:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 30425
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Philipp
Cc: 30425@debbugs.gnu.org
Received: via spool by 30425-submit@debbugs.gnu.org id=B30425.15224725933713
(code B ref 30425); Sat, 31 Mar 2018 05:04:01 +0000
Received: (at 30425) by debbugs.gnu.org; 31 Mar 2018 05:03:13 +0000
Received: from localhost ([127.0.0.1]:60591 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f28fZ-0000xj-HN
for submit@debbugs.gnu.org; Sat, 31 Mar 2018 01:03:13 -0400
Received: from mail-io0-f175.google.com ([209.85.223.175]:42408)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f28fX-0000xT-DN; Sat, 31 Mar 2018 01:03:11 -0400
Received: by mail-io0-f175.google.com with SMTP id d5so12810593iob.9;
Fri, 30 Mar 2018 22:03:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:references:date:in-reply-to:message-id
:user-agent:mime-version;
bh=i9sk6iLwYxOo/v3ViplEBeE68alEzzCDmKBLspIbqAk=;
b=md6qfeZenLVyhnlSlzx60Y75XQs9eGx7cOdwlyNOQwKMrnH2AkNlahs1m4KB/TJ2eC
QKS5lcHxUspg/2IYJRLuLJT64w9Uq79A/SmBeVRhl+y2QXjZy9dQOphw/twjE+xSMcWV
DoY/ZNf8ORD0tI56SOhOOg3UiX8R1/po+5NX5xQM2Xbva2+HXcKVRorwfFLFTo9/WJro
MeBW88HW3oT18XKnZL+8Cf6EkwaFJP1AcDXrtJEe0iaOXHKWOCe1RkABA78diJNzRUsI
1EMeRS8sqgX+PdO04AMTvVKlqQ7UT5lAvh3UfzZ+fGDGnWtmsPYEX7mpjFxCCUlwvZyr
zIVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
:message-id:user-agent:mime-version;
bh=i9sk6iLwYxOo/v3ViplEBeE68alEzzCDmKBLspIbqAk=;
b=Fj/0MKZBErHLIcddGGhiTcLW263Utxt4XltOPOZQ1jPRFPN+s21MmMstWI1LHTWthj
zLTw2Rc6LwYfhShoaYMI/g1hxo7nBBXyixn5IOrKIu5j0xGi8DAhIpd+DVj4N5c0Xjkx
O/r3XCGbx2PHHhqETcmVBhuQFPcigWsAZsjkoqRSC9+XXNIddKaDrj01PRYd+3U1P2Nf
CfPz7EzJAi0yCAhJBqa//qLfncgq1V1aFNXBgN2hZI4Dmt3c09uS7x9sezTKEi9gRjst
qDlPpy5/qSZ38fEVBa3bWyVGQw/0KT4aanydNGEKaTefal0v1gX15XoyAxnQGZKhmyS6
WlSg==
X-Gm-Message-State: ALQs6tBRflk7LezDdGrsW9tGLI90/oskp2LWDI0fOPOQDUXtYKdHFZlM
StK5kWbhM+61+pduINnuYByRIA==
X-Google-Smtp-Source: AIpwx4+CYfm7mttohKstySSpEgcTZ/m4KtErjgk7gGMT2SbubBg5nds3QcbqCdCtJcsUm2AEYxPKgw==
X-Received: by 10.107.26.71 with SMTP id a68mr1482092ioa.194.1522472585863;
Fri, 30 Mar 2018 22:03:05 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
by smtp.googlemail.com with ESMTPSA id
e142-v6sm1509212ite.3.2018.03.30.22.03.05
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Fri, 30 Mar 2018 22:03:05 -0700 (PDT)
From: Noam Postavsky
References:
Date: Sat, 31 Mar 2018 01:03:04 -0400
In-Reply-To: (Philipp's message of "Sun, 11 Feb
2018 21:55:56 +0100")
Message-ID: <87lge8q1kn.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.0 (/)
tags 30425 fixed
close 30425 26.1
quit
Philipp writes:
> Neither the manual nor the docstring of `pcase' specify what happens if
> no patterns match. Probably the intention and actual behavior is that
> it returns nil in that case, but that should be documented in the manual
> and the docstring.
Done in emacs-26.
[1: e50196e8a9]: 2018-03-31 00:50:37 -0400
Document return value of pcase (Bug#30425)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e50196e8a96216f1fd69f9257cddd8d76ad2ac78