[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: |
Thu, 05 Feb 2015 09:27:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> You are right - for a start, I started with a variable specifically for
> Python, but in the end, I would see it as part of prog-mode (s/th like
> xml-mode would not be covered, but to make it part of fundamental-mode
> is probably too generic?).
prog-mode sounds good. That doesn't prevent non-prog modes from using
it (and really, modes like xml-mode or latex-mode should inherit from
both text-mode and prog-mode).
> + (defvar python-submode-indentation-context nil
> + "((MIN . MAX) LEFTMOST-COL . <future>).")
> Ok, here is some real doc:
Sounds like a good start. Two questions:
- how/who provides the <future>? Is it the outer mode (which hence
needs "internal" knowledge of the inner mode)?
- for some outer modes (think of a literate programming mode, for
example), the chunk specified by MIN/MAX should really be considered
as being a continuation of a previous chunk. So maybe the inner mode
should be provided with some way to find the "text before MIN" (if any).
I guess for your use case, the second point doesn't apply, tho, so maybe
we can skip this part for now.
> Is this fine for you? Should I send a corresponding patch to
> progmodes/prog-mode.el ?
Sure,
Stefan
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/02/05
- Re: antlr-mode.el - need some support by python.el,
Stefan Monnier <=
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/02/06
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/02/06
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/02/13
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/02/13
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/02/16
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/02/16
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/02/17
- Re: antlr-mode.el - need some support by python.el, Stefan Monnier, 2015/02/17
- RE: antlr-mode.el - need some support by python.el, Wedler, Christoph, 2015/02/18
- Re: antlr-mode.el - need some support by python.el, Dmitry Gutov, 2015/02/17