From: ken <gebser@mousecar.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to do a massive unfill paragraph operation over several hundred files?
Date: Fri, 28 Sep 2018 22:04:04 -0400 [thread overview]
Message-ID: <4ece1da8-4071-0071-7bf9-e2efb2a18ba1@mousecar.com> (raw)
In-Reply-To: <87wor6ujdn.fsf@tu-berlin.de>
On 09/28/2018 04:16 AM, Gerald Wildgruber wrote:
> Hi
>
> emacs (latest git checkout, on linux) and org-mode are my main environment for doing (natural language) text related work.
>
> Recently I changed the way text is processed and stored:
>
> I no longer use hard coded line breaks introduced automatically at fill-column with auto-fill-mode enabled;
>
> instead I now use visual-line-mode together with visual-fill-column mode to break lines only VISUALLY at fill-column: there are no real hard-coded line breaks in the file, each paragraph is just one long line.
>
> I would like to harmonize all my existing Org mode and LaTeX text files in this way, i.e.: "unfill" every paragraph within them, -- while ideally preserving Org mode constructs like lists, BEGIN/END blocks etc.
>
> MY QUESTION: What would be a good way to AUTOMATE such an unfill operation, removing all line breaks from all paragraphs over a large number of files?
>
>
> Thanks
>
> Gerald.
Gerald,
It's been decades since I messed with it, but as I vaguely recall
there's a batch mode for emacs. Basically, you call emacs from the
command line with the "--batch" and other options ("--script
[file_containing_elisp]").
next prev parent reply other threads:[~2018-09-29 2:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 8:16 How to do a massive unfill paragraph operation over several hundred files? Gerald Wildgruber
2018-09-29 2:04 ` ken [this message]
[not found] ` <mailman.1466.1538186663.1284.help-gnu-emacs@gnu.org>
2018-09-29 11:34 ` Emanuel Berg
2018-09-30 5:10 ` Van L
[not found] <mailman.1463.1538170475.1284.help-gnu-emacs@gnu.org>
2018-09-29 11:32 ` Emanuel Berg
2018-09-30 19:47 ` Gerald Wildgruber
[not found] ` <mailman.1577.1538336869.1284.help-gnu-emacs@gnu.org>
2018-09-30 20:28 ` Emanuel Berg
2018-10-01 5:48 ` Gerald Wildgruber
[not found] ` <mailman.1589.1538372941.1284.help-gnu-emacs@gnu.org>
2018-10-01 9:42 ` Emanuel Berg
2018-10-01 14:37 ` Gerald Wildgruber
2018-10-01 15:21 ` Robert Pluim
2018-10-02 12:11 ` Gerald Wildgruber
2018-10-02 15:37 ` Noam Postavsky
2018-10-03 10:11 ` Gerald Wildgruber
2018-10-03 23:52 ` Noam Postavsky
2018-10-08 5:42 ` Gerald Wildgruber
[not found] ` <mailman.1666.1538561477.1284.help-gnu-emacs@gnu.org>
2018-10-03 14:12 ` Emanuel Berg
[not found] ` <mailman.1650.1538482287.1284.help-gnu-emacs@gnu.org>
2018-10-02 15:11 ` Emanuel Berg
[not found] ` <mailman.1626.1538404685.1284.help-gnu-emacs@gnu.org>
2018-10-01 15:12 ` Emanuel Berg
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=4ece1da8-4071-0071-7bf9-e2efb2a18ba1@mousecar.com \
--to=gebser@mousecar.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).