emacs-devel
[Top][All Lists]
Advanced

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

Re: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-pp


From: Dmitry Gutov
Subject: Re: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch
Date: Mon, 17 Feb 2014 04:57:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> To me, the requirements look like:

Looks fairly comprehensive to me.

> - indentation is done according to the mode to which BOL belongs, I think.

Yep.

> - there can be nesting relationships between chunks, e.g. with two major
>   modes A and B, a sequence of chunks of "A1, B1, A2, B2, A3" could
>   represent "(A1 (B1) A2 (B2) A3)" or "(A1 (B1 (A2) B2) A3)", where
>   indentation of A3 could depend on A1 in the second case but on A2 in
>   the first.

Indentation can depend on preceding nested chunks, too. See control
structures in JSP, ERB, PHP, etc.

> - navigation should ideally understand the overall structure of the
>   buffer, so forward-sexp knows how to jump over a "sub-chunk" written
>   in another mode.

Do you think a mmm-mode-aware forward-sexp-function is the best way to
support this?



reply via email to

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