Skip to content
Snippets Groups Projects
Verified Commit 3a0327d3 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Emacs mode: fix byte compilation

The Emacs lisp source file was failing byte-compilation, because the
“dynare-blocks” variable was used within an “eval-when-compile” block, while
its definition was not in such a block.
parent d98cf641
Branches
Tags
No related merge requests found
......@@ -88,6 +88,9 @@
;; Those keywords that makes the lexer enter the DYNARE_BLOCK start condition
;; Also include "verbatim" in this list
;; Needs to be enclosed within eval-when-compile, because this variable is
;; referenced in another eval-when-compile statement in dynare-calculate-indentation
(eval-when-compile
(defvar dynare-blocks
'("model" "steady_state_model" "initval" "endval" "histval" "shocks"
"shock_groups" "init2shocks" "mshocks" "estimated_params" "epilogue" "priors"
......@@ -96,7 +99,7 @@
"conditional_forecast_paths" "svar_identification" "moment_calibration"
"irf_calibration" "ramsey_constraints" "restrictions" "generate_irfs"
"verbatim")
"Dynare block keywords.")
"Dynare block keywords."))
;; Mathematical functions and operators used in model equations (see "hand_side" in Bison file)
(defvar dynare-functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment