From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 05:28:28 2018 Received: (at submit) by debbugs.gnu.org; 8 Mar 2018 10:28:29 +0000 Received: from localhost ([127.0.0.1]:50214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etsmi-00054N-MZ for submit@debbugs.gnu.org; Thu, 08 Mar 2018 05:28:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etsmg-000549-Ue for submit@debbugs.gnu.org; Thu, 08 Mar 2018 05:28:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etsma-0000wW-LN for submit@debbugs.gnu.org; Thu, 08 Mar 2018 05:28:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1etsma-0000wM-IT for submit@debbugs.gnu.org; Thu, 08 Mar 2018 05:28:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etsmZ-00017N-F1 for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 05:28:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etsmU-0000lw-Qu for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 05:28:19 -0500 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:44955) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etsmU-0000lG-Jh for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 05:28:14 -0500 Received: by mail-wr0-x22f.google.com with SMTP id v65so5115056wrc.11 for ; Thu, 08 Mar 2018 02:28:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=IPKEaaQP3yVF54miTnhYAT3KcyRQC61MH7Qhh8mNcGk=; b=XlpnG0ggoQLu0rVr+yt5eIJfUkjPBnujZP0J0An2+ETn3MkQbIERhcF/9V+KWe/7qn i9WHoIqmZREV/IgX/4s93lEOzrnWYUFUbFgfzRGMPWecEYeISGyWwGNCC2/Lmcx6CSOh LaS6E0IuQF74vqaCp+sqLYSLHRwPdtkctghIk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=IPKEaaQP3yVF54miTnhYAT3KcyRQC61MH7Qhh8mNcGk=; b=IPkGZiaOxwWnkUJXxLSUkNrokMY11cxBd3fuSyP1Gnf/8rSQOfslvTZmKVKaYMUqAk IpspVrHq4zu6zr75rjnuUmIuyM1d6b1u1XtEtJXbYQSKyXHetycT+oCDqAe3EvmGAbiH SdmlGTKnoaPZhKbXQhQDl4HE9cSMiVNPdieWnUWLnPUzjAK+FxhomVsIj4LGUBiAGZQW SOg3emnpgbXLtzvlafcdxvK8VO/oSqBWaMQr7huQP/n3Wd9iqcJ/17nj4g1aUXAshLs1 +mgtjjU9bMYR/JV1lWTa4PRjI5Br+F+rlJLlFKQgjgNg+0Qum7ILBws+mpoF03hb+RYB mI/w== X-Gm-Message-State: APf1xPDJY0rNA+vXQhTh14tMFLOXY5m8sHORVv5tkOjlW0xJfFxhUX9I sQqrzICU7hQbxGwRqVdGP0AkXTFwpGQ= X-Google-Smtp-Source: AG47ELu6G0V+6uykGg/Ig3HkQL5OjcKKHKmJfYPrFva4jpVf3tmXtWWB0sKuIFwcDjoGWJCJzU45Jw== X-Received: by 10.223.133.214 with SMTP id 22mr23147281wru.130.1520504893023; Thu, 08 Mar 2018 02:28:13 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c14sm17752548wmh.15.2018.03.08.02.28.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 02:28:12 -0800 (PST) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id D64D63E0192 for ; Thu, 8 Mar 2018 10:28:11 +0000 (GMT) User-agent: mu4e 1.1.0; emacs 26.0.91 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: bug-gnu-emacs@gnu.org Subject: 26.0.91; (cl-)case is confused when a nil atom is used instead of a keylist Date: Thu, 08 Mar 2018 10:28:11 +0000 Message-ID: <87fu5azwsk.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -4.0 (----) I got confused why my case statement was failing as I'd used the second form assuming that having nil as an atom would work. I'm not sure why the quoting fixed it but it's certainly a confusing inconsistency. The following behaviour shows up on emacs -Q: (require 'cl) (case nil ((nil) "nil") ((t) "default")) "nil" (case nil (nil "nil") (t "default")) "default" (case nil ('nil "nil") ('t "default")) "nil" (case t ('nil "nil") ('t "default")) "default" I think this is probably fixable with just making the docstring clearer as the results of handling the duel atom/list of nil might have unexpected results. In GNU Emacs 26.0.91 (build 16, x86_64-pc-linux-gnu, X toolkit, Xaw3d scrol= l bars) of 2018-03-06 built on zen Repository revision: 0efe0bd233de20bfb5bd9d06b255fc8ecf04602b Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.3 LTS -- Alex Benn=C3=A9e From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 06:11:58 2018 Received: (at 30749) by debbugs.gnu.org; 8 Mar 2018 11:11:58 +0000 Received: from localhost ([127.0.0.1]:50235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ettSo-0006Bx-0O for submit@debbugs.gnu.org; Thu, 08 Mar 2018 06:11:58 -0500 Received: from mail-io0-f180.google.com ([209.85.223.180]:36367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ettSm-0006Bj-7w for 30749@debbugs.gnu.org; Thu, 08 Mar 2018 06:11:56 -0500 Received: by mail-io0-f180.google.com with SMTP id e30so6664700ioc.3 for <30749@debbugs.gnu.org>; Thu, 08 Mar 2018 03:11:56 -0800 (PST) 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:content-transfer-encoding; bh=KMiD3kztqUYgchPi27Rkoo77CP8SdOGmwV9ZsSTOVis=; b=CoMP5/A+KN/PUu7clNYnQZ1GyCleVmLspFnbo4kuwwGH/ws1hlP6GdfpyCxfWPXJKO 0ruqPqWZMlHp9OFgZtDruDuFZerDgx41WHUuTiuW0T6K6I3R0oYc/Pfh+uwXGFHLIcCU hPyoD3fODN6ld+K2sWCHeuAfnp+yR/8t+61SiF1iE5flp+kEWq4B6kg4fRwZmIivWsN3 z4jBXUkLUP+NC4hale0hEIc6PedMvN4Fw5mKUsi0MqRATHTenbeH8kF+y8lKSXFNiFE0 hhov772dBxhyrngo5mciZCKB0OEDlMV0NwHaqracrB+RUqAhYD7yV+90G0cnQ/RQooty wuvQ== 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:content-transfer-encoding; bh=KMiD3kztqUYgchPi27Rkoo77CP8SdOGmwV9ZsSTOVis=; b=mG3XPIiWeRlyrdmGAkx91VeHOsFjLzmzbaPlmLzSsibvonNYacn+phB6CoScfUnE7Q fv3hZkVCDZ+CjGa/pW1LSToJKUKpR8y5lJo2vkX00VcTwcoPf0/UdhjNnpYKjSDC+bXA oyCDmdzCwbx/3Vzobr2tDOgp0Di7ZQbmXVvh8hI3tGnTnYTU27d+RTLbVQWs4BLO/DYy jUtZsU7HFarDTwtbNj6UapJIoqqW64QivbNIcPoGExe1xayGgV4lPusKzu2ETzQliUgy +VQVSBb+qFp7v/MXv3krUXEvcMq/CPfMhMKKj8+8lpRwegTIM1W9Xspb9s3PQDC4PVPN HxbA== X-Gm-Message-State: APf1xPDK7PU7NnTTWFF2P+hjPZn4x8G2uZDR8Aad7R9e8NxdC8OPa17+ /ianH5vBYjN9G9RjV6TpPD+yrA== X-Google-Smtp-Source: AG47ELtE6DABcpT/RAoPrwY0R8uPd/BuxPmJYNWNrv3dyNXCIQJ5PtX5PHlDYFs3ZBMq33BvY9vQwQ== X-Received: by 10.107.28.195 with SMTP id c186mr32232010ioc.30.1520507510647; Thu, 08 Mar 2018 03:11:50 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id m32sm8717024iti.3.2018.03.08.03.11.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Mar 2018 03:11:49 -0800 (PST) From: Noam Postavsky To: Alex =?utf-8?Q?Benn=C3=A9e?= Subject: Re: bug#30749: 26.0.91; (cl-)case is confused when a nil atom is used instead of a keylist References: <87fu5azwsk.fsf@linaro.org> Date: Thu, 08 Mar 2018 06:11:48 -0500 In-Reply-To: <87fu5azwsk.fsf@linaro.org> ("Alex \=\?utf-8\?Q\?Benn\=C3\=A9e\=22's\?\= message of "Thu, 08 Mar 2018 10:28:11 +0000") Message-ID: <87o9jy2557.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30749 Cc: 30749@debbugs.gnu.org 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 (/) Alex Benn=C3=A9e writes: > I got confused why my case statement was failing as I'd used the second > form assuming that having nil as an atom would work. I'm not sure why > the quoting fixed it but it's certainly a confusing inconsistency. 'nil is the same as (quote nil) > I think this is probably fixable with just making the docstring clearer > as the results of handling the duel atom/list of nil might have > unexpected results. So just add a "non-nil" perhaps? --- i/lisp/emacs-lisp/cl-macs.el +++ w/lisp/emacs-lisp/cl-macs.el @@ -763,7 +763,7 @@ cl-case "Eval EXPR and choose among clauses on that value. Each clause looks like (KEYLIST BODY...). EXPR is evaluated and compared against each key in each KEYLIST; the corresponding BODY is evaluated. -If no clause succeeds, cl-case returns nil. A single atom may be used in +If no clause succeeds, cl-case returns nil. A single non-nil atom may be = used in place of a KEYLIST of one atom. A KEYLIST of t or `otherwise' is allowed only in the final clause, and matches if no other keys match. Key values are compared by `eql'. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 06:35:09 2018 Received: (at 30749) by debbugs.gnu.org; 8 Mar 2018 11:35:09 +0000 Received: from localhost ([127.0.0.1]:50243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ettpF-0006rS-4D for submit@debbugs.gnu.org; Thu, 08 Mar 2018 06:35:09 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ettpD-0006qu-5J for 30749@debbugs.gnu.org; Thu, 08 Mar 2018 06:35:07 -0500 Received: by mail-wm0-f43.google.com with SMTP id x7so10411319wmc.0 for <30749@debbugs.gnu.org>; Thu, 08 Mar 2018 03:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=NUCP2RozkaxWJEmYN0QDBPPkvPRPonsC0r6B2pzIYbg=; b=R1FK49akVaLDqKnCw2qqYHTUqUnpi0E1TxxKbn8kHv0BOnEq+jp1Eo8j0/0qqXxt6z wq0jjexf6HL9nWvcqeKFtON2NqIH/eRcZybhTh6byrx22fucAXbxq95qVDsv/NfbIPIB IvxHRJCR0FW72EKdXQiZmoZ63ZWIIO2UII3zc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=NUCP2RozkaxWJEmYN0QDBPPkvPRPonsC0r6B2pzIYbg=; b=qArQdZ94XCaRNcc4rTkrvGMNYtmyHoJ5EoyHqyXlQfv2THIOZrJ9Y7os+zN/6h5aFR QAiSCgPrI3ex5j9Fnjxown2w5qDQZui/R0S4BKgBSwWACjL77+mODDgMwpAePdC4hjpg LtxhwWtqyHi+253O8YWT7pmG+okJ6NMFl2njj5WL5MddrTMFZy7NFjo8XNnByCtC2+1k EWbGo/OBNUgNWglex3WEEnRYHPbZGyMqJR0Vf0U6y42MBytUIHE3MnwjYN4b6ybeBU0F vCp34na/09/fDT/6lNRze/4kqBtWM2Fxga30QHQHn5T2p74DwA5ZXF1rVYjjJ9zwvPLJ ewoQ== X-Gm-Message-State: AElRT7G4JPA3DuiMa1ALQbf6ydtWjxQbIcK7PPJ9PxtgaIj7NjtO7KEQ RCw5o+Qiz7TmqiIQNr+U7G6VcmqE9AE= X-Google-Smtp-Source: AG47ELsUVLoIYP7+dESLjnDXso8WbEsd4uliflx89kLlc9MJYOUOqtUlbPfO2Z02aO747tz7q6gFdQ== X-Received: by 10.28.113.205 with SMTP id d74mr19006091wmi.3.1520508901139; Thu, 08 Mar 2018 03:35:01 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p199sm4432574wmb.42.2018.03.08.03.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 03:35:00 -0800 (PST) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 0080C3E034A; Thu, 8 Mar 2018 11:34:59 +0000 (GMT) References: <87fu5azwsk.fsf@linaro.org> <87o9jy2557.fsf@gmail.com> User-agent: mu4e 1.1.0; emacs 26.0.91 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Noam Postavsky Subject: Re: bug#30749: 26.0.91; (cl-)case is confused when a nil atom is used instead of a keylist In-reply-to: <87o9jy2557.fsf@gmail.com> Date: Thu, 08 Mar 2018 11:34:59 +0000 Message-ID: <87efkuztp8.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30749 Cc: 30749@debbugs.gnu.org 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 (/) Noam Postavsky writes: > Alex Benn=C3=A9e writes: > >> I got confused why my case statement was failing as I'd used the second >> form assuming that having nil as an atom would work. I'm not sure why >> the quoting fixed it but it's certainly a confusing inconsistency. > > 'nil is the same as (quote nil) Ahh so ends up as a list containing nil? > >> I think this is probably fixable with just making the docstring clearer >> as the results of handling the duel atom/list of nil might have >> unexpected results. > > So just add a "non-nil" perhaps? > > --- i/lisp/emacs-lisp/cl-macs.el > +++ w/lisp/emacs-lisp/cl-macs.el > @@ -763,7 +763,7 @@ cl-case > "Eval EXPR and choose among clauses on that value. > Each clause looks like (KEYLIST BODY...). EXPR is evaluated and compared > against each key in each KEYLIST; the corresponding BODY is evaluated. > -If no clause succeeds, cl-case returns nil. A single atom may be used in > +If no clause succeeds, cl-case returns nil. A single non-nil atom may b= e used in > place of a KEYLIST of one atom. A KEYLIST of t or `otherwise' is > allowed only in the final clause, and matches if no other keys match. > Key values are compared by `eql'. Works for me. -- Alex Benn=C3=A9e From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 10 17:58:10 2018 Received: (at 30749) by debbugs.gnu.org; 10 Mar 2018 22:58:10 +0000 Received: from localhost ([127.0.0.1]:54554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eunRK-0007U1-5A for submit@debbugs.gnu.org; Sat, 10 Mar 2018 17:58:10 -0500 Received: from mail-it0-f48.google.com ([209.85.214.48]:55196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eunRH-0007Tf-T6; Sat, 10 Mar 2018 17:58:08 -0500 Received: by mail-it0-f48.google.com with SMTP id c11so6851463ith.4; Sat, 10 Mar 2018 14:58:07 -0800 (PST) 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:content-transfer-encoding; bh=7/OAlicsrhk27iGu2k4nBWtO3vLSnqm8d4F/cSTxUjk=; b=SspG7pqIEc+XAxAu7cJ/1E8WP0twcNEs4/nTqbljH0k6KWdl+B2ZiYcicMUwTKa2Qk F39DzuNAJkEJwbvPJXc1lICXmGqA1MPRWFxGqwcRtxV5M1uiW5VfQkUpn81GTdHGoPN+ wFiQ3cQwJTjuG+5cp/nWjFuxFmSBqGAs4WCFJOHCbLZPb+CznIPS83YzGOIfH+Xjm/+R LeNHuT45XIYGSiMauYBQnVSbP4458MQpRekmbY332weVpO9fcRN5Nlx3hQVRvlqAdB2P M5yjDzkeCPYec1dfOdiormFM3cX3xpx+nFFTk5em/MpEjqnf9haWQbYBNDaEEChRah1b ax5Q== 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:content-transfer-encoding; bh=7/OAlicsrhk27iGu2k4nBWtO3vLSnqm8d4F/cSTxUjk=; b=Up/Ezkha1z6zsmQnNXE7kksL5qvcpZx1o1V+appONvXI1WQwxlFIL9E5YHskplJokg QqDwOOLdZT3MB0dXYwDfJ5fL9iXtLNwxj30eUH85S2eZ6DvA4poEzgFH0k9heKn9JK+h 9SlDgJjZfgwvOy1Jmq2L6ELAuPwSighPlE4PtajGbWQX0ehLnAx/AFqN7uH4/CzkvdpO Ax3EEb1uc0q3RXhksY+bCG0zFNmwy2HeykJFiopbxuy2sCTHZ5uXp59fPf0YAQ7WxhVB DqtcHxqb4x88c/WhNGm58nBiqEIklLtvWJ3HEVpD5wl0PYs3y6EluLyy5WOLqf+6C22G 8y+A== X-Gm-Message-State: AElRT7HBhFR+5z4T4716agVfcx7xwALVvQ2Jtkkkds9rSnx8ARCjUYR7 jAEcv8UPA3lduyW+xdPPp+Ozkw== X-Google-Smtp-Source: AG47ELsrpYFJwM8XtSJ6BNXHqucb3g2+d6XiT/YjQ3ic/MFj5zJDuvJy7N99a+JU179JVE81izx3Bw== X-Received: by 10.36.73.95 with SMTP id z92mr3353360ita.38.1520722680394; Sat, 10 Mar 2018 14:58:00 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g62sm1760249iod.3.2018.03.10.14.57.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Mar 2018 14:57:59 -0800 (PST) From: Noam Postavsky To: Alex =?utf-8?Q?Benn=C3=A9e?= Subject: Re: bug#30749: 26.0.91; (cl-)case is confused when a nil atom is used instead of a keylist References: <87fu5azwsk.fsf@linaro.org> <87o9jy2557.fsf@gmail.com> <87efkuztp8.fsf@linaro.org> Date: Sat, 10 Mar 2018 17:57:58 -0500 In-Reply-To: <87efkuztp8.fsf@linaro.org> ("Alex \=\?utf-8\?Q\?Benn\=C3\=A9e\=22's\?\= message of "Thu, 08 Mar 2018 11:34:59 +0000") Message-ID: <87po4bzgg9.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30749 Cc: 30749@debbugs.gnu.org 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 30749 fixed close 30749 26.1 quit Alex Benn=C3=A9e writes: > Noam Postavsky writes: > >> 'nil is the same as (quote nil) > > Ahh so ends up as a list containing nil? Yup. >> -If no clause succeeds, cl-case returns nil. A single atom may be used = in >> +If no clause succeeds, cl-case returns nil. A single non-nil atom may = be used in > Works for me. Pushed to emacs-26. [1: e244fed5e0]: 2018-03-10 17:56:04 -0500 Clarify that nil doesn't match itself as a cl-case clause (Bug#30749) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3De244fed5e041c706= dd10c60bd893634902f04aaa From unknown Tue Jun 17 01:42:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 08 Apr 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator