diff options
| author | Martin Rudalics | 2012-03-10 15:58:54 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-03-10 15:58:54 +0800 |
| commit | 570a1714808328275b04cb3d9a10cb7f7355c70e (patch) | |
| tree | 5e3768119d7335a8144f3b7d98713f12bcb29bfd | |
| parent | 1de11f569d38d9c7be17783776e405a4434e1a68 (diff) | |
| download | emacs-570a1714808328275b04cb3d9a10cb7f7355c70e.tar.gz emacs-570a1714808328275b04cb3d9a10cb7f7355c70e.zip | |
Fix speedbar highlighting bug.
* lisp/speedbar.el (speedbar-unhighlight-one-tag-line): Avoid
unhighlighting due to frame switching.
Fixes: debbugs:10275
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/speedbar.el | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c3b28cd8777..531c363d3f0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-10 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * speedbar.el (speedbar-unhighlight-one-tag-line): Avoid | ||
| 4 | unhighlighting due to frame switching (Bug#10275). | ||
| 5 | |||
| 1 | 2012-03-10 Chong Yidong <cyd@gnu.org> | 6 | 2012-03-10 Chong Yidong <cyd@gnu.org> |
| 2 | 7 | ||
| 3 | * minibuffer.el (completion-in-region, completion-help-at-point): | 8 | * minibuffer.el (completion-in-region, completion-help-at-point): |
diff --git a/lisp/speedbar.el b/lisp/speedbar.el index 89211b2b86e..bb1debb4552 100644 --- a/lisp/speedbar.el +++ b/lisp/speedbar.el | |||
| @@ -3987,11 +3987,11 @@ TEXT is the buffer's name, TOKEN and INDENT are unused." | |||
| 3987 | 3987 | ||
| 3988 | (defun speedbar-unhighlight-one-tag-line () | 3988 | (defun speedbar-unhighlight-one-tag-line () |
| 3989 | "Unhighlight the currently highlighted line." | 3989 | "Unhighlight the currently highlighted line." |
| 3990 | (if speedbar-highlight-one-tag-line | 3990 | (when (and speedbar-highlight-one-tag-line |
| 3991 | (progn | 3991 | (not (eq this-command 'handle-switch-frame))) |
| 3992 | (speedbar-delete-overlay speedbar-highlight-one-tag-line) | 3992 | (speedbar-delete-overlay speedbar-highlight-one-tag-line) |
| 3993 | (setq speedbar-highlight-one-tag-line nil))) | 3993 | (setq speedbar-highlight-one-tag-line nil) |
| 3994 | (remove-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line)) | 3994 | (remove-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line))) |
| 3995 | 3995 | ||
| 3996 | (defun speedbar-recenter-to-top () | 3996 | (defun speedbar-recenter-to-top () |
| 3997 | "Recenter the current buffer so point is on the top of the window." | 3997 | "Recenter the current buffer so point is on the top of the window." |