Function: antlr-hack-local-variables-hook

antlr-hack-local-variables-hook is a byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-hack-local-variables-hook)

Documentation

Late setup for buffers with a local variables spec.

This function is used in hack-local-variables-hook.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
;; I would have guessed that there is a possibility to run code at the end of
;; initializing a major mode which is definitely run at the end (with or
;; without local variables enabled).  That is not the case... (only hard-coded
;; for font-lock).  Hence, we run some code twice with local variables...

(defun antlr-hack-local-variables-hook ()
  "Late setup for buffers with a local variables spec.
This function is used in `hack-local-variables-hook'."
  (and (derived-mode-p 'antlr-mode)
       (or (assq 'antlr-tool-version file-local-variables-alist)
           (assq 'antlr-language file-local-variables-alist))
       (antlr-set-tool-version-and-mode-line)))