aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/semantic
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-17 20:00:16 +0200
committerEli Zaretskii2012-11-17 20:00:16 +0200
commitcf2d22b874ca2df0072e32ee641e8efffe4abd6d (patch)
tree1795142ec7861fc85c61adc90f03265b69041556 /lisp/cedet/semantic
parent3c4ca7155293ffc2d04708007131bcbc882d8913 (diff)
parent6ad30855c02908fdd99d9b11943719e185e65ee3 (diff)
downloademacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.tar.gz
emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.zip
Merge from trunk.
Diffstat (limited to 'lisp/cedet/semantic')
-rw-r--r--lisp/cedet/semantic/bovine/c.el6
-rw-r--r--lisp/cedet/semantic/fw.el9
-rw-r--r--lisp/cedet/semantic/lex-spp.el6
-rw-r--r--lisp/cedet/semantic/symref.el2
-rw-r--r--lisp/cedet/semantic/symref/list.el2
-rw-r--r--lisp/cedet/semantic/util.el2
6 files changed, 10 insertions, 17 deletions
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el
index 02ad6e05d1a..a3d57108d1d 100644
--- a/lisp/cedet/semantic/bovine/c.el
+++ b/lisp/cedet/semantic/bovine/c.el
@@ -931,8 +931,8 @@ the regular parser."
931 (setq semantic-new-buffer-fcn-was-run t) 931 (setq semantic-new-buffer-fcn-was-run t)
932 (semantic-lex-init) 932 (semantic-lex-init)
933 (semantic-clear-toplevel-cache) 933 (semantic-clear-toplevel-cache)
934 (remove-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook 934 (remove-hook 'semantic-lex-reset-functions
935 t) 935 'semantic-lex-spp-reset-hook t)
936 ) 936 )
937 ;; Get the macro symbol table right. 937 ;; Get the macro symbol table right.
938 (setq semantic-lex-spp-dynamic-macro-symbol-obarray spp-syms) 938 (setq semantic-lex-spp-dynamic-macro-symbol-obarray spp-syms)
@@ -2073,7 +2073,7 @@ actually in their parent which is not accessible.")
2073 ) 2073 )
2074 2074
2075 (setq semantic-lex-analyzer #'semantic-c-lexer) 2075 (setq semantic-lex-analyzer #'semantic-c-lexer)
2076 (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil t) 2076 (add-hook 'semantic-lex-reset-functions 'semantic-lex-spp-reset-hook nil t)
2077 (when (eq major-mode 'c++-mode) 2077 (when (eq major-mode 'c++-mode)
2078 (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__cplusplus" . ""))) 2078 (add-to-list 'semantic-lex-c-preprocessor-symbol-map '("__cplusplus" . "")))
2079 ) 2079 )
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index 5a12047eb76..14ffc808c44 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -421,14 +421,7 @@ into `mode-local-init-hook'." file filename)
421 ;; Don't prompt to insert a template if we visit an empty file 421 ;; Don't prompt to insert a template if we visit an empty file
422 (auto-insert nil) 422 (auto-insert nil)
423 ;; We don't want emacs to query about unsafe local variables 423 ;; We don't want emacs to query about unsafe local variables
424 (enable-local-variables 424 (enable-local-variables :safe)
425 (if (featurep 'xemacs)
426 ;; XEmacs only has nil as an option?
427 nil
428 ;; Emacs 23 has the spiffy :safe option, nil otherwise.
429 (if (>= emacs-major-version 22)
430 nil
431 :safe)))
432 ;; ... or eval variables 425 ;; ... or eval variables
433 (enable-local-eval nil) 426 (enable-local-eval nil)
434 ) 427 )
diff --git a/lisp/cedet/semantic/lex-spp.el b/lisp/cedet/semantic/lex-spp.el
index 406f2900563..ad366c2b94f 100644
--- a/lisp/cedet/semantic/lex-spp.el
+++ b/lisp/cedet/semantic/lex-spp.el
@@ -30,7 +30,7 @@
30;; If you use SPP in your language, be sure to specify this in your 30;; If you use SPP in your language, be sure to specify this in your
31;; semantic language setup function: 31;; semantic language setup function:
32;; 32;;
33;; (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil t) 33;; (add-hook 'semantic-lex-reset-functions 'semantic-lex-spp-reset-hook nil t)
34;; 34;;
35;; 35;;
36;; Special Lexical Tokens: 36;; Special Lexical Tokens:
@@ -947,8 +947,8 @@ and variable state from the current buffer."
947 (setq semantic-new-buffer-fcn-was-run t) 947 (setq semantic-new-buffer-fcn-was-run t)
948 (semantic-lex-init) 948 (semantic-lex-init)
949 (semantic-clear-toplevel-cache) 949 (semantic-clear-toplevel-cache)
950 (remove-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook 950 (remove-hook 'semantic-lex-reset-functions
951 t) 951 'semantic-lex-spp-reset-hook t)
952 )) 952 ))
953 953
954 ;; Second Cheat: copy key variables regarding macro state from the 954 ;; Second Cheat: copy key variables regarding macro state from the
diff --git a/lisp/cedet/semantic/symref.el b/lisp/cedet/semantic/symref.el
index 540c766cc94..ad897680d7f 100644
--- a/lisp/cedet/semantic/symref.el
+++ b/lisp/cedet/semantic/symref.el
@@ -356,7 +356,7 @@ already."
356 (lambda (hit) 356 (lambda (hit)
357 (let* ((line (car hit)) 357 (let* ((line (car hit))
358 (file (cdr hit)) 358 (file (cdr hit))
359 (buff (get-file-buffer file)) 359 (buff (find-buffer-visiting file))
360 (tag nil) 360 (tag nil)
361 ) 361 )
362 (cond 362 (cond
diff --git a/lisp/cedet/semantic/symref/list.el b/lisp/cedet/semantic/symref/list.el
index 55ccf1c103f..729bd8e153c 100644
--- a/lisp/cedet/semantic/symref/list.el
+++ b/lisp/cedet/semantic/symref/list.el
@@ -69,7 +69,7 @@ current project to find references to the input SYM. The
69references are organized by file and the name of the function 69references are organized by file and the name of the function
70they are used in. 70they are used in.
71Display the references in `semantic-symref-results-mode'." 71Display the references in `semantic-symref-results-mode'."
72 (interactive (list (semantic-tag-name (semantic-complete-read-tag-buffer-deep 72 (interactive (list (semantic-tag-name (semantic-complete-read-tag-project
73 "Symrefs for: ")))) 73 "Symrefs for: "))))
74 (semantic-fetch-tags) 74 (semantic-fetch-tags)
75 (let ((res nil) 75 (let ((res nil)
diff --git a/lisp/cedet/semantic/util.el b/lisp/cedet/semantic/util.el
index 65201c4fd12..f3d30f6af5c 100644
--- a/lisp/cedet/semantic/util.el
+++ b/lisp/cedet/semantic/util.el
@@ -280,7 +280,7 @@ If TAG is not specified, use the tag at point."
280 semantic-parser-name 280 semantic-parser-name
281 semantic-parse-tree-state 281 semantic-parse-tree-state
282 semantic-lex-analyzer 282 semantic-lex-analyzer
283 semantic-lex-reset-hooks 283 semantic-lex-reset-functions
284 semantic-lex-syntax-modifications 284 semantic-lex-syntax-modifications
285 ))) 285 )))
286 (dolist (V vars) 286 (dolist (V vars)