Hi,

Tassilo Horn <tsdh <at> gnu.org> writes:

> 
> Lars Madsen <daleif <at> imf.au.dk> writes:
> 
> Hi Lars,
> 
> > Does anyone know about a generalized paren-forward-sexp functionality?
> 

You should have a look at smart-parens: https://github.com/Fuco1/smartparens 
, which includes a rather extensive list of pairs for latex.


> I guess you are looking for SMIE: (info "(elisp)SMIE")
> 
> I think that would indeed be a nice feature.  However, SMIE is only
> available in pretty recent GNU Emacs version and not at all with XEmacs.
> So that feature would need to be provided in a separate file, e.g.,
> tex-smie.el.

SMIE would be overkill here, and I believe that using it merely for pair 
matching would still require to be very careful not to break the existing 
indentation features in AUCTeX.


Bye,

Thibaut


PS. Just for the lulz, if the idea was to reimplement the whole AUCTeX 
indentation engine using SMIE, you would soon have a lot of problems, because 
*tex can be really hard to parse (source: 
http://tex.stackexchange.com/q/4201/9517 ). Basically, you would end up 
rewriting a *tex engine in the parser for your BNF grammar...



_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to