aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric M. Ludlam2000-05-15 22:17:24 +0000
committerEric M. Ludlam2000-05-15 22:17:24 +0000
commite9a4dcba679e097d9d579ee26de31fc1b3ad41d2 (patch)
tree36da0c21eadddce074d0853391fd10f4be112de0
parent119b42eb55ed58a855a95b302527f49606d4f604 (diff)
downloademacs-e9a4dcba679e097d9d579ee26de31fc1b3ad41d2.tar.gz
emacs-e9a4dcba679e097d9d579ee26de31fc1b3ad41d2.zip
(speedbar-recenter): Typo, and fix logic.
(speedbar-expand-line): Make arg optional. (speedbar-mode): Avoid a compiler warning.
-rw-r--r--lisp/speedbar.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 2bd71901c9e..b5c2980ac55 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -1273,13 +1273,10 @@ in the selected file.
1273 (toggle-read-only 1) 1273 (toggle-read-only 1)
1274 (speedbar-set-mode-line-format) 1274 (speedbar-set-mode-line-format)
1275 (if speedbar-xemacsp 1275 (if speedbar-xemacsp
1276 (progn 1276 (set (make-local-variable 'mouse-motion-handler)
1277 (make-local-variable 'mouse-motion-handler) 1277 'speedbar-track-mouse-xemacs)
1278 (setq mouse-motion-handler 'speedbar-track-mouse-xemacs))
1279 (if speedbar-track-mouse-flag 1278 (if speedbar-track-mouse-flag
1280 (progn 1279 (set (make-local-variable 'track-mouse) t)) ;this could be messy.
1281 (make-local-variable 'track-mouse)
1282 (setq track-mouse t))) ;this could be messy.
1283 (setq auto-show-mode nil)) ;no auto-show for Emacs 1280 (setq auto-show-mode nil)) ;no auto-show for Emacs
1284 (run-hooks 'speedbar-mode-hook)) 1281 (run-hooks 'speedbar-mode-hook))
1285 (speedbar-update-contents) 1282 (speedbar-update-contents)
@@ -3397,7 +3394,7 @@ directory with these items."
3397 nil)) 3394 nil))
3398 (speedbar-do-function-pointer))) 3395 (speedbar-do-function-pointer)))
3399 3396
3400(defun speedbar-expand-line (arg) 3397(defun speedbar-expand-line (&optional arg)
3401 "Expand the line under the cursor. 3398 "Expand the line under the cursor.
3402With universal argument ARG, flush cached data." 3399With universal argument ARG, flush cached data."
3403 (interactive "P") 3400 (interactive "P")
@@ -4105,7 +4102,7 @@ TEXT is the buffer's name, TOKEN and INDENT are unused."
4105 4102
4106(defun speedbar-recenter () 4103(defun speedbar-recenter ()
4107 "Recenter the current buffer so POINT is in the center of the window." 4104 "Recenter the current buffer so POINT is in the center of the window."
4108 (recenter (window-hight (/ (selected-window) 2)))) 4105 (recenter (/ (window-height (selected-window)) 2)))
4109 4106
4110 4107
4111;;; Color loading section. 4108;;; Color loading section.