summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/lex.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2017-03-16 09:44:56 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2017-03-16 09:44:56 -0400
commitf6b995ef4ec50455f8dbf174b91de6b5887d014e (patch)
tree5c712b8890d7265384c4ba88f3af589c4d5f9f7f /lisp/cedet/semantic/lex.el
parenta3207a383009720bbd89327425e0eb1c9c20c267 (diff)
downloademacs-f6b995ef4ec50455f8dbf174b91de6b5887d014e.tar.gz
emacs-f6b995ef4ec50455f8dbf174b91de6b5887d014e.tar.bz2
emacs-f6b995ef4ec50455f8dbf174b91de6b5887d014e.zip
(semantic-lex-type-invalid): Fix nested backquote.
* lisp/cedet/semantic/lex.el: Use lexical-binding. (semantic-lex-type-invalid): Fix nested backquote. (semantic-lex-map-symbols, semantic-lex-type-symbol) (semantic-lex-keyword-symbol): Use obarrayp.
Diffstat (limited to 'lisp/cedet/semantic/lex.el')
-rw-r--r--lisp/cedet/semantic/lex.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index 2e8817e13a1..b2a63cdcc3c 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -1,4 +1,4 @@
-;;; semantic/lex.el --- Lexical Analyzer builder
+;;; semantic/lex.el --- Lexical Analyzer builder -*- lexical-binding:t -*-
;; Copyright (C) 1999-2017 Free Software Foundation, Inc.
@@ -190,7 +190,7 @@
"Call function FUN on every symbol in TABLE.
If optional PROPERTY is non-nil, call FUN only on every symbol which
as a PROPERTY value. FUN receives a symbol as argument."
- (if (arrayp table)
+ (if (obarrayp table)
(mapatoms
#'(lambda (symbol)
(if (or (null property) (get symbol property))
@@ -213,7 +213,7 @@ These keywords are matched explicitly, and converted into special symbols.")
(defsubst semantic-lex-keyword-symbol (name)
"Return keyword symbol with NAME or nil if not found."
- (and (arrayp semantic-flex-keywords-obarray)
+ (and (obarrayp semantic-flex-keywords-obarray)
(stringp name)
(intern-soft name semantic-flex-keywords-obarray)))
@@ -337,13 +337,13 @@ so that analysis can continue, if possible."
"Buffer local types obarray for the lexical analyzer.")
(make-variable-buffer-local 'semantic-lex-types-obarray)
-(defmacro semantic-lex-type-invalid (type)
+(defun semantic-lex-type-invalid (type)
"Signal that TYPE is an invalid lexical type name."
- `(signal 'wrong-type-argument '(semantic-lex-type-p ,type)))
+ (signal 'wrong-type-argument `(semantic-lex-type-p ,type)))
(defsubst semantic-lex-type-symbol (type)
"Return symbol with TYPE or nil if not found."
- (and (arrayp semantic-lex-types-obarray)
+ (and (obarrayp semantic-lex-types-obarray)
(stringp type)
(intern-soft type semantic-lex-types-obarray)))
@@ -635,7 +635,7 @@ This specifies how many lists to create tokens in.")
(make-variable-buffer-local 'semantic-lex-depth)
(defvar semantic-lex-unterminated-syntax-end-function
- (lambda (syntax syntax-start lex-end) lex-end)
+ (lambda (_syntax _syntax-start lex-end) lex-end)
"Function called when unterminated syntax is encountered.
This should be set to one function. That function should take three
parameters. The SYNTAX, or type of syntax which is unterminated.
@@ -1779,7 +1779,7 @@ If there is no error, then the last value of FORMS is returned."
See variable `semantic-lex-tokens'.")
(defvar semantic-flex-unterminated-syntax-end-function
- (lambda (syntax syntax-start flex-end) flex-end)
+ (lambda (_syntax _syntax-start flex-end) flex-end)
"Function called when unterminated syntax is encountered.
This should be set to one function. That function should take three
parameters. The SYNTAX, or type of syntax which is unterminated.