[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: antlr-mode.el - need some support by python.el
From: |
Stefan Monnier |
Subject: |
Re: antlr-mode.el - need some support by python.el |
Date: |
Mon, 09 Mar 2015 21:16:20 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> The question is, do you really expect to be burned by unexpected
> narrowing/widening in indentation code.
I'm not sure what you mean by that question: if the outer mode uses
narrowing to specify the bounds of the chunk, then indentation code
can't use `widen'. Use of narrowing inside the indentation code will be
fine, but use of widen will not. Yet, "grep widen lisp/progmodes/*.el"
suggests that it's probably used by several indenters.
So, yes, I expect problems.
> Or to put it in a different way, the lack of an API (which encourages people
> use some unseemly approach) is not the same as an API that relies on
> it. Because we won't have to support it for ever and ever.
I think specifying the chunk bounds via some dynamically-scoped var is
a pretty safe option. Maybe it will be supplanted in the future by some
other alternative, but it doesn't impose any particular implementation
constraint, contrary to the use of narrowing.
Stefan
- Re: antlr-mode.el - need some support by python.el, (continued)
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/02
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/03/03
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/03/04
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/04
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/03/05
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/05
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/05
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/04
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/03/04
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/04
- Re: antlr-mode.el - need some support by python.el,
Stefan Monnier <=
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/21
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/03/21
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/21
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/03/22
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/22
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/03/22
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/23
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/03/23
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/03/04
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/03/04