[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/last-cedet-merge 02644fe 36/37: semantic: Add miss
From: |
David Engster |
Subject: |
[Emacs-diffs] scratch/last-cedet-merge 02644fe 36/37: semantic: Add missing save-excursion for scope calculation |
Date: |
Sun, 22 Jan 2017 21:26:33 +0000 (UTC) |
branch: scratch/last-cedet-merge
commit 02644fe47bc8380104e16a05e9e980f30c0c264a
Author: Eric Ludlam <address@hidden>
Commit: David Engster <address@hidden>
semantic: Add missing save-excursion for scope calculation
* lisp/cedet/semantic/scope.el (semantic-calculate-scope-for-tag):
Also save-excursion in case the internal jump is local and moves
point.
---
lisp/cedet/semantic/scope.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el
index 0ac994c..36a08d2 100644
--- a/lisp/cedet/semantic/scope.el
+++ b/lisp/cedet/semantic/scope.el
@@ -774,10 +774,11 @@ The class returned from the scope calculation is variable
Return nil if TAG has no position, or we cannot otherwise find a scope.
Use this when pulling a datatype off TAG so when it is looked up
it has the right context around it."
- (save-current-buffer
- (when (semantic-tag-with-position-p tag)
- (semantic-go-to-tag tag)
- (semantic-calculate-scope (point)))) )
+ (save-excursion
+ (save-current-buffer
+ (when (semantic-tag-with-position-p tag)
+ (semantic-go-to-tag tag)
+ (semantic-calculate-scope (point))))))
(defun semantic-scope-find (name &optional class scope-in)
"Find the tag with NAME, and optional CLASS in the current SCOPE-IN.
- [Emacs-diffs] scratch/last-cedet-merge 0a2b38b 26/37: EDE: Expand file name, (continued)
- [Emacs-diffs] scratch/last-cedet-merge 0a2b38b 26/37: EDE: Expand file name, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge fb127f2 34/37: semantic: C grammar fixes, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge f11e08f 10/37: semantic: Fix wisent parser recursion, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 47471b9 12/37: EDE: Add missing require and silence byte compiler, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 6ca095c 21/37: semantic: Add autoload for Add autoload for `semantic-analyze-debug-assist', David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 5cb7aed 22/37: semantic: New c-mode override for analyzing tag type members, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 8571383 16/37: semantic: Incorporate local scope when finding type, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 74263b1 37/37: semantic: Change unary expression rule, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 03c5f0d 25/37: semantic: Add more syntax modifications for scheme lexer, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge ebc59a5 19/37: semantic: Accept FLAGS parameter for srecode-template-mode, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 02644fe 36/37: semantic: Add missing save-excursion for scope calculation,
David Engster <=
- [Emacs-diffs] scratch/last-cedet-merge 278c06c 31/37: semantic: Optimize 'typeformbase' in C grammar, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge cfd7139 28/37: semantic: Some C grammar optimizations, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge f3674d0 33/37: semantic: Parse C++ override/final correctly, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge 6d6b045 27/37: EDE: Improve Emacs project type, David Engster, 2017/01/22
- [Emacs-diffs] scratch/last-cedet-merge b4bcc84 32/37: semantic: completion fixes, David Engster, 2017/01/22