[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Ivan Andrus
Subject: Re: SMIE
Date: Tue, 19 Aug 2014 21:57:46 -0600

I enjoyed using it for gap-mode [1] once I got the hang of it, though I would hesitate to suggest that people should look at my implementation. :-)  And I love, love, love the sexp-based movement it gives me for free.


[1] https://bitbucket.org/gvol/gap-mode/src/tip/gap-smie.el?at=default

On Aug 19, 2014, at 9:19 PM, Matt DeBoard <address@hidden> wrote:

To bring the thread back around full-circle to the topic of SMIE...

Stefan I wound up rewriting the `forward-token' and `backward-token' functions, discarding the previous code (which I inherited) in favor of much simpler, more concise code I found in `ruby-mode' and `swift-mode'. I took up this project (https://github.com/elixir-lang/emacs-elixir) just a couple months ago, so I thought the convolution of the code I replaced was a result of SMIE. I was skeptical about the degree to which I would be able to simplify the logic.

However, after cutting out over 150 lines of code by leaning heavily on SMIE, I just wanted to say thanks. SMIE -- once you get it -- is really valuable. There's a learning curve for sure, but it's a really pragmatic tool.

To any future readers who are looking for guidance on how to implement SMIE-driven indentation in your language mode, below are a few links of simple, concise, valid SMIE implementations that can serve as reference. In order of simplicity (IMO):




On Tue, Aug 19, 2014 at 9:27 PM, Richard Stallman <address@hidden> wrote:
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

    What does it take to accept digital signatures from other countries?
    E.g. from France?  Can we help here?

I don't know, but a priori it seems unlikely that you or I could
do anything that would change this legal issue.

Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]