From: Perry Smith <pedz@easesoftware.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Are variations such as these desired?
Date: Tue, 13 Dec 2022 08:50:34 -0600 [thread overview]
Message-ID: <7CF4C507-1EE6-4DE3-966D-A7B6E49EFC0D@easesoftware.com> (raw)
In-Reply-To: <jwvlenbcr7x.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 832 bytes --]
> On Dec 13, 2022, at 08:36, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> The two rules could be conditionally added to the rest of the rules
>> via a customizable boolean variable such as
>> ruby-ts-mode--right-justify-arrays (for example).
>
> I would welcome addition of some kind of "ts-align" functionality which
> uses the tree-sitter info to align code elements.
>
> I've had it as a todo for SMIE but never got around to it.
>
> It should be possible to make it work well even in the absence of any
> extra info provided by the major mode, AFAICT.
Ahh!!! I think that might be what I’ve been mentally groping for.
So, your idea is like “align" except instead of using regular expressions, it
would use Tree Sitter queries — or similar such concepts.
Am I on the right track?
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-12-13 14:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 0:46 Are variations such as these desired? Perry Smith
2022-12-13 12:14 ` Eli Zaretskii
2022-12-13 13:18 ` Perry Smith
2022-12-13 14:36 ` Stefan Monnier
2022-12-13 14:50 ` Perry Smith [this message]
2022-12-13 15:18 ` Stefan Monnier
2022-12-26 16:19 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7CF4C507-1EE6-4DE3-966D-A7B6E49EFC0D@easesoftware.com \
--to=pedz@easesoftware.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.