Hi Vincent and all, 2016-01-12 8:25 GMT+01:00 Vincent Belaïche <[email protected]>: > Hello Mosè, > > I have had a look at your patch, and everything seems OK to > me. > > Concerning variable `TeX-style-hook-dialect-weight-alist', its use is to > convert dialect symbols (ie `:latex', `:texinfo', etc...) into a > integer bitmap representation, so that dialect expressions (`or', `and', > and `not') are evaluated to an integer bitmap. This is done by function > `TeX-shdex-eval' (please remember shdex stands for Style Hook Dialect > EXpression). > > So, functionally speaking, there is no meaning what weight you associate > to each symbol, provided that: > - weights are powers of 2 within 30bits (info "(elisp) Integer Basics"), and > - no two symbols have the same weight > > Performance-wise there may be a very small impact what the order of > association cells are in variable `TeX-style-hook-dialect-weight-alist', > because function `TeX-shdex-eval' uses `assq' which finds cells in > linear time. Initially I used this order: :latex, :texinfo, :bibtex, as > in fact I write more often LaTeX documents than Texinfo documents, and > Texinfo documents than BibTeX files. That is just my personal feeling, > not sure whether this is a widely shared order, and I doubt anyway that > there are any statistics about TeX dialect use. > > Fine, idle talk: that order has a non detectable impact on > performance. Just do as you like. > > BR, > Vincent.
Thanks for the explanation! I've added the new dialects and now `TeX-style-hook-dialect' is written to the parsed file when present. Bye, Mosè _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
