aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric M. Ludlam1998-08-24 00:55:45 +0000
committerEric M. Ludlam1998-08-24 00:55:45 +0000
commit1095518aeac7d91119aae01a6a34ccbea5c275fb (patch)
treeda484874748ca1b9eeffb7bbd9aab3b507e56c85
parent2d0327e545cd3fc0f90643a2c3b7a043052d93c2 (diff)
downloademacs-1095518aeac7d91119aae01a6a34ccbea5c275fb.tar.gz
emacs-1095518aeac7d91119aae01a6a34ccbea5c275fb.zip
(speedbar-temp-buffer-show-function): For emacs don't call hook
with arguments.
-rw-r--r--lisp/speedbar.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 6b4a21e2a86..b4ad8cffd30 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -5,7 +5,7 @@
5;; Author: Eric M. Ludlam <zappo@gnu.org> 5;; Author: Eric M. Ludlam <zappo@gnu.org>
6;; Version: 0.7.2a 6;; Version: 0.7.2a
7;; Keywords: file, tags, tools 7;; Keywords: file, tags, tools
8;; X-RCS: $Id: speedbar.el,v 1.10 1998/08/19 21:43:56 done Exp zappo $ 8;; X-RCS: $Id: speedbar.el,v 1.11 1998/08/24 00:37:22 zappo Exp zappo $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -1237,8 +1237,10 @@ redirected into a window on the attached frame."
1237 (if speedbar-attached-frame (select-frame speedbar-attached-frame)) 1237 (if speedbar-attached-frame (select-frame speedbar-attached-frame))
1238 (pop-to-buffer buffer nil) 1238 (pop-to-buffer buffer nil)
1239 (other-window -1) 1239 (other-window -1)
1240 ;; Fix for using this hook: Bob Weiner 1240 ;; Fix for using this hook on some platforms: Bob Weiner
1241 (cond ((fboundp 'run-hook-with-args) 1241 (cond ((not speedbar-xemacsp)
1242 (run-hooks 'temp-buffer-show-hook))
1243 ((fboundp 'run-hook-with-args)
1242 (run-hook-with-args 'temp-buffer-show-hook buffer)) 1244 (run-hook-with-args 'temp-buffer-show-hook buffer))
1243 ((and (boundp 'temp-buffer-show-hook) 1245 ((and (boundp 'temp-buffer-show-hook)
1244 (listp temp-buffer-show-hook)) 1246 (listp temp-buffer-show-hook))