[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45607: 27.1; compiled replace-string breaks repeat-complex-command
From: |
Lars Ingebrigtsen |
Subject: |
bug#45607: 27.1; compiled replace-string breaks repeat-complex-command |
Date: |
Thu, 09 Jun 2022 20:56:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> So we need a brand new way to specify which options are
> `region-beginning' etc. Perhaps with a declare form? (That translates
> into symbol properties, I guess.)
I.e.,
(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))))
and fix_command would pick them up from the symbol plist and use those
forms instead of the value for these arguments.
This could be generally useful if we have other things like this that we
want to have reified in a particular way in the command history.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no