diff -u --label /home/dgutov/examples/antlr/antlr-mode.el --label \#\ /home/dgutov/examples/antlr/antlr-mode.el /tmp/buffer-content-4j5MsU --- /home/dgutov/examples/antlr/antlr-mode.el +++ # @@ -3408,12 +3408,10 @@ (when (and boa (eq antlr-indent-comment t) ; indent-region (boundp 'prog-indentation-context)) ; Emacs 24.5 or later - (let ((syntax-ppss-cache nil) ;#dynamic - (syntax-ppss-last nil) ;#dynamic - ;; TODO: do we also need to call `syntax-propertize'? - ;; and/or bind `syntax-propertize-function'? - (prog-indentation-context ;#dynamic - (list (+ leftouter c-basic-offset) (list (1+ boa))))) + (let ((prog-indentation-context ;#dynamic + (list (+ leftouter c-basic-offset)))) + ;; TODO: do we also need to call `syntax-propertize'? + ;; and/or bind `syntax-propertize-function'? (narrow-to-region (1+ boa) (point-max)) (python-indent-line (eq this-command 'antlr-indent-command)))))) Diff finished. Sat Dec 16 19:27:17 2017