Subject: bug#72704: 29.4; repunctuate-sentences ignores NO-QUERY

From: Juri Linkov <[email-masked]>
Date: Sun, 25 Aug 2024 09:51:05 +0300

> Juri, do I need to update the interactive-args declaration?  I'm not
> totally clear on how that works.

'current-prefix-arg' can't be added to 'interactive-args'.
This is because with this form

    (declare (interactive-args (start (use-region-beginning))
                               (end (use-region-end))))

'C-x M-:' (repeat-complex-command) produces such prompt:

  (repunctuate-sentences '(4) (use-region-beginning) (use-region-end))

Here '(4) is hard-coded from the previous command, and it's impossible
to override it with a dynamic prefix argument such as 'C-u C-x M-:'
because it will clash with the prefix argument of 'repeat-complex-command'
that is used as a count ARGth:

  (defun repeat-complex-command (arg)
    "Edit and re-evaluate last complex command, or ARGth from last.
    ...
    (interactive "p")