Mercurial > emacs
comparison lisp/speedbar.el @ 48716:376c832d1ca7
(speedbar-directory-buttons-follow): Don't use directory-sep-char.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 07 Dec 2002 21:30:22 +0000 |
parents | ee68dbd692ce |
children | e88404e8f2cf |
comparison
equal
deleted
inserted
replaced
48715:1e0c7ad65f05 | 48716:376c832d1ca7 |
---|---|
3551 (defun speedbar-directory-buttons-follow (text token indent) | 3551 (defun speedbar-directory-buttons-follow (text token indent) |
3552 "Speedbar click handler for default directory buttons. | 3552 "Speedbar click handler for default directory buttons. |
3553 TEXT is the button clicked on. TOKEN is the directory to follow. | 3553 TEXT is the button clicked on. TOKEN is the directory to follow. |
3554 INDENT is the current indentation level and is unused." | 3554 INDENT is the current indentation level and is unused." |
3555 (if (string-match "^[A-z]:$" token) | 3555 (if (string-match "^[A-z]:$" token) |
3556 (setq default-directory (concat token (char-to-string directory-sep-char))) | 3556 (setq default-directory (concat token "/")) |
3557 (setq default-directory token)) | 3557 (setq default-directory token)) |
3558 ;; Because we leave speedbar as the current buffer, | 3558 ;; Because we leave speedbar as the current buffer, |
3559 ;; update contents will change directory without | 3559 ;; update contents will change directory without |
3560 ;; having to touch the attached frame. | 3560 ;; having to touch the attached frame. |
3561 (speedbar-update-contents) | 3561 (speedbar-update-contents) |