From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#51368: 29.0.50; `cl-case' should error on incorrect use Date: Sun, 1 Oct 2023 10:03:50 -0700 Message-ID: References: <03810284-957B-4ABD-8013-E9746FAFC17E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51368@debbugs.gnu.org, Philipp Stephani , Lars Ingebrigtsen , Stefan Monnier To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 01 19:05:06 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qmzsP-0008E9-66 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Oct 2023 19:05:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmzs7-000207-Hc; Sun, 01 Oct 2023 13:04:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmzs6-0001zz-8s for bug-gnu-emacs@gnu.org; Sun, 01 Oct 2023 13:04:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qmzs6-0005px-02 for bug-gnu-emacs@gnu.org; Sun, 01 Oct 2023 13:04:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmzsL-0006yI-KA for bug-gnu-emacs@gnu.org; Sun, 01 Oct 2023 13:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Oct 2023 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 51368-submit@debbugs.gnu.org id=B51368.169617985526718 (code B ref 51368); Sun, 01 Oct 2023 17:05:01 +0000 Original-Received: (at 51368) by debbugs.gnu.org; 1 Oct 2023 17:04:15 +0000 Original-Received: from localhost ([127.0.0.1]:35228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmzrb-0006ws-9x for submit@debbugs.gnu.org; Sun, 01 Oct 2023 13:04:15 -0400 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:53605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmzrZ-0006wa-Nt for 51368@debbugs.gnu.org; Sun, 01 Oct 2023 13:04:14 -0400 Original-Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c16757987fso163859301fa.3 for <51368@debbugs.gnu.org>; Sun, 01 Oct 2023 10:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696179831; x=1696784631; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hy6Ck4d5iRGvVYI34I5Gmp/ym76zZr6bwg+NDiwCAFE=; b=ZLNwzmx0aD2VQ6AT+G/hcUdD4eXimekIyBVrTpvoo96Bkpfg8yZIO+t5fAvjC6XVCC Zon6480EbkwJ3s9/Z8qFlS9SeZz1+UgnB91YS4hntZOq5cN7ftak9pBfjTv+Q9296J9b Spm0SxTq2odZt6sJSw9UXS6CGrzSaVrOvEqtVSetpuX+6yYIFvrFXnP7N4fq4UBhhxjA DK1MJRHTp9KGGJMqU+pW62pjl2siAVegto0/iaTwTroIq7MDIDV9iB8oTqaQWieEDYa8 zy/x4ls0bMaB/sRgg1d4bSR0DwloraRm4sqd4o0e0mG2WBPbkSCwib3rEIWwHoHQ9+8H BE9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696179831; x=1696784631; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Hy6Ck4d5iRGvVYI34I5Gmp/ym76zZr6bwg+NDiwCAFE=; b=d5RWjsp+dxnjwzZcO1EbEk5fiGvGmIZv5zIHgSqpvle2TVYIkognqUg8PllHsZOHrO 3A57O8zsJG4pBhU39eEkb7cTeKLmyMyI/bFNFGs8xObZv6aoMS8cYOT/U3JTdTuIbKVt /TFXjLVlpyeKD+fZQ5WgwMRgq4dflHXH0MemO/caZcutOLVeJq7G0DduqeWp7eyQy9fj NlSklyc2BS7tRbYO3X7Tri+6eB6m3WZfrjl3te37yRs0eyPzxVVCCn6o8uJlZJERpWOj lxa3odgapP0wA8AhqBeyfb9YwTuxLN/dmj8JZ8/+pvkcV4dk4IQNwn/VY5TqLRog29Ew dr6g== X-Gm-Message-State: AOJu0Yz4NlMm6uzkwNLWNVbXWaOgpXJyJArHrGYEMMVbo4heOyBSFcof 75owaGkyWRCOeXcPvIzE3bVdk2UlFXediJuslRw= X-Google-Smtp-Source: AGHT+IFjYKb8aNMf9u2tfGLcyxQHu8VokYZzyRpObMDgAceKTcVsResCO3hcltRAdzRn8REUFN32qBRhUqQx9sBTz8U= X-Received: by 2002:a2e:a554:0:b0:2c2:97b9:4a95 with SMTP id e20-20020a2ea554000000b002c297b94a95mr2836878ljn.15.1696179831224; Sun, 01 Oct 2023 10:03:51 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 1 Oct 2023 10:03:50 -0700 In-Reply-To: <03810284-957B-4ABD-8013-E9746FAFC17E@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271632 Archived-At: Mattias Engdeg=C3=A5rd writes: >> (cl-case EXP >> ((a b) FOO) >> ((a c) BAR)) >> >> won't warn about the duplicate `a`. > > I was curious how common this could be so I locally added a warning to th= e back-end in bytecomp that generates switches (attached), and bootstrapped= Emacs. Results: > > ---------------- > In gnus-cloud-decode-data: > lisp/gnus/gnus-cloud.el:154:6: Warning: Duplicated value in =E2=80=98cond= =E2=80=99: base64-gzip > > In netrc-parse: > lisp/obsolete/netrc.el:106:22: Warning: Duplicated value in =E2=80=98cond= =E2=80=99: "macdef" > > In org-read-date-analyze: > lisp/org/org.el:14041:15: Warning: Duplicated value in =E2=80=98cond=E2= =80=99: "" > > In org-html-latex-fragment: > lisp/org/ox-html.el:3099:8: Warning: Duplicated value in =E2=80=98cond=E2= =80=99: t > ----------------- Thanks, I added FIXMEs for them on master.