From: Phil Eaton <philneaton95@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Looking for generic text transformation utility library
Date: Mon, 2 Jul 2018 08:56:39 -0400 [thread overview]
Message-ID: <CAByiw+r3W_jaesMjDSTZqGQYw=1JD+=sjtXMCf1gD0nYRjG7LQ@mail.gmail.com> (raw)
I can't seem to find a way to do simple programmatic transformations
without writing a good portion of code (that I imagine must have been
written before). I want to be able to make a text selection and run
`(map-selection #'prettify)` and have my `prettify` function called with
the selection and the result of `prettify` written back in place of the
selection.
Same thing goes for a hypothetical `map-buffer`, `map-line`, etc.
Is this a (builtin) thing? Or does every package re-implement this
functionality manually? Is there a library that provides these basic
transformation utilities?
Thank you!
--
Phil Eaton
next reply other threads:[~2018-07-02 12:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-02 12:56 Phil Eaton [this message]
[not found] <mailman.2919.1530543434.1292.help-gnu-emacs@gnu.org>
2018-07-02 18:26 ` Looking for generic text transformation utility library 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='CAByiw+r3W_jaesMjDSTZqGQYw=1JD+=sjtXMCf1gD0nYRjG7LQ@mail.gmail.com' \
--to=philneaton95@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).