aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Beischer2017-10-19 02:44:46 +0300
committerDmitry Gutov2017-10-19 02:45:17 +0300
commitb8433b0954b26d4620a3154be025fb8a49a73954 (patch)
treed7a7d47877f41982f83f4583aec2f24be68ab2b7
parent2f7163fb72e764d2df046a4d816e1e0b81e41d18 (diff)
downloademacs-b8433b0954b26d4620a3154be025fb8a49a73954.tar.gz
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
-rw-r--r--lisp/cedet/semantic/analyze/refs.el2
-rw-r--r--lisp/cedet/semantic/complete.el2
-rw-r--r--lisp/cedet/semantic/decorate/include.el2
-rw-r--r--lisp/cedet/semantic/mru-bookmark.el2
-rw-r--r--lisp/cedet/semantic/senator.el4
5 files changed, 6 insertions, 6 deletions
diff --git a/lisp/cedet/semantic/analyze/refs.el b/lisp/cedet/semantic/analyze/refs.el
index 55fcd830433..a58479f5054 100644
--- a/lisp/cedet/semantic/analyze/refs.el
+++ b/lisp/cedet/semantic/analyze/refs.el
@@ -348,7 +348,7 @@ Only works for tags in the global namespace."
348 348
349 (push-mark) 349 (push-mark)
350 (semantic-go-to-tag target) 350 (semantic-go-to-tag target)
351 (switch-to-buffer (current-buffer)) 351 (pop-to-buffer-same-windown (current-buffer))
352 (semantic-momentary-highlight-tag target)) 352 (semantic-momentary-highlight-tag target))
353 ) 353 )
354 354
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el
index ff8e61e54dc..325ca1f4414 100644
--- a/lisp/cedet/semantic/complete.el
+++ b/lisp/cedet/semantic/complete.el
@@ -2120,7 +2120,7 @@ completion works."
2120 (when (semantic-tag-p tag) 2120 (when (semantic-tag-p tag)
2121 (push-mark) 2121 (push-mark)
2122 (semantic-go-to-tag tag) 2122 (semantic-go-to-tag tag)
2123 (switch-to-buffer (current-buffer)) 2123 (pop-to-buffer-same-window (current-buffer))
2124 (semantic-momentary-highlight-tag tag) 2124 (semantic-momentary-highlight-tag tag)
2125 (message "%S: %s " 2125 (message "%S: %s "
2126 (semantic-tag-class tag) 2126 (semantic-tag-class tag)
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.
467 (error "Could not location include %s" 467 (error "Could not location include %s"
468 (semantic-tag-name tag))) 468 (semantic-tag-name tag)))
469 ((get-file-buffer file) 469 ((get-file-buffer file)
470 (switch-to-buffer (get-file-buffer file))) 470 (pop-to-buffer-same-window (get-file-buffer file)))
471 ((stringp file) 471 ((stringp file)
472 (find-file file)) 472 (find-file file))
473 )))) 473 ))))
diff --git a/lisp/cedet/semantic/mru-bookmark.el b/lisp/cedet/semantic/mru-bookmark.el
index 5fa58e08ea6..24863de01b1 100644
--- a/lisp/cedet/semantic/mru-bookmark.el
+++ b/lisp/cedet/semantic/mru-bookmark.el
@@ -113,7 +113,7 @@ Uses `semantic-go-to-tag' and highlighting."
113 (forward-char o)) 113 (forward-char o))
114 (error nil)) 114 (error nil))
115 ;; make it visible 115 ;; make it visible
116 (switch-to-buffer (current-buffer)) 116 (pop-to-buffer-same-window (current-buffer))
117 (semantic-momentary-highlight-tag tag) 117 (semantic-momentary-highlight-tag tag)
118 )) 118 ))
119 119
diff --git a/lisp/cedet/semantic/senator.el b/lisp/cedet/semantic/senator.el
index e86658628b5..70e04475ab2 100644
--- a/lisp/cedet/semantic/senator.el
+++ b/lisp/cedet/semantic/senator.el
@@ -530,11 +530,11 @@ Some tags such as includes have other reference features."
530 ;; A tag 530 ;; A tag
531 ((semantic-tag-p result) 531 ((semantic-tag-p result)
532 (semantic-go-to-tag result) 532 (semantic-go-to-tag result)
533 (switch-to-buffer (current-buffer)) 533 (pop-to-buffer-same-window (current-buffer))
534 (semantic-momentary-highlight-tag result)) 534 (semantic-momentary-highlight-tag result))
535 ;; Buffers 535 ;; Buffers
536 ((bufferp result) 536 ((bufferp result)
537 (switch-to-buffer result) 537 (pop-to-buffer-same-window result)
538 (pulse-momentary-highlight-one-line (point))) 538 (pulse-momentary-highlight-one-line (point)))
539 ;; Files 539 ;; Files
540 ((and (stringp result) (file-exists-p result)) 540 ((and (stringp result) (file-exists-p result))