diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-03-05 21:00:00 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-03-05 21:00:00 -0500 |
commit | 0f85f2c0e54894a5d7edbffb0d8b29033f4a2af7 (patch) | |
tree | c71d68da992f0fe0d216423b5ffa276127df9373 /lisp/cedet/srecode/table.el | |
parent | 533c659b6c73fd381231f25d0644c69729dd0aed (diff) | |
download | emacs-0f85f2c0e54894a5d7edbffb0d8b29033f4a2af7.tar.gz emacs-0f85f2c0e54894a5d7edbffb0d8b29033f4a2af7.tar.bz2 emacs-0f85f2c0e54894a5d7edbffb0d8b29033f4a2af7.zip |
* lisp/cedet/srecode/*.el: Use lexical-binding
* lisp/cedet/srecode/compile.el (srecode-compile-inserter):
Use `make-instance` instead of the class name-as-function.
* lisp/cedet/srecode/fields.el (srecode-field-behind-hook):
Remove unused var `field`.
* lisp/cedet/srecode/find.el (srecode-load-tables-for-mode): Simplify.
* lisp/cedet/srecode/getset.el (srecode-semantic-selected-tag): Declare var.
* lisp/cedet/srecode/mode.el (srecode-minor-mode): Mark references to
non-existing `srecode-m3-items` function.
* lisp/cedet/srecode/srt-mode.el (srecode-parse-this-macro): Remove
unused var `raw`.
Diffstat (limited to 'lisp/cedet/srecode/table.el')
-rw-r--r-- | lisp/cedet/srecode/table.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/cedet/srecode/table.el b/lisp/cedet/srecode/table.el index 60a466f89d9..7ce5cc73b61 100644 --- a/lisp/cedet/srecode/table.el +++ b/lisp/cedet/srecode/table.el @@ -1,4 +1,4 @@ -;;; srecode/table.el --- Tables of Semantic Recoders +;;; srecode/table.el --- Tables of Semantic Recoders -*- lexical-binding: t; -*- ;; Copyright (C) 2007-2021 Free Software Foundation, Inc. @@ -169,7 +169,7 @@ calculate all inherited templates from parent modes." :modetables nil :tables nil))) ;; Save this new mode table in that mode's variable. - (eval `(setq-mode-local ,mode srecode-table ,new)) + (eval `(setq-mode-local ,mode srecode-table ,new) t) new)))) @@ -184,7 +184,7 @@ INIT are the initialization parameters for the new template table." (let* ((mt (srecode-make-mode-table mode)) (old (srecode-mode-table-find mt file)) (attr (file-attributes file)) - (new (apply 'srecode-template-table + (new (apply #'srecode-template-table (file-name-nondirectory file) :file file :filesize (file-attribute-size attr) |