all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#28937: 26.0.60; Value after elisp docstring is filled (boundaries on forward-paragraph)
@ 2017-10-22  7:29 Alex
  2021-02-04 15:14 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Alex @ 2017-10-22  7:29 UTC (permalink / raw)
  To: 28937

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-05 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-22  7:29 bug#28937: 26.0.60; Value after elisp docstring is filled (boundaries on forward-paragraph) Alex
2021-02-04 15:14 ` 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

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.