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


Message #56 received at 72704 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Joseph Turner <joseph <at> breatheoutbreathe.in>
Cc: briandg <at> gmail.com, Richard Stallman <rms <at> gnu.org>, 72704 <at> debbugs.gnu.org
Subject: Re: bug#72704: 29.4; repunctuate-sentences ignores NO-QUERY
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")




This bug report was last modified 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.