]> code.delx.au - gnu-emacs-elpa/commitdiff
company-template-c-like-templatify: Use current syntax-table as parent
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 24 Oct 2014 19:19:07 +0000 (02:19 +0700)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 24 Oct 2014 19:19:07 +0000 (02:19 +0700)
Because that unbreaks indentation (!) in c++-mode, for some unfathomable reason.

Fixes #212.

company-template.el

index bc1055cdea6d0fba29bbd768d2249fb09df2368c..7b103e368323e0962039432c3d27e0910cf66294 100644 (file)
@@ -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 ?< "(")