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

From: Eli Zaretskii <[email-masked]>
Date: Tue, 09 Aug 2022 22:25:44 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: Juri Linkov <[email-masked]>,  [email-masked],
>   [email-masked],  [email-masked]
> Date: Tue, 09 Aug 2022 21:15:51 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Bonus points for calling use-region-p just once, not twice.
> 
> I don't really see a convenient way to do that in these cases -- the
> only ones I could think of (adding a new function to return both
> start/end, and then splice the results in into the `interactive' specs
> etc) would lead to obfuscated code.

What about cl-destructuring-bind and its ilk?

> (And it's not like this is performance critical anyway.)

It's IMO inelegant to make the same test twice in a row.