From: Alex <agrambot@gmail.com>
To: 28937@debbugs.gnu.org
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 [thread overview]
Message-ID: <87lgk3vdwf.fsf@gmail.com> (raw)
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.
next reply other threads:[~2017-10-22 7:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-22 7:29 Alex [this message]
2021-02-04 15:14 ` bug#28937: 26.0.60; Value after elisp docstring is filled (boundaries on forward-paragraph) Lars Ingebrigtsen
2021-03-05 12:55 ` Basil L. Contovounesios
2021-03-05 13:02 ` Lars Ingebrigtsen
2021-03-05 13:36 ` Basil L. Contovounesios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgk3vdwf.fsf@gmail.com \
--to=agrambot@gmail.com \
--cc=28937@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.