Mercurial > emacs
comparison lisp/cedet/semantic/tag.el @ 104492:8db96f200ac8
Synch to Eric Ludlam's upstream CEDET repository.
* cedet/semantic/db.el (semanticdb-get-buffer): Wrap find-file in
save-match-data.
* cedet/semantic/db-global.el (semanticdb-test-gnu-global): Wrap
find-file in save-match-data.
* cedet/semantic/util.el (semantic-file-tag-table)
(semantic-recursive-find-nonterminal-by-name): Wrap find-file in
save-match-data.
* cedet/semantic/tag.el (semantic-tag-buffer): Wrap find-file in
save-match-data.
* cedet/semantic/tag-file.el (semantic-go-to-tag): Wrap the "goto"
part with save-match-data.
* cedet/semantic/lex-spp.el (semantic-lex-spp-lex-text-string):
Save match data around calling the major mode to enable.
* cedet/semantic/format.el (semantic-format-tag-short-doc-default):
Wrap find-file in save-match-data.
* cedet/semantic/fw.el (semantic-find-file-noselect): Wrap
find-file in save-match-data
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 19 Sep 2009 17:25:30 +0000 |
parents | 25e047f7f6a2 |
children | bbd7017a25d9 |
comparison
equal
deleted
inserted
replaced
104491:ee206d5b836f | 104492:8db96f200ac8 |
---|---|
196 (if buff | 196 (if buff |
197 buff | 197 buff |
198 ;; TAG has an originating file, read that file into a buffer, and | 198 ;; TAG has an originating file, read that file into a buffer, and |
199 ;; return it. | 199 ;; return it. |
200 (if (semantic--tag-get-property tag :filename) | 200 (if (semantic--tag-get-property tag :filename) |
201 (find-file-noselect (semantic--tag-get-property tag :filename)) | 201 (save-match-data |
202 (find-file-noselect (semantic--tag-get-property tag :filename))) | |
202 ;; TAG is not in Emacs right now, no buffer is available. | 203 ;; TAG is not in Emacs right now, no buffer is available. |
203 )))) | 204 )))) |
204 | 205 |
205 (defun semantic-tag-mode (&optional tag) | 206 (defun semantic-tag-mode (&optional tag) |
206 "Return the major mode active for TAG. | 207 "Return the major mode active for TAG. |