aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2005-10-03 20:46:29 +0000
committerChong Yidong2005-10-03 20:46:29 +0000
commit7752250e6bd5286daf8d99aa7c33c94a83eb96c1 (patch)
treeccede57fe344b59798be1f42afe15f46c5058deb /lisp
parent56e2a181bf2124a85ce04aaa1638db1c796449c8 (diff)
downloademacs-7752250e6bd5286daf8d99aa7c33c94a83eb96c1.tar.gz
emacs-7752250e6bd5286daf8d99aa7c33c94a83eb96c1.zip
* speedbar.el (speedbar-ignored-path-regexp, speedbar-line-path)
(speedbar-ignored-path-expressions, speedbar-buffers-line-path) (speedbar-add-ignored-path-regexp, speedbar-buffers-line-path) (speedbar-path-line): Define obsolete aliases. (speedbar-line-directory): Doc fix. * progmodes/vhdl-mode.el (vhdl-speedbar-initialize) (vhdl-speedbar-rescan-hierarchy): Call speedbar-line-directory instead of speedbar-line-path.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/progmodes/vhdl-mode.el22
-rw-r--r--lisp/speedbar.el26
3 files changed, 48 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b595bb4c8df..423b77732fb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
12005-10-03 Chong Yidong <cyd@stupidchicken.com>
2
3 * speedbar.el (speedbar-ignored-path-regexp, speedbar-line-path)
4 (speedbar-ignored-path-expressions, speedbar-buffers-line-path)
5 (speedbar-add-ignored-path-regexp, speedbar-buffers-line-path)
6 (speedbar-path-line): Define obsolete aliases.
7 (speedbar-line-directory): Doc fix.
8
9 * progmodes/vhdl-mode.el (vhdl-speedbar-initialize)
10 (vhdl-speedbar-rescan-hierarchy): Call speedbar-line-directory
11 instead of speedbar-line-path.
12
12005-10-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 132005-10-03 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 14
3 * x-dnd.el (x-dnd-drop-data): Don't set dnd-open-file-other-window 15 * x-dnd.el (x-dnd-drop-data): Don't set dnd-open-file-other-window
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index 1986148e8d5..8f2dcc7cf1f 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -13988,11 +13988,11 @@ if required."
13988 (speedbar-add-mode-functions-list 13988 (speedbar-add-mode-functions-list
13989 '("vhdl directory" 13989 '("vhdl directory"
13990 (speedbar-item-info . vhdl-speedbar-item-info) 13990 (speedbar-item-info . vhdl-speedbar-item-info)
13991 (speedbar-line-path . speedbar-files-line-path))) 13991 (speedbar-line-directory . speedbar-files-line-path)))
13992 (speedbar-add-mode-functions-list 13992 (speedbar-add-mode-functions-list
13993 '("vhdl project" 13993 '("vhdl project"
13994 (speedbar-item-info . vhdl-speedbar-item-info) 13994 (speedbar-item-info . vhdl-speedbar-item-info)
13995 (speedbar-line-path . vhdl-speedbar-line-project))) 13995 (speedbar-line-directory . vhdl-speedbar-line-project)))
13996 ;; keymap 13996 ;; keymap
13997 (unless vhdl-speedbar-key-map 13997 (unless vhdl-speedbar-key-map
13998 (setq vhdl-speedbar-key-map (speedbar-make-specialized-keymap)) 13998 (setq vhdl-speedbar-key-map (speedbar-make-specialized-keymap))
@@ -14257,9 +14257,9 @@ otherwise use cached data."
14257 ((save-excursion (beginning-of-line) (looking-at "[^0-9]")) 14257 ((save-excursion (beginning-of-line) (looking-at "[^0-9]"))
14258 (re-search-forward "[0-9]+:" nil t) 14258 (re-search-forward "[0-9]+:" nil t)
14259 (vhdl-scan-directory-contents 14259 (vhdl-scan-directory-contents
14260 (abbreviate-file-name (speedbar-line-path)))) 14260 (abbreviate-file-name (speedbar-line-directory))))
14261 ;; current directory 14261 ;; current directory
14262 (t (setq path (speedbar-line-path)) 14262 (t (setq path (speedbar-line-directory))
14263 (string-match "^\\(.+[/\\]\\)" path) 14263 (string-match "^\\(.+[/\\]\\)" path)
14264 (vhdl-scan-directory-contents 14264 (vhdl-scan-directory-contents
14265 (abbreviate-file-name (match-string 1 path))))) 14265 (abbreviate-file-name (match-string 1 path)))))
@@ -14977,7 +14977,7 @@ NO-POSITION non-nil means do not re-position cursor."
14977 (cond ((string-match "+" text) ; we have to expand this dir 14977 (cond ((string-match "+" text) ; we have to expand this dir
14978 (setq speedbar-shown-directories 14978 (setq speedbar-shown-directories
14979 (cons (expand-file-name 14979 (cons (expand-file-name
14980 (concat (speedbar-line-path indent) token "/")) 14980 (concat (speedbar-line-directory indent) token "/"))
14981 speedbar-shown-directories)) 14981 speedbar-shown-directories))
14982 (speedbar-change-expand-button-char ?-) 14982 (speedbar-change-expand-button-char ?-)
14983 (speedbar-reset-scanners) 14983 (speedbar-reset-scanners)
@@ -14986,12 +14986,12 @@ NO-POSITION non-nil means do not re-position cursor."
14986 (end-of-line) (forward-char 1) 14986 (end-of-line) (forward-char 1)
14987 (vhdl-speedbar-insert-dirs 14987 (vhdl-speedbar-insert-dirs
14988 (speedbar-file-lists 14988 (speedbar-file-lists
14989 (concat (speedbar-line-path indent) token "/")) 14989 (concat (speedbar-line-directory indent) token "/"))
14990 (1+ indent)) 14990 (1+ indent))
14991 (speedbar-reset-scanners) 14991 (speedbar-reset-scanners)
14992 (vhdl-speedbar-insert-dir-hierarchy 14992 (vhdl-speedbar-insert-dir-hierarchy
14993 (abbreviate-file-name 14993 (abbreviate-file-name
14994 (concat (speedbar-line-path indent) token "/")) 14994 (concat (speedbar-line-directory indent) token "/"))
14995 (1+ indent) speedbar-power-click))) 14995 (1+ indent) speedbar-power-click)))
14996 (vhdl-speedbar-update-current-unit t t)) 14996 (vhdl-speedbar-update-current-unit t t))
14997 ((string-match "-" text) ; we have to contract this node 14997 ((string-match "-" text) ; we have to contract this node
@@ -14999,7 +14999,7 @@ NO-POSITION non-nil means do not re-position cursor."
14999 (let ((oldl speedbar-shown-directories) 14999 (let ((oldl speedbar-shown-directories)
15000 (newl nil) 15000 (newl nil)
15001 (td (expand-file-name 15001 (td (expand-file-name
15002 (concat (speedbar-line-path indent) token)))) 15002 (concat (speedbar-line-directory indent) token))))
15003 (while oldl 15003 (while oldl
15004 (if (not (string-match (concat "^" (regexp-quote td)) (car oldl))) 15004 (if (not (string-match (concat "^" (regexp-quote td)) (car oldl)))
15005 (setq newl (cons (car oldl) newl))) 15005 (setq newl (cons (car oldl) newl)))
@@ -15085,7 +15085,7 @@ NO-POSITION non-nil means do not re-position cursor."
15085 (if vhdl-speedbar-show-projects 15085 (if vhdl-speedbar-show-projects
15086 (vhdl-speedbar-line-project) 15086 (vhdl-speedbar-line-project)
15087 (abbreviate-file-name 15087 (abbreviate-file-name
15088 (file-name-as-directory (speedbar-line-path indent))))) 15088 (file-name-as-directory (speedbar-line-directory indent)))))
15089 15089
15090(defun vhdl-speedbar-line-project (&optional indent) 15090(defun vhdl-speedbar-line-project (&optional indent)
15091 "Get currently displayed project name." 15091 "Get currently displayed project name."
@@ -15236,7 +15236,7 @@ is already shown in a buffer."
15236 (unit-name (vhdl-speedbar-line-text)) 15236 (unit-name (vhdl-speedbar-line-text))
15237 (vhdl-project (vhdl-speedbar-line-project)) 15237 (vhdl-project (vhdl-speedbar-line-project))
15238 (directory (file-name-as-directory 15238 (directory (file-name-as-directory
15239 (or (speedbar-line-file) (speedbar-line-path))))) 15239 (or (speedbar-line-file) (speedbar-line-directory)))))
15240 (if (fboundp 'speedbar-select-attached-frame) 15240 (if (fboundp 'speedbar-select-attached-frame)
15241 (speedbar-select-attached-frame) 15241 (speedbar-select-attached-frame)
15242 (select-frame speedbar-attached-frame)) 15242 (select-frame speedbar-attached-frame))
@@ -15248,7 +15248,7 @@ is already shown in a buffer."
15248 (interactive) 15248 (interactive)
15249 (let ((vhdl-project (vhdl-speedbar-line-project)) 15249 (let ((vhdl-project (vhdl-speedbar-line-project))
15250 (default-directory (file-name-as-directory 15250 (default-directory (file-name-as-directory
15251 (or (speedbar-line-file) (speedbar-line-path))))) 15251 (or (speedbar-line-file) (speedbar-line-directory)))))
15252 (vhdl-generate-makefile))) 15252 (vhdl-generate-makefile)))
15253 15253
15254(defun vhdl-speedbar-check-unit (design-unit) 15254(defun vhdl-speedbar-check-unit (design-unit)
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 0978a31681e..cdb592a3944 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -3155,7 +3155,7 @@ Otherwise do not move and return nil."
3155 nil)))))) 3155 nil))))))
3156 3156
3157(defun speedbar-line-directory (&optional depth) 3157(defun speedbar-line-directory (&optional depth)
3158 "Retrieve the directoryname associated with the current line. 3158 "Retrieve the directory name associated with the current line.
3159This may require traversing backwards from DEPTH and combining the default 3159This may require traversing backwards from DEPTH and combining the default
3160directory with these items. This function is replaceable in 3160directory with these items. This function is replaceable in
3161`speedbar-mode-functions-list' as `speedbar-line-directory'." 3161`speedbar-mode-functions-list' as `speedbar-line-directory'."
@@ -4095,6 +4095,30 @@ TEXT is the buffer's name, TOKEN and INDENT are unused."
4095 ) 4095 )
4096 ) 4096 )
4097 4097
4098
4099;;; Obsolete variables and functions
4100
4101(define-obsolete-variable-alias
4102 'speedbar-ignored-path-regexp 'speedbar-ignored-directory-regexp)
4103
4104(define-obsolete-variable-alias 'speedbar-ignored-path-expressions
4105 'speedbar-ignored-directory-expressions)
4106
4107(define-obsolete-function-alias 'speedbar-add-ignored-path-regexp
4108 'speedbar-add-ignored-directory-regexp)
4109
4110(define-obsolete-function-alias 'speedbar-line-path
4111 'speedbar-line-directory)
4112
4113(define-obsolete-function-alias 'speedbar-buffers-line-path
4114 'speedbar-buffers-line-directory)
4115
4116(define-obsolete-function-alias 'speedbar-path-line
4117 'speedbar-directory-line)
4118
4119(define-obsolete-function-alias 'speedbar-buffers-line-path
4120 'speedbar-buffers-line-directory)
4121
4098(provide 'speedbar) 4122(provide 'speedbar)
4099 4123
4100;; run load-time hooks 4124;; run load-time hooks