(toggle-read-only 1)
(speedbar-set-mode-line-format)
(if speedbar-xemacsp
- (progn
- (make-local-variable 'mouse-motion-handler)
- (setq mouse-motion-handler 'speedbar-track-mouse-xemacs))
+ (set (make-local-variable 'mouse-motion-handler)
+ 'speedbar-track-mouse-xemacs)
(if speedbar-track-mouse-flag
- (progn
- (make-local-variable 'track-mouse)
- (setq track-mouse t))) ;this could be messy.
+ (set (make-local-variable 'track-mouse) t)) ;this could be messy.
(setq auto-show-mode nil)) ;no auto-show for Emacs
(run-hooks 'speedbar-mode-hook))
(speedbar-update-contents)
nil))
(speedbar-do-function-pointer)))
-(defun speedbar-expand-line (arg)
+(defun speedbar-expand-line (&optional arg)
"Expand the line under the cursor.
With universal argument ARG, flush cached data."
(interactive "P")
(defun speedbar-recenter ()
"Recenter the current buffer so POINT is in the center of the window."
- (recenter (window-hight (/ (selected-window) 2))))
+ (recenter (/ (window-height (selected-window)) 2)))
\f
;;; Color loading section.