unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: fill individual long lines
Date: Tue, 13 Feb 2024 16:03:40 -0700	[thread overview]
Message-ID: <CAJcAo8to-Bqa-3J3eKCsc0r5WnXXShkdOntB3pAx0OvDf0tEqQ@mail.gmail.com> (raw)

i want a command that will fill paragraphs that are long lines and
that have no blank lines between them.

for example, today, i received an email, intended as list items,
which, when copied from the webmail to emacs, resulted in soemthing
like this:

  line 1 hello ajs dnfkansd fklja sndlkfj anskdj nfalksjd nflaksjn
dfkajs ndfkjn asdkjf naksjd nfkajsnd fkja sndkfj naskdj nfakjsdn fkajs
ndkfjn askdjn faksjdnfkajsndfkjansdkfjnalksdjfn
  another line k naskjdfn alksj fndlkajsnd fkjans dklfjan sdklfjn
aksdjnf kaljsd nfkjasn dklfjn aksdjn fkajsdn fklaj nsdkfn aksdj
fnlkasjdnfffkdnfkajn sdkfjnaskdjfnkasjdnkfjan

and so on.  in other words, every line is too long, but if i just
filled with m-q, it would smush all list items into one long
paragraph.  each line is a list item.

what i want is for the result to be like:

  line 1 hello ajs dnfkansd fklja sndlkfj anskdj nfalksjd
  nflaksjn dfkajs ndfkjn asdkjf naksjd nfkajsnd fkja sndkfj
  naskdj nfakjsdn fkajs ndkfjn askdjn
  faksjdnfkajsndfkjansdkfjnalksdjfn

  another line k naskjdfn alksj fndlkajsnd fkjans dklfjan
  sdklfjn aksdjnf kaljsd nfkjasn dklfjn aksdjn fkajsdn fklaj
  nsdkfn aksdj fnlkasjdnfffkdnfkajn sdkfjnaskdjfnkasjdnkfjan

or even, for super duper fanciness, have each original line become an org list
item.  [not always needed, but the intent of this email was bullets .]

please copy me on any reply if possible as it is hard to find things
sent to me on this mailing list.  thank you.

-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



             reply	other threads:[~2024-02-13 23:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 23:03 Samuel Wales [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-21 23:02 fill individual long lines Mekeor Melire

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8to-Bqa-3J3eKCsc0r5WnXXShkdOntB3pAx0OvDf0tEqQ@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=help-gnu-emacs@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.
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).