summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/scope.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-02-09 12:52:04 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-02-09 12:56:19 -0500
commit5a77517e7dbe823554e9670564758c69cbd1796a (patch)
treedf1e2e3b59db157175974182b0d8e7d2489fe07b /lisp/cedet/semantic/scope.el
parent6fd8548b1620aadd2c9e4efddd899b87d023913b (diff)
downloademacs-5a77517e7dbe823554e9670564758c69cbd1796a.tar.gz
* lisp/cedet/{semantic/scope.el,ede/project-am.el}: Use lexical-scoping
* lisp/cedet/ede/project-am.el: Remove redundant `:group` args. (recentf-exclude): Declare variable. (project-am--with-makefile-current): New function extracted from `project-am-with-makefile-current`. Use `with-current-buffer` and `unwind-protect`. (project-am-with-makefile-current): Use `declare` and `project-am--with-makefile-current`. (project-am-with-config-current): Use `declare` and `with-temp-buffer`. (project-am-extract-shell-variable): Turn it into a `defun`; the use of `defmacro` appears to have been a plain mistake.
Diffstat (limited to 'lisp/cedet/semantic/scope.el')
-rw-r--r--lisp/cedet/semantic/scope.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el
index 31576d29bc6..6bd04b2e346 100644
--- a/lisp/cedet/semantic/scope.el
+++ b/lisp/cedet/semantic/scope.el
@@ -1,4 +1,4 @@
-;;; semantic/scope.el --- Analyzer Scope Calculations
+;;; semantic/scope.el --- Analyzer Scope Calculations -*- lexical-binding: t; -*-
;; Copyright (C) 2007-2021 Free Software Foundation, Inc.
@@ -115,7 +115,7 @@ Saves scoping information between runs of the analyzer.")
)
(cl-defmethod semanticdb-synchronize ((cache semantic-scope-cache)
- new-tags)
+ _new-tags)
"Synchronize a CACHE with some NEW-TAGS."
(semantic-reset cache))
@@ -262,7 +262,7 @@ are from nesting data types."
(semantic-go-to-tag pparent)
(setq stack (semantic-find-tag-by-overlay (point)))
;; Step one, find the merged version of stack in the typecache.
- (let* ((stacknames (reverse (mapcar 'semantic-tag-name stack)))
+ (let* ((stacknames (reverse (mapcar #'semantic-tag-name stack)))
(tc nil)
)
;; @todo - can we use the typecache ability to
@@ -317,7 +317,7 @@ are from nesting data types."
;; returnlist is empty.
(while snlist
(setq fullsearchname
- (append (mapcar 'semantic-tag-name returnlist)
+ (append (mapcar #'semantic-tag-name returnlist)
(list (car snlist)))) ;; Next one
(setq ptag
(semanticdb-typecache-find fullsearchname))
@@ -325,8 +325,8 @@ are from nesting data types."
(when (or (not ptag)
(not (semantic-tag-of-class-p ptag 'type)))
(let ((rawscope
- (apply 'append
- (mapcar 'semantic-tag-type-members
+ (apply #'append
+ (mapcar #'semantic-tag-type-members
(cons (car returnlist) scopetypes)
)))
)
@@ -541,7 +541,7 @@ tag is not something you can complete from within TYPE."
(setq leftover (cons S leftover)))))
(nreverse leftover)))
-(defun semantic-analyze-scoped-type-parts (type &optional scope noinherit protection)
+(defun semantic-analyze-scoped-type-parts (type &optional scope noinherit _protection)
"Return all parts of TYPE, a tag representing a TYPE declaration.
SCOPE is the scope object.
NOINHERIT turns off searching of inherited tags.