[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plug treesit.el into other emacs constructs
From: |
Eli Zaretskii |
Subject: |
Re: Plug treesit.el into other emacs constructs |
Date: |
Sat, 24 Dec 2022 09:00:28 +0200 |
> From: Theodor Thornhill <theo@thornhill.no>
> Cc: Yuan Fu <casouri@gmail.com>, emacs-devel@gnu.org, eliz@gnu.org
> Date: Thu, 15 Dec 2022 21:57:31 +0100
>
> Theodor Thornhill <theo@thornhill.no> writes:
>
> > Theodor Thornhill <theo@thornhill.no> writes:
> >
> >> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> >>
> >>>> If this code is plugged into transpose-sexps we get this nice behavior:
> >>>
> >>> It's a bit different from what SMIE would do, but there's a lot of
> >>> overlap and when it's different it's arguably better, so sounds good
> >>> to me.
> >>>
> >>
> >> Great!
> >>
> >>>> Now forward/backward-sexp can actually work a little differently, as you
> >>>> suggest, or we can let it use the same "move over siblings"-semantic.
> >>>> In that case we don't even need the treesit-sexp-type-regexp variables to
> >>>> control this, I think.
> >>>>
> >>>> What do you think?
> >>>
> >>> I'm not sufficiently familiar with the tree-sitter tree to foresee
> >>> precisely how it would affect `forward/backward-sexp`, but I think you
> >>> have a good enough understanding to make a good judgment at this
> >>> point :-)
> >>
> >> Great. I'll prepare a patch for this behavior, and we can discuss the
> >> forward-* commands after that.
> >>
> >
> > What do you think about this? Feel free to try it and let me know if
> > something is completely wrong :-)
>
> Now you can use 'arg' as well.
Stefan, Yuan: any comments or objections to installing this on master?
- Re: Plug treesit.el into other emacs constructs, (continued)
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/14
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/14
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/14
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/14
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/14
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/15
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/15
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/15
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/15
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/15
- Re: Plug treesit.el into other emacs constructs,
Eli Zaretskii <=
- Re: Plug treesit.el into other emacs constructs, Yuan Fu, 2022/12/24
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/24
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/24
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/26
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/26
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/26
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/27
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/27
- Re: Plug treesit.el into other emacs constructs, Theodor Thornhill, 2022/12/28
- Re: Plug treesit.el into other emacs constructs, Stefan Monnier, 2022/12/28