From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#28937: 26.0.60; Value after elisp docstring is filled (boundaries on forward-paragraph) Date: Sun, 22 Oct 2017 01:29:36 -0600 Message-ID: <87lgk3vdwf.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508657419 12731 195.159.176.226 (22 Oct 2017 07:30:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2017 07:30:19 +0000 (UTC) To: 28937@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 22 09:30:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Ahx-0001Ow-GN for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 09:30:05 +0200 Original-Received: from localhost ([::1]:60333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Ai4-0001oC-Cr for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 03:30:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Ahy-0001o1-G0 for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Ahv-0005fn-CQ for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:30:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6Ahv-0005f6-90 for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6Ahu-0002t5-VZ for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Oct 2017 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28937 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150865739611055 (code B ref -1); Sun, 22 Oct 2017 07:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2017 07:29:56 +0000 Original-Received: from localhost ([127.0.0.1]:54875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Aho-0002sE-A1 for submit@debbugs.gnu.org; Sun, 22 Oct 2017 03:29:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Ahm-0002s0-EL for submit@debbugs.gnu.org; Sun, 22 Oct 2017 03:29:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Ahg-0005bY-JQ for submit@debbugs.gnu.org; Sun, 22 Oct 2017 03:29:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e6Ahg-0005bR-GT for submit@debbugs.gnu.org; Sun, 22 Oct 2017 03:29:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Ahf-0001mK-GT for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:29:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Ahc-0005aJ-DM for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:29:47 -0400 Original-Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:51095) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6Ahc-0005Zz-8j for bug-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:29:44 -0400 Original-Received: by mail-io0-x22c.google.com with SMTP id 97so17107067iok.7 for ; Sun, 22 Oct 2017 00:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=1N38P0NI+QPJf9JEODk6o0t+Ts9IDIvgCZ6wqrCpQBw=; b=KvOlhXgBm3dfldLbdB/N2fHag1ptJmlIpB7QeR/VIpnhD0LwGa4mk6Q7j6lGPZ/C8y U9Or8pQ9ByYWzGuvPJdCjPavZ1QKwDTYIUXwTHjxvGE+KVuOTK3hTJpeSC1B1EkdyGsX SPPjHkCR+XDjae8Hel63jG8su7QJdVqfcWPjmwjqDD7mb8AF8OuzQaopIp+C3jNcYWHE Ho7sT4SQb/7WibxeNEDbKFDfa1lLFIL9gl1Mb7erdQWN37gQbtY6cdSRPHaXR+FmF3wZ 3iqxaNtMjLWNdOcbB8+IPQ1x6S07D1Aixt2E04yAsVPPC/KKq/X/dR99p/KNvckhch5I gqeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=1N38P0NI+QPJf9JEODk6o0t+Ts9IDIvgCZ6wqrCpQBw=; b=lswVwo7L1BaLkuYmdEgGod+DswPaAXEyN3oZjBvJ81slI237ivyJ1VO+gm1knEVVX9 00++1WryZ3Spy7oSiUuoRMgi6UrqkKjAGS2rNbReVhisqqyggbEtLCRqGpmCjAgdrXIk x/9n/bz+BS0u33TNpp7NjHoMuwQqntL8Lrjru78WO5QynbWcwvSmrXK6XGronyr1WBe1 dMivC+sKLfzwpnkrAULTZnpyhT+D6Rr40ee8g8fWHQvQ/Rz8S17og76HTHpnaoWmmtDI kvCTDN/Ehi29Az95HKuAIRJ5ZIAIGOZ54y6ALF3Nr0bNjGpkWiI5tdp1gZOSikTi5GU+ coLQ== X-Gm-Message-State: AMCzsaXCkDfq5wzJJTMUQhr/JtyvredPvHsK+jNNA4V5Hj7YEvOS3OUV w++aLZ58C9VGFo8ysom3+mzGhg== X-Google-Smtp-Source: ABhQp+T/5Aarfjw1kWnxxEWTP5OZjKLwSydmTrjuJvzFI+9cU0giRBLKlU75uiKl96JBSTrHceQ+DQ== X-Received: by 10.107.147.132 with SMTP id v126mr13232433iod.51.1508657382129; Sun, 22 Oct 2017 00:29:42 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id p127sm1179150itb.30.2017.10.22.00.29.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Oct 2017 00:29:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:138840 Archived-At: Consider: (defun test () "This is a test docstring. Here is some more text." 1 2 3 4 5) In an Emacs Lisp/Lisp Interaction buffer press `M-q' anywhere in the docstring to fill the above. Notice that 1 through 5 are all filled with the docstring, when none of them should be. Now consider: (defun test () "This is a test docstring. Here is some more text." 1 2 (3) 4 5) Now only 1 and 2 are filled. This is because forward-paragraph uses the `paragraph-start' regexp to find the start of a new paragraph. This regexp includes `(', which is why everything from (3) isn't filled. What should likely be done is to find the end of the docstring when filling it and stopping the search if it reaches the end. forward-paragraph should accept an arbitrary point as a search limit to accomplish the above. Once this bug is fixed, the space+colon added in bug#24622 should be removed.