From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38665: [PATCH] Add nosqueeze for fill-paragraph Date: Tue, 19 May 2020 17:15:50 +0300 Message-ID: <83ftbw80yx.fsf@gnu.org> References: <16f1b2142c1.db34a11d477759.6290031006911449352@aoeu2code.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="28646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 38665@debbugs.gnu.org, jefferson@aoeu2code.com To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 19 16:16:30 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 1jb32i-0007Km-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 16:16:28 +0200 Original-Received: from localhost ([::1]:37568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb32h-0008RG-RJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 10:16:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb32I-0008CW-Tq for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 10:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb32I-00030H-IV for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 10:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jb32I-0004Bs-DB for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 10:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 May 2020 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38665-submit@debbugs.gnu.org id=B38665.158989776116098 (code B ref 38665); Tue, 19 May 2020 14:16:02 +0000 Original-Received: (at 38665) by debbugs.gnu.org; 19 May 2020 14:16:01 +0000 Original-Received: from localhost ([127.0.0.1]:50695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jb32G-0004BZ-LR for submit@debbugs.gnu.org; Tue, 19 May 2020 10:16:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jb32F-0004BO-Nb for 38665@debbugs.gnu.org; Tue, 19 May 2020 10:15:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51845) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb329-0002x2-Mp; Tue, 19 May 2020 10:15:54 -0400 Original-Received: from [176.228.60.248] (port=4189 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jb329-0003ou-68; Tue, 19 May 2020 10:15:53 -0400 In-Reply-To: (message from Stefan Kangas on Mon, 18 May 2020 21:13:27 -0700) 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:180594 Archived-At: > From: Stefan Kangas > Date: Mon, 18 May 2020 21:13:27 -0700 > Cc: 38665@debbugs.gnu.org > > > Use case: I'm writing markdown text that goes something like > > > > Outputs a 12-character string blah blah blah blah or if blah blah blah, returns `" "`. > > > > In which the markdown contains a literal string with 12 spaces. When I run fill-paragraph on that, the spaces get collapsed down to 1 space, so I added a customization option to keep the 12-space string unchanged. > > Thanks for the patch, and sorry for the much the delayed response. > > I think this could go in, if some people find it useful. It sounds strange to me to have a defcustom for this. Are you saying that you want this no-squeeze variant for all or many M-q commands or for prolonged periods of time? It sounds like a one-off feature, so perhaps some special value of the prefix argument, like zero or maybe "C-u C-u", would be a better UI, as that would allow one to activate this option for a specific command.