[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: web-mode.el
From: |
Stefan Monnier |
Subject: |
Re: web-mode.el |
Date: |
Wed, 13 Jun 2012 23:23:54 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> I'm also using narrowing during indentation, but some modes (like js)
> use (widen) in indent-line-function. It should be somewhat fixable by
I don't think it's worthwhile trying to make a "multi-major-mode" that
works with any major mode, no matter what wicked thing it does.
So it's OK to impose a few conventions that the major mode needs
to obey. The important and difficult part is to figure what those
conventions need to be.
Of course, tweaking some parts of the C mode might help. E.g. we could
maybe extend syntax-tables slightly so that chunk boundaries are marked
with a special syntax-table value which then makes forward-comment skip
over "other language" chunks, so that any indentation code which
consistently ignores comments would then work in multi-major-mode.
Stefan
- Re: web-mode.el, (continued)
Re: web-mode.el, Bois Francois-Xavier, 2012/06/13
Re: web-mode.el, Dmitry Gutov, 2012/06/13
Re: web-mode.el, Richard Riley, 2012/06/13
Re: web-mode.el, Dmitry Gutov, 2012/06/13
- Re: web-mode.el, Lennart Borgman, 2012/06/13
- Re: web-mode.el,
Stefan Monnier <=
Re: web-mode.el, Dmitry Gutov, 2012/06/14