GNU bug report logs -
#72704
29.4; repunctuate-sentences ignores NO-QUERY
Previous Next
Full log
View this message in rfc822 format
On August 24, 2024 11:51:05 PM PDT, Juri Linkov <juri <at> linkov.net> wrote:
>> 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")
That's very clear. Thanks for the explanation!!
This bug report was last modified 289 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.