diff options
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/c.el | 6 | ||||
| -rw-r--r-- | lisp/cedet/semantic/fw.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/semantic/lex-spp.el | 6 | ||||
| -rw-r--r-- | lisp/cedet/semantic/symref.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/symref/list.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/util.el | 2 |
7 files changed, 31 insertions, 17 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 755f4c8159b..a01ce4c30a3 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2012-11-16 David Engster <deng@randomsample.de> | ||
| 2 | |||
| 3 | * semantic/symref/list.el (semantic-symref-symbol): Use | ||
| 4 | `semantic-complete-read-tag-project' instead of | ||
| 5 | `semantic-complete-read-tag-buffer-deep', since the latter is not | ||
| 6 | working correctly. | ||
| 7 | |||
| 8 | * semantic/symref.el (semantic-symref-result-get-tags): Use | ||
| 9 | `find-buffer-visiting' to follow symbolic links. | ||
| 10 | |||
| 11 | * semantic/fw.el (semantic-find-file-noselect): Always set | ||
| 12 | `enable-local-variables' to `:safe' when loading files. | ||
| 13 | |||
| 14 | 2012-11-16 Glenn Morris <rgm@gnu.org> | ||
| 15 | |||
| 16 | * semantic/lex-spp.el (semantic-lex-spp-lex-text-string): | ||
| 17 | * semantic/util.el (semantic-describe-buffer): | ||
| 18 | * semantic/bovine/c.el (semantic-c-parse-lexical-token) | ||
| 19 | (semantic-default-c-setup): | ||
| 20 | Use new names for hooks rather than obsolete aliases. | ||
| 21 | |||
| 1 | 2012-11-13 Stefan Monnier <monnier@iro.umontreal.ca> | 22 | 2012-11-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 23 | ||
| 3 | * semantic/mru-bookmark.el (semantic-mru-bookmark-mode): | 24 | * semantic/mru-bookmark.el (semantic-mru-bookmark-mode): |
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 | |||
| 69 | references are organized by file and the name of the function | 69 | references are organized by file and the name of the function |
| 70 | they are used in. | 70 | they are used in. |
| 71 | Display the references in `semantic-symref-results-mode'." | 71 | Display 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) |