aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2021-01-04 15:34:12 -0500
committerStefan Monnier2021-01-04 15:34:12 -0500
commit37e3a6eb3161c664ea1a81dcaadb0f29fdf162fb (patch)
tree7eab772359b5974ff997272bdbcd9d24cfbd9019
parenta79e1a85f8f20911be3bbac883ee7bdffcfbe7a0 (diff)
downloademacs-37e3a6eb3161c664ea1a81dcaadb0f29fdf162fb.tar.gz
emacs-37e3a6eb3161c664ea1a81dcaadb0f29fdf162fb.zip
* lisp/cedet/srecode/semantic.el: Use lexical-binding
(srecode-semantic-insert-tag): Can't use `run-hook-with-args` on lexical variable.
-rw-r--r--lisp/cedet/srecode/semantic.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el
index 21ed1f96ae6..101246cae6f 100644
--- a/lisp/cedet/srecode/semantic.el
+++ b/lisp/cedet/srecode/semantic.el
@@ -1,4 +1,4 @@
1;;; srecode/semantic.el --- Semantic specific extensions to SRecode. 1;;; srecode/semantic.el --- Semantic specific extensions to SRecode -*- lexical-binding:t -*-
2 2
3;; Copyright (C) 2007-2021 Free Software Foundation, Inc. 3;; Copyright (C) 2007-2021 Free Software Foundation, Inc.
4 4
@@ -57,7 +57,7 @@ This class will be used to derive dictionary values.")
57 57
58(cl-defmethod srecode-compound-toString((cp srecode-semantic-tag) 58(cl-defmethod srecode-compound-toString((cp srecode-semantic-tag)
59 function 59 function
60 dictionary) 60 _dictionary)
61 "Convert the compound dictionary value CP to a string. 61 "Convert the compound dictionary value CP to a string.
62If FUNCTION is non-nil, then FUNCTION is somehow applied to an 62If FUNCTION is non-nil, then FUNCTION is somehow applied to an
63aspect of the compound value." 63aspect of the compound value."
@@ -410,7 +410,9 @@ as `function' will leave point where code might be inserted."
410 ;; Insert the template. 410 ;; Insert the template.
411 (let ((endpt (srecode-insert-fcn temp dict nil t))) 411 (let ((endpt (srecode-insert-fcn temp dict nil t)))
412 412
413 (run-hook-with-args 'point-insert-fcn tag) 413 (if (functionp point-insert-fcn)
414 (funcall point-insert-fcn tag)
415 (dolist (f point-insert-fcn) (funcall f tag)))
414 ;;(sit-for 1) 416 ;;(sit-for 1)
415 417
416 (cond 418 (cond