unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#43299: 28.0.50; message-newline-and-reformat does not insert space after citation prefix
@ 2020-09-09 21:35 Amin Bandali
  2020-09-10 21:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Amin Bandali @ 2020-09-09 21:35 UTC (permalink / raw)
  To: 43299

This has been a pet peeve of mine for a while now, so I thought I'd send
in a report.

Currently, the `message-newline-and-reformat' function (bound to M-RET
in `message-mode') does not insert an empty space after the citation
prefix (e.g. '>') when reformatting the lines following the point in a
common use scenario.  I would like the behaviour to change, or at least
an option be added to have `message-newline-and-reformat' insert a space
after each '>'.

Example:

--8<---------------cut here---------------start------------->8---
> test0
>
> test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11 test12
--8<---------------cut here---------------end--------------->8---

If you put the point on the line between test0 and test1, after the '>'
character, and press M-RET, it will result in:

--8<---------------cut here---------------start------------->8---
> test0
>



>
> test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11
>test12
--8<---------------cut here---------------end--------------->8---

Notice the absence of space between ">" and "test12".  If the original
line is long enough for the filled version to span several lines, all of
them will not have a space after '>', similar to the above example.

Instead, I would like pressing M-RET in the above example to yield:

--8<---------------cut here---------------start------------->8---
> test0
>



>
> test1 test2 test3 test4 test5 test6 test7 test8 test9 test10 test11
> test12
--8<---------------cut here---------------end--------------->8---

As somewhat of a workaround, one could manually insert a space on the
line between "test0" and "test1" before calling the function, but that
results in the two middle lines (which only consist of '>') to have an
extraneous trailing space, i.e. "> ".





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

end of thread, other threads:[~2020-09-17 14:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 21:35 bug#43299: 28.0.50; message-newline-and-reformat does not insert space after citation prefix Amin Bandali
2020-09-10 21:28 ` Lars Ingebrigtsen
2020-09-10 21:45   ` Amin Bandali
2020-09-11 12:09     ` Lars Ingebrigtsen
2020-09-15 14:31       ` Amin Bandali
2020-09-17 14:35         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).