summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/decorate
diff options
context:
space:
mode:
authorBastian Beischer <bastian.beischer@gmail.com>2017-10-19 02:44:46 +0300
committerDmitry Gutov <dgutov@yandex.ru>2017-10-19 02:45:17 +0300
commitb8433b0954b26d4620a3154be025fb8a49a73954 (patch)
treed7a7d47877f41982f83f4583aec2f24be68ab2b7 /lisp/cedet/semantic/decorate
parent2f7163fb72e764d2df046a4d816e1e0b81e41d18 (diff)
downloademacs-b8433b0954b26d4620a3154be025fb8a49a73954.tar.gz
emacs-b8433b0954b26d4620a3154be025fb8a49a73954.tar.bz2
emacs-b8433b0954b26d4620a3154be025fb8a49a73954.zip
Use pop-to-buffer-same-window instead of switch-to-buffer
* lisp/cedet/semantic/decorate/include.el (semantic-decoration-include-visit): Use pop-to-buffer-same-window instead of switch-to-buffer (bug#28645). * lisp/cedet/semantic/analyze/refs.el (semantic-analyze-proto-impl-toggle): Same. * lisp/cedet/semantic/senator.el (senator-go-to-up-reference): Same. * lisp/cedet/semantic/mru-bookmark.el (semantic-mrub-visit): Same. * lisp/cedet/semantic/complete.el (semantic-complete-jump): Same. Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/cedet/semantic/decorate')
-rw-r--r--lisp/cedet/semantic/decorate/include.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el
index 6876e5f3a46..9f1825d4208 100644
--- a/lisp/cedet/semantic/decorate/include.el
+++ b/lisp/cedet/semantic/decorate/include.el
@@ -467,7 +467,7 @@ its contents.
(error "Could not location include %s"
(semantic-tag-name tag)))
((get-file-buffer file)
- (switch-to-buffer (get-file-buffer file)))
+ (pop-to-buffer-same-window (get-file-buffer file)))
((stringp file)
(find-file file))
))))