From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#16655: 24.3.50; M-q on a command line does mix up commands and comments Date: Thu, 26 Sep 2019 14:55:15 +0200 Message-ID: References: <86fvnxa5tf.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="196019"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 16655@debbugs.gnu.org To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 14:56:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDTJh-000opW-6j for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2019 14:56:17 +0200 Original-Received: from localhost ([::1]:35552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDTJf-0007Br-W7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2019 08:56:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45632) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDTJU-000731-EI for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 08:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDTJT-0008Ii-6Y for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 08:56:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDTJT-0008Id-3F for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 08:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDTJS-000744-Vv for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2019 08:56:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86fvnxa5tf.fsf@somewhere.org> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Sep 2019 12:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16655 X-GNU-PR-Package: emacs Original-Received: via spool by 16655-submit@debbugs.gnu.org id=B16655.156950253527108 (code B ref 16655); Thu, 26 Sep 2019 12:56:02 +0000 Original-Received: (at 16655) by debbugs.gnu.org; 26 Sep 2019 12:55:35 +0000 Original-Received: from localhost ([127.0.0.1]:42918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDTJ1-00073A-2S for submit@debbugs.gnu.org; Thu, 26 Sep 2019 08:55:35 -0400 Original-Received: from mail-pf1-f176.google.com ([209.85.210.176]:46778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDTIz-00072x-BV for 16655@debbugs.gnu.org; Thu, 26 Sep 2019 08:55:33 -0400 Original-Received: by mail-pf1-f176.google.com with SMTP id q5so1766051pfg.13 for <16655@debbugs.gnu.org>; Thu, 26 Sep 2019 05:55:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=AzXb/LAE849bcy/ya3sAIwn3OWOL7UoC32PHVC9ir/c=; b=JN4WT2j+xF4AhCsIWnC7vHlo38wUGKzGPlvoyRZoHhdHls9G7Lpgutq1mgPQidIIcA /HwIoB0ZcTDfMu0K5jkcQqPj2P07gOMZFxFuaVgsUTEcVglja7ACz47VRZ3eSTw00R8Z 2K88wfLvpRXnNi4bxRJ0XMg/HOXur/D71rPv6adMhYN1ijmfGYVYrDZpZlvIk5E+4aOu HxfgsswNNeCvauERiuWRQgPRz+VUKS+A0/71ugKTQdX0Ga9uti+VEzCVRg8aVoohf9b0 Ft/QFNEgY1TtinHkKxI1ZIL7JBMj7mnYj3woAssXTuvZirw3AgPMyHZbRpyXggh7fQnp bIoA== X-Gm-Message-State: APjAAAVyMGmWxf9xbQ4pr4YTkUth5iV2n15SmvErKrA8Y7QXNFvF+B53 /oCGbqhbixLOcoE3smH3Cz52MrHuPdYr60YYV8oGRsc6/Is= X-Google-Smtp-Source: APXvYqzOBPLSByzoYzBU1Oc0A4SAoefPe86iaFypZK/eVsKN/3PPxxujusl8OPvsaiUrcq2G5cuuYInEc0jQAwajFv8= X-Received: by 2002:a17:90b:8d1:: with SMTP id ds17mr3505795pjb.106.1569502526630; Thu, 26 Sep 2019 05:55:26 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167242 Archived-At: tags 16655 + confirmed found 16655 25.1 found 16655 26.1 quit Marcin Borkowski writes: > I'm writing to confirm that this is still present in GNU Emacs > 25.1.50.1. To make it a bit more precise: the OP means M-q with point > on either the 3rd line of the script (i.e., the line beginning with "# > display"), which works fine, and then M-q on the fourth line (i.e., the > line beginning with "echo"), which breaks as described below. [...] >> With such a shell script file: >> >> #!/bin/sh >> >> # display symbol definitions, as found in the relevant manual (for AWK, C, Emacs Lisp, and other languages that have documentation in Info) >> echo Some text >> >> >> We can observe that: >> >> - `M-q' done on the first line will correctly refill the comment into >> 2 lines >> >> # display symbol definitions, as found in the relevant manual (for AWK, C, >> # Emacs Lisp, and other languages that have documentation in Info) >> echo Some text >> >> >> - `M-q' done on the second line will completely break the code: >> >> # display symbol definitions, as found in the relevant manual (for AWK, C, >> Emacs Lisp, and other languages that have documentation in Info) echo Some text >> >> See http://screencast.com/t/XGs10gmz0m2. I can reproduce this on Emacs 26.1 and current master. Best regards, Stefan Kangas