unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49598: 28.0.50; [Feature Request] Support slurping and barfing operations in lisp-mode
@ 2021-07-16 16:04 Liang-Jie Lee
  2021-07-16 20:25 ` Eduardo Ochs
  2021-07-17 14:21 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Liang-Jie Lee @ 2021-07-16 16:04 UTC (permalink / raw)
  To: 49598


Slurping is the operation to expand current S-expression by pulling in
the next outer S-expression, for example (| is cursor):

(foo (bar |baz) abc efg) -> (foo (bar |baz abc) efg)

Barfing is the opposite, contracting the S-expression by pushing out
it's last-most form, for example:

(foo (bar |baz abc) efg) -> (foo (bar |baz) abc efg)

These operations are provided by many third party packages like paredit,
smartparen, lispy, etc. Many people find it useful (especially when
you want to wrap several expressions into a `let` form), so I propose to
have these operations built in.







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

end of thread, other threads:[~2021-08-16 12:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-16 16:04 bug#49598: 28.0.50; [Feature Request] Support slurping and barfing operations in lisp-mode Liang-Jie Lee
2021-07-16 20:25 ` Eduardo Ochs
2021-07-19  0:06   ` Richard Stallman
2021-07-17 14:21 ` Lars Ingebrigtsen
2021-08-16 12:14   ` 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).