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

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 08 Jun 2022 14:05:33 +0200

Juri Linkov <[email-masked]> writes:

>> Does anybody know of a more general solution to this?
>
> This feature is broken by design as I explained in
> https://debbugs.gnu.org/45617#17

Hm...  Is there any way forward here?  Could we institute some special
form to be used in interactive specs that will be recorded in
command-history in a useful manner?  That is, code that today is:

	   (if (use-region-p) (region-beginning))
	   (if (use-region-p) (region-end))

could be something like

          (interactive-region-beginning)
          (interactive-region-end)

and whatever updates command-history would reify those as is instead of
their return values?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no