diff options
| author | David Engster | 2012-11-14 21:20:20 +0100 |
|---|---|---|
| committer | David Engster | 2012-11-14 21:20:20 +0100 |
| commit | 22b762c7e3b370c5d9e02b4369daa3177df30f60 (patch) | |
| tree | cc480a90d4b291cc6d2812ae5f6ccd554f27d162 /lisp | |
| parent | 730b2d8f6b5851dc462b79b8bd48068c1b9f1932 (diff) | |
| download | emacs-22b762c7e3b370c5d9e02b4369daa3177df30f60.tar.gz emacs-22b762c7e3b370c5d9e02b4369daa3177df30f60.zip | |
Merge bug fixes from CEDET upstream.
* semantic/symref/list.el (semantic-symref-symbol): Use
`semantic-complete-read-tag-project' instead of
`semantic-complete-read-tag-buffer-deep', since the latter is not
working correctly.
* semantic/symref.el (semantic-symref-result-get-tags): Use
`find-buffer-visiting' to follow symbolic links.
* semantic/fw.el (semantic-find-file-noselect): Always set
`enable-local-variables' to `:safe' when loading files.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/cedet/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/cedet/semantic/fw.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/semantic/symref.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/symref/list.el | 2 |
4 files changed, 16 insertions, 10 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 56207c7ae57..4bde3421f13 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2012-11-14 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 | |||
| 1 | 2012-11-13 Glenn Morris <rgm@gnu.org> | 14 | 2012-11-13 Glenn Morris <rgm@gnu.org> |
| 2 | 15 | ||
| 3 | * semantic/lex-spp.el (semantic-lex-spp-lex-text-string): | 16 | * semantic/lex-spp.el (semantic-lex-spp-lex-text-string): |
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/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) |