all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Looking for generic text transformation utility library
@ 2018-07-02 12:56 Phil Eaton
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Eaton @ 2018-07-02 12:56 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <mailman.2919.1530543434.1292.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2018-07-02 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-02 12:56 Looking for generic text transformation utility library Phil Eaton
     [not found] <mailman.2919.1530543434.1292.help-gnu-emacs@gnu.org>
2018-07-02 18:26 ` Emanuel Berg

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.