[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with th
From: |
Stefan Monnier |
Subject: |
bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren |
Date: |
Sun, 15 Dec 2013 08:00:00 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>>> I believe this argument also works against doing it in the rules
>>> function, and in favor of adding a defvar.
>> I don't think so: setting the var is a one-liner, adding the rule to the
>> rule-function is also a one-liner. So either way is just as easy for
>> the major-mode.
> I mean in terms of code reuse: the rules function is also specific
> to a major mode. The rule itself doesn't look like it'll take just one line
> to me, AFAICS it'll have to duplicate most of the code in
> smie-indent-close':
No, the rule should be something like
(`(:close-all . ,_) t)
I.e. equivalent to
(setq-local smie-indent-close-all t)
-- Stefan
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Dmitry Gutov, 2013/12/11
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Stefan Monnier, 2013/12/12
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Steve Purcell, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Stefan Monnier, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Dmitry Gutov, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Stefan Monnier, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Dmitry Gutov, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Stefan Monnier, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Dmitry Gutov, 2013/12/14
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren,
Stefan Monnier <=
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Dmitry Gutov, 2013/12/15
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Stefan Monnier, 2013/12/16
- bug#16116: 24.3.50; smie-indent-close aligns inner closing paren with the outer opening paren, Dmitry Gutov, 2013/12/16