GNU bug report logs - #72704
29.4; repunctuate-sentences ignores NO-QUERY

Previous Next

Package: emacs;

Reported by: Brian Green <briandg <at> gmail.com>

Date: Sun, 18 Aug 2024 22:50:02 UTC

Severity: normal

Found in version 29.4

Full log


View this message in rfc822 format

From: Joseph Turner <joseph <at> breatheoutbreathe.in>
To: Juri Linkov <juri <at> linkov.net>
Cc: briandg <at> gmail.com, Richard Stallman <rms <at> gnu.org>, 72704 <at> debbugs.gnu.org
Subject: bug#72704: 29.4; repunctuate-sentences ignores NO-QUERY
Date: Sun, 25 Aug 2024 08:11:37 -0700

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.