From: Dmitry Gutov Date: Fri, 24 Oct 2014 19:19:07 +0000 (+0700) Subject: company-template-c-like-templatify: Use current syntax-table as parent X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/55c3a66b9e5e5c35b5469a30f6bd2b2977077e27 company-template-c-like-templatify: Use current syntax-table as parent Because that unbreaks indentation (!) in c++-mode, for some unfathomable reason. Fixes #212. --- diff --git a/company-template.el b/company-template.el index bc1055cde..7b103e368 100644 --- a/company-template.el +++ b/company-template.el @@ -152,7 +152,7 @@ Leave point at the end of the field." (cnt 0) (templ (company-template-declare-template beg end)) paren-open paren-close) - (with-syntax-table (make-char-table 'syntax-table nil) + (with-syntax-table (make-syntax-table (syntax-table)) (modify-syntax-entry ?\( "(") (modify-syntax-entry ?\) ")") (modify-syntax-entry ?< "(")