From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56739: 29.0.50; `cl-psetq' and `cl-psetf' fail to recognize symbol macros Date: Sat, 09 Sep 2023 11:24:43 +0200 Message-ID: References: <8735eeyz7e.fsf@web.de> <87y1w6xjmg.fsf@web.de> <87h6o55pn8.fsf@web.de> <87msxvg9jj.fsf@web.de> <1068bf85-4fd0-43a1-9aba-71d71312c4f1@outlook.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3733"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "56739@debbugs.gnu.org" <56739@debbugs.gnu.org> To: Wing Hei Chan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 09 11:26:17 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 1qeuEL-0000pm-0f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Sep 2023 11:26:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeuE6-0002tS-Mv; Sat, 09 Sep 2023 05:26:02 -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 1qeuE3-0002rk-JI for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 05:25:59 -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 1qeuE3-0000wc-Am for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 05:25:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeuE5-0001KD-Md for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Sep 2023 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56739 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56739-submit@debbugs.gnu.org id=B56739.16942515025008 (code B ref 56739); Sat, 09 Sep 2023 09:26:01 +0000 Original-Received: (at 56739) by debbugs.gnu.org; 9 Sep 2023 09:25:02 +0000 Original-Received: from localhost ([127.0.0.1]:46100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeuD7-0001IZ-Ul for submit@debbugs.gnu.org; Sat, 09 Sep 2023 05:25:02 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:49418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeuD2-0001IJ-VH for 56739@debbugs.gnu.org; Sat, 09 Sep 2023 05:24:59 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-502984f5018so3303436e87.3 for <56739@debbugs.gnu.org>; Sat, 09 Sep 2023 02:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694251488; x=1694856288; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9zqX8bfcjKpjj6gJvlUIFYTyA6+i1lHxWGfzyfjyEVs=; b=pg8TCiFCURKv+JqueNaJP4UtA5VqQxt3TYjo71wCLOWxziXlXVLd8ekv4YOCZS/9F6 Jt3RuTjLwtMn+vef8aDPSRLRvwSgDe7Rcs7+BeCNpEr5cUMj6gdJnbWmm4hLKrNJxSKP xT556dZp4l43K2oaOxsYyTX3sjm/xUFSYzgUBStrVKURhVBAFCxCIZtFVfNLrSMMKdek 1kOmJkuyxXLfAbhM6GJDMgHPv3IIt1LnBzwmU1/2nu4BjTqdmqUUC/s/0NZvkrsb30e2 1uTkYxuGys0Yx+6gzLjgjMwP7XaDMX1/dHN/dGUHoLhxjc+waSjQEPVaoCfpwOAY3b/u 5R8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694251488; x=1694856288; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9zqX8bfcjKpjj6gJvlUIFYTyA6+i1lHxWGfzyfjyEVs=; b=MK2SgYWIMikPSi4PvP7xP/ef11kGRN4dlvDnGWxJzhSFoQIyJGFyLKTQDcdKnV8m0y /F4A0BeRed1iSUiesOMNSWhQOdvg9vekeWzNJi+Vji65wyaCdLDolDNrlVbXdXjVKM97 xZqqZEXHnvEF7NkwNWI8rvW0hd1ARxIraB5/LG8dgPd3c8yrVAQulz+c4gnI6s45+Ho2 RboBN63/Ru1HFO0RxGfkms1cNj9kkWkcUu/cQ6frZugCEfxAUlZ9rsSamRg/a6e8hI9U wmQksnP1By2R0zQohbDZKmoDTZEVDGtsdTa2BBmQguw/holkLW5gHeQl/PCGfzrf1ufG nVug== X-Gm-Message-State: AOJu0YzCZRJCuqHfGSE9QziMiOtpKDCqSCVC+dvrkqlAoa29DD2zQno4 5/C/fYcu0du+5dqWaEy9FnFBDR2pxJHEBw== X-Google-Smtp-Source: AGHT+IFBOR7NI5QybfQrKx7qH5/BVRsic+ohvi+WDhkLXFokW7yaprStIf+cKDeCWVsUXxSAAr2Nlw== X-Received: by 2002:a05:6512:788:b0:4fb:9e1a:e592 with SMTP id x8-20020a056512078800b004fb9e1ae592mr3299132lfr.4.1694251487395; Sat, 09 Sep 2023 02:24:47 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a37b.dip0.t-ipconnect.de. [79.227.163.123]) by smtp.gmail.com with ESMTPSA id g15-20020a056402180f00b00523b1335618sm1929696edy.97.2023.09.09.02.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Sep 2023 02:24:46 -0700 (PDT) In-Reply-To: <1068bf85-4fd0-43a1-9aba-71d71312c4f1@outlook.com> (Wing Hei Chan's message of "Sat, 9 Sep 2023 08:03:42 +0000") 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:269843 Archived-At: Wing Hei Chan writes: > Resending this message as I didn't send it to the thread. > > > Afaik, *left-hand* side symbol macros are all handled correctly: > > > > - `setq' is handled by `cl-symbol-macrolet' itself; > > - `setf' expands symbol macros as needed; > > - `cl-setq' and `cl-setf' expand to `setf'. > > > > The original bug is about *right-hand* side symbol macros, namely that > > `cl-setq' and `cl-setf' can introduce an unsound optimization in such > > cases. In fact, I'm not sure this optimization is needed anymore (see > > Stefan's comment). The simplest way to fix the bug is to remove the > > optimization, but I'll leave the decision to more knowledgeable people. Then I've possibly misunderstood what this is about, sorry.