Subject: Re: bug#45607: 27.1; compiled replace-string breaks repeat-complex-command

From: Juri Linkov <[email-masked]>
Date: Wed, 06 Jul 2022 21:39:11 +0300

>>>> (defun replace-string (from-string to-string &optional delimited start end backward region-noncontiguous-p)
>>>> ...
>>>>   (declare (arg start (if (use-region-p) (region-beginning)))
>>>>            (arg end (if (use-region-p) (region-end))))
>
> My `declare' suggestion would just make this work again, and fix
> a regression.  That is, this isn't new functionality.

Does `declare' put some property on the command's symbol?
Then if a user doesn't want this fix_command thing, it's
easy to customize and remove a special property from the symbol
of a command like `replace-string'.