GNU bug report logs -
#49598
28.0.50; [Feature Request] Support slurping and barfing operations in lisp-mode
Previous Next
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 #11 received at 49598 <at> debbugs.gnu.org (full text, mbox):
Liang-Jie Lee <s930054123yaoyao <at> gmail.com> writes:
> 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)
I'm not quite sure what the request is here -- to add key bindings for
`paredit-forward-slurp-sexp' and `paredit-forward-barf-sexp' to
`emacs-lisp-mode? (Or `lisp-mode-shared-map', I guess...)
I'm not sure these are commands that are generally used that much to
warrant doing that, and I think people that are really into these things
just enable paredit mode (or something similar).
But I may be wrong in that -- if there's a clamouring for these commands
having a key binding in Lispish modes, I wouldn't be against adding
them. What do the rest of you people think?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 275 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.