]> git.eshelyaron.com Git - emacs.git/commit
* lisp/progmodes/ebnf2ps.el: Use lexical-binding; fix warnings
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 31 Oct 2017 03:54:19 +0000 (23:54 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 31 Oct 2017 03:54:19 +0000 (23:54 -0400)
commite85586abd1912c8e47422a820097cd2ffd85ad8b
treef203cb582d6a59fc2f2e4ea94a2b8f8045324d87
parent7f1d7234ba2ccf36995d19135c1238b97e26645e
* lisp/progmodes/ebnf2ps.el: Use lexical-binding; fix warnings

(ebnf-eps-executing): Declare var.
(ebnf-eps-string): Clarify regexp; don't use string-as-unibyte since we're
manipulating chars rather than bytes.
(ebnf-tree): Move declaration before first use.
(ebnf-generate-eps, ebnf-generate): Don't use dyn-var as argument.
(ebnf-generate-eps): Use cl-letf and unwind-protect.
(ebnf-eps-production-list): Get a ref rather than a symbol.
(ebnf-generate-eps): Adjust call accordingly.
lisp/progmodes/ebnf2ps.el