GNU bug report logs - #49598
28.0.50; [Feature Request] Support slurping and barfing operations in lisp-mode

Previous Next

Package: emacs;

Reported by: Liang-Jie Lee <s930054123yaoyao <at> gmail.com>

Date: Fri, 16 Jul 2021 16:14:02 UTC

Severity: wishlist

Tags: moreinfo

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Liang-Jie Lee <s930054123yaoyao <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [Feature Request] Support slurping and barfing operations
 in lisp-mode
Date: Sat, 17 Jul 2021 00:04:39 +0800
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.






This bug report was last modified 3 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.