[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56739: 29.0.50; `cl-psetq' and `cl-psetf' fail to recognize symbol m
From: |
Wing Hei Chan |
Subject: |
bug#56739: 29.0.50; `cl-psetq' and `cl-psetf' fail to recognize symbol macros |
Date: |
Sat, 9 Sep 2023 08:03:42 +0000 |
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.