GNU bug report logs - #28937
26.0.60; Value after elisp docstring is filled (boundaries on forward-paragraph)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alex <agrambot@HIDDEN>; Keywords: confirmed; dated Sun, 22 Oct 2017 07:30:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Oct 2017 07:29:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 22 03:29:56 2017
Received: from localhost ([127.0.0.1]:54875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e6Aho-0002sE-A1
	for submit <at> debbugs.gnu.org; Sun, 22 Oct 2017 03:29:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57573)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <agrambot@HIDDEN>) id 1e6Ahm-0002s0-EL
 for submit <at> debbugs.gnu.org; Sun, 22 Oct 2017 03:29:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <agrambot@HIDDEN>) id 1e6Ahg-0005bY-JQ
 for submit <at> debbugs.gnu.org; Sun, 22 Oct 2017 03:29:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
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 <agrambot@HIDDEN>) id 1e6Ahg-0005bR-GT
 for submit <at> debbugs.gnu.org; Sun, 22 Oct 2017 03:29:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48542)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <agrambot@HIDDEN>) id 1e6Ahf-0001mK-GT
 for bug-gnu-emacs@HIDDEN; Sun, 22 Oct 2017 03:29:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <agrambot@HIDDEN>) id 1e6Ahc-0005aJ-DM
 for bug-gnu-emacs@HIDDEN; Sun, 22 Oct 2017 03:29:47 -0400
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 <agrambot@HIDDEN>) id 1e6Ahc-0005Zz-8j
 for bug-gnu-emacs@HIDDEN; Sun, 22 Oct 2017 03:29:44 -0400
Received: by mail-io0-x22c.google.com with SMTP id 97so17107067iok.7
 for <bug-gnu-emacs@HIDDEN>; 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)
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 <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 22 Oct 2017 00:29:41 -0700 (PDT)
From: Alex <agrambot@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 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@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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.




Acknowledgement sent to Alex <agrambot@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#28937; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 15 Apr 2018 19:15:02 UTC

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