From bcbe6eb903d3874c3cc1fe9ab48b8a2dc9e00abb Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 14 Jan 2017 01:47:52 -0500 Subject: [PATCH v1] Fix undeclared syntax- and abbrev- table warnings * lisp/emacs-lisp/derived.el (define-derived-mode): Unconditionally defvar the syntax and abbrev tables so that the compiler will know that they are dynamically bound variables. --- lisp/emacs-lisp/derived.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el index 762c762..fffe972 100644 --- a/lisp/emacs-lisp/derived.el +++ b/lisp/emacs-lisp/derived.el @@ -216,6 +216,7 @@ define-derived-mode (purecopy ,(format "Keymap for `%s'." child)))) ,(if declare-syntax `(progn + (defvar ,syntax) (unless (boundp ',syntax) (put ',syntax 'definition-name ',child) (defvar ,syntax (make-syntax-table))) @@ -224,6 +225,7 @@ define-derived-mode (purecopy ,(format "Syntax table for `%s'." child)))))) ,(if declare-abbrev `(progn + (defvar ,abbrev) (unless (boundp ',abbrev) (put ',abbrev 'definition-name ',child) (defvar ,abbrev -- 2.9.3