[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why js2-mode in Emacs 23.2?
From: |
Stefan Monnier |
Subject: |
Re: Why js2-mode in Emacs 23.2? |
Date: |
Sun, 09 Aug 2009 22:47:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
> ;; Important to fontify the whole buffer syntactically! If we don't,
> ;; then we might have regular expression literals that aren't marked
> ;; as strings, which will screw up parse-partial-sexp, scan-lists,
> ;; etc. and and produce maddening "unbalanced parenthesis" errors.
> ;; When we attempt to find the error and scroll to the portion of
> ;; the buffer containing the problem, JIT-lock will apply the
> ;; correct syntax to the regular expresion literal and the problem
> ;; will mysteriously disappear.
Yes, this is a general problem. Basically font-lock-syntactic-keywords
should be moved out of font-lock into syntax.el (and provide a new
feature like (syntax-ensure-properties BEG END) to request application
of those rules) and things like syntax-ppss, indentation, forward-sexp,
... should make sure it's applied to the portion of the buffer they
look at.
Stefan
- Re: Why js2-mode in Emacs 23.2?, (continued)
- Re: Why js2-mode in Emacs 23.2?, Glenn Morris, 2009/08/10
- Re: Why js2-mode in Emacs 23.2?, Daniel Colascione, 2009/08/10
- Re: Why js2-mode in Emacs 23.2?, Dan Nicolaescu, 2009/08/11
- Re: Why js2-mode in Emacs 23.2?, Daniel Colascione, 2009/08/11
- Re: Why js2-mode in Emacs 23.2?, Dan Nicolaescu, 2009/08/11
- Re: Why js2-mode in Emacs 23.2?, Daniel Colascione, 2009/08/11
- Re: Why js2-mode in Emacs 23.2?, Glenn Morris, 2009/08/11
- Re: Why js2-mode in Emacs 23.2?,
Stefan Monnier <=
- Re: Why js2-mode in Emacs 23.2?, Lennart Borgman, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Stefan Monnier, 2009/08/10
Re: Why js2-mode in Emacs 23.2?, Leo, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Daniel Colascione, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Stefan Monnier, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Miles Bader, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Lennart Borgman, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Daniel Colascione, 2009/08/09
- Re: Why js2-mode in Emacs 23.2?, Jason Rumney, 2009/08/10
Re: Why js2-mode in Emacs 23.2?, Xah Lee, 2009/08/10