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 #8 received at 72704 <at> debbugs.gnu.org (full text, mbox):

From: Joseph Turner <joseph <at> breatheoutbreathe.in>
To: Brian Green <briandg <at> gmail.com>
Cc: 72704 <at> debbugs.gnu.org
Subject: Re: bug#72704: 29.4; repunctuate-sentences ignores NO-QUERY
Date: Sun, 18 Aug 2024 21:48:26 -0700
Brian Green <briandg <at> gmail.com> writes:

> 1. Visit any buffer containing text with sentences separated by one
> space instead of two.  
> 2. "C-u M-x repunctuate-sentences"
>
> Expected: "repunctuate-sentences" should repunctuate all sentences such
> that they end with two spaces, without querying the user.
>
> Actual: "repunctuate-sentences" enters the query-replace-regexp
> interface, as if "C-u" had not been pressed.

NO-QUERY does take effect if you evaluate the function noninteractively:

(repunctuate-sentences t (point-min) (point-max))

To my reading, the docstring of repunctuate-sentences does not imply
that the prefix argument should have any effect interactively. I think
this is a simple, reasonable feature request.  What do others think?

Best,

Joseph




This bug report was last modified 288 days ago.

Previous Next


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