emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f6b995e: (semantic-lex-type-invalid): Fix nested ba


From: Stefan Monnier
Subject: [Emacs-diffs] master f6b995e: (semantic-lex-type-invalid): Fix nested backquote.
Date: Thu, 16 Mar 2017 09:45:03 -0400 (EDT)

branch: master
commit f6b995ef4ec50455f8dbf174b91de6b5887d014e
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    (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.
---
 lisp/cedet/semantic/lex.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index 2e8817e..b2a63cd 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]