From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43299: 28.0.50; message-newline-and-reformat does not insert space after citation prefix Date: Thu, 10 Sep 2020 23:28:27 +0200 Message-ID: <877dt148zo.fsf@gnus.org> References: <877dt24orw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43299@debbugs.gnu.org To: Amin Bandali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 10 23:29:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGU7x-0008Ce-RT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Sep 2020 23:29:09 +0200 Original-Received: from localhost ([::1]:50062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGU7w-0007tW-QB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Sep 2020 17:29:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGU7q-0007tG-0S for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2020 17:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGU7p-0004pr-Nu for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2020 17:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGU7p-000759-Kn for bug-gnu-emacs@gnu.org; Thu, 10 Sep 2020 17:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Sep 2020 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43299 X-GNU-PR-Package: emacs Original-Received: via spool by 43299-submit@debbugs.gnu.org id=B43299.159977332027182 (code B ref 43299); Thu, 10 Sep 2020 21:29:01 +0000 Original-Received: (at 43299) by debbugs.gnu.org; 10 Sep 2020 21:28:40 +0000 Original-Received: from localhost ([127.0.0.1]:41481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGU7U-00074M-FU for submit@debbugs.gnu.org; Thu, 10 Sep 2020 17:28:40 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:42912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGU7S-000747-S8 for 43299@debbugs.gnu.org; Thu, 10 Sep 2020 17:28:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BwIkk5TK0Sf+qiXJUrsfm+CL6eM/l5lnkZgCc86wToE=; b=SAslHvoStonxjZyIWhD5R0g27o jV4y7xYr6A6sekla3JSTmYSJEmPq5gSYJl9t1EStQWON8C2wAd1xZvH/VmAnXGcoozAUN+pXFbcXU wG3jiyG/3gBADX+3hxbhQgp0Al9cq42OPulunBVwcLRELpKWFLv4xymiDAsu6a5YTrdw=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGU7J-0002PS-42; Thu, 10 Sep 2020 23:28:32 +0200 X-Now-Playing: Jon Eberson Group's _City Visions_: "Visions" In-Reply-To: <877dt24orw.fsf@gnu.org> (Amin Bandali's message of "Wed, 09 Sep 2020 17:35:15 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187777 Archived-At: Amin Bandali writes: > Currently, the `message-newline-and-reformat' function (bound to M-RET > in `message-mode') does not insert an empty space after the citation > prefix (e.g. '>') when reformatting the lines following the point in a > common use scenario. I would like the behaviour to change, or at least > an option be added to have `message-newline-and-reformat' insert a space > after each '>'. > > Example: > >> test0 >> >> test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11 test12 The problem here is that there's no space after that > character. If it had been > test0 > > test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11 test12 instead (if that trailing space survives the mailing process) then you get > test0 > > > test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11 > test12 Hm... OK, I think I found it -- I think there was a reversed check for the length of the spaces in the following paragraph? I pushed a fix to Emacs 28 that seems to fix this use case, but I'm not exactly confident that this doesn't introduce other oddities. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no