2001-07-16 12:23:00 +00:00
|
|
|
|
;;; speedbar.el --- quick access to files and tags in a frame
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
2001-02-12 16:33:03 +00:00
|
|
|
|
;;; Copyright (C) 1996, 97, 98, 99, 2000, 01 Free Software Foundation
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
;; Author: Eric M. Ludlam <zappo@gnu.org>
|
2001-02-12 16:33:03 +00:00
|
|
|
|
;; Version: 0.11a
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Keywords: file, tags, tools
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; This file is part of GNU Emacs.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
;; any later version.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
|
|
|
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
;; Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
;;
|
|
|
|
|
;; The speedbar provides a frame in which files, and locations in
|
|
|
|
|
;; files are displayed. These items can be clicked on with mouse-2
|
|
|
|
|
;; in order to make the last active frame display that file location.
|
|
|
|
|
;;
|
|
|
|
|
;; Starting Speedbar:
|
|
|
|
|
;;
|
1999-11-18 16:07:35 +00:00
|
|
|
|
;; Simply type `M-x speedbar', and it will be autoloaded for you.
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; If you want to choose it from a menu, such as "Tools", you can do this:
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;
|
|
|
|
|
;; (define-key-after (lookup-key global-map [menu-bar tools])
|
|
|
|
|
;; [speedbar] '("Speedbar" . speedbar-frame-mode) [calendar])
|
|
|
|
|
;;
|
|
|
|
|
;; If you want to access speedbar using only the keyboard, do this:
|
|
|
|
|
;;
|
1999-11-18 16:07:35 +00:00
|
|
|
|
;; (global-set-key [f4] 'speedbar-get-focus)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;
|
|
|
|
|
;; This will let you hit f4 (or whatever key you choose) to jump
|
|
|
|
|
;; focus to the speedbar frame. Pressing it again will bring you back
|
|
|
|
|
;; to the attached frame. Pressing RET or e to jump to a file
|
|
|
|
|
;; or tag will move you back to the attached frame. The command
|
|
|
|
|
;; `speedbar-get-focus' will also create a speedbar frame if it does
|
|
|
|
|
;; not exist.
|
|
|
|
|
;;
|
|
|
|
|
;; Customizing Speedbar:
|
|
|
|
|
;;
|
|
|
|
|
;; Once a speedbar frame is active, it takes advantage of idle time
|
|
|
|
|
;; to keep its contents updated. The contents is usually a list of
|
|
|
|
|
;; files in the directory of the currently active buffer. When
|
|
|
|
|
;; applicable, tags in the active file can be expanded.
|
|
|
|
|
;;
|
|
|
|
|
;; To add new supported files types into speedbar, use the function
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; `speedbar-add-supported-extension'. If speedbar complains that the
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; file type is not supported, that means there is no built in
|
|
|
|
|
;; support from imenu, and the etags part wasn't set up correctly. You
|
|
|
|
|
;; may add elements to `speedbar-supported-extension-expressions' as long
|
|
|
|
|
;; as it is done before speedbar is loaded.
|
|
|
|
|
;;
|
|
|
|
|
;; To prevent speedbar from following you into certain directories
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; use the function `speedbar-add-ignored-path-regexp' to add a new
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; regular expression matching a type of path. You may add list
|
|
|
|
|
;; elements to `speedbar-ignored-path-expressions' as long as it is
|
|
|
|
|
;; done before speedbar is loaded.
|
|
|
|
|
;;
|
|
|
|
|
;; To add new file types to imenu, see the documentation in the
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; file imenu.el that comes with Emacs. To add new file types which
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; etags supports, you need to modify the variable
|
|
|
|
|
;; `speedbar-fetch-etags-parse-list'.
|
|
|
|
|
;;
|
|
|
|
|
;; If the updates are going too slow for you, modify the variable
|
|
|
|
|
;; `speedbar-update-speed' to a longer idle time before updates.
|
|
|
|
|
;;
|
|
|
|
|
;; If you navigate directories, you will probably notice that you
|
|
|
|
|
;; will navigate to a directory which is eventually replaced after
|
|
|
|
|
;; you go back to editing a file (unless you pull up a new file.)
|
|
|
|
|
;; The delay time before this happens is in
|
|
|
|
|
;; `speedbar-navigating-speed', and defaults to 10 seconds.
|
|
|
|
|
;;
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; To enable mouse tracking with information in the minibuffer of
|
|
|
|
|
;; the attached frame, use the variable `speedbar-track-mouse-flag'.
|
|
|
|
|
;;
|
|
|
|
|
;; Tag layout can be modified through `speedbar-tag-hierarchy-method',
|
|
|
|
|
;; which controls how tags are layed out. It is actually a list of
|
|
|
|
|
;; functions that filter the data. The default groups large tag lists
|
|
|
|
|
;; into sub-lists. A long flat list can be used instead if needed.
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; Other filters can be easily added.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;;
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; AUC-TEX users: The imenu tags for AUC-TEX mode doesn't work very
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; well. Use the imenu keywords from tex-mode.el for better results.
|
|
|
|
|
;;
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
;; This file requires the library package assoc (association lists)
|
|
|
|
|
;;
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;;; Developing for speedbar
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Adding a speedbar specialized display mode:
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Speedbar can be configured to create a special display for certain
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; modes that do not display traditional file/tag data. Rmail, Info,
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; and the debugger are examples. These modes can, however, benefit
|
|
|
|
|
;; from a speedbar style display in their own way.
|
|
|
|
|
;;
|
|
|
|
|
;; If your `major-mode' is `foo-mode', the only requirement is to
|
|
|
|
|
;; create a function called `foo-speedbar-buttons' which takes one
|
|
|
|
|
;; argument, BUFFER. BUFFER will be the buffer speedbar wants filled.
|
|
|
|
|
;; In `foo-speedbar-buttons' there are several functions that make
|
|
|
|
|
;; building a speedbar display easy. See the documentation for
|
|
|
|
|
;; `speedbar-with-writable' (needed because the buffer is usually
|
|
|
|
|
;; read-only) `speedbar-make-tag-line', `speedbar-insert-button', and
|
|
|
|
|
;; `speedbar-insert-generic-list'. If you use
|
|
|
|
|
;; `speedbar-insert-generic-list', also read the doc for
|
|
|
|
|
;; `speedbar-tag-hierarchy-method' in case you wish to override it.
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; The macro `speedbar-with-attached-buffer' brings you back to the
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; buffer speedbar is displaying for.
|
|
|
|
|
;;
|
|
|
|
|
;; For those functions that make buttons, the "function" should be a
|
|
|
|
|
;; symbol that is the function to call when clicked on. The "token"
|
|
|
|
|
;; is extra data you can pass along. The "function" must take three
|
|
|
|
|
;; parameters. They are (TEXT TOKEN INDENT). TEXT is the text of the
|
|
|
|
|
;; button clicked on. TOKEN is the data passed in when you create the
|
|
|
|
|
;; button. INDENT is an indentation level, or 0. You can store
|
|
|
|
|
;; indentation levels with `speedbar-make-tag-line' which creates a
|
|
|
|
|
;; line with an expander (eg. [+]) and a text button.
|
|
|
|
|
;;
|
|
|
|
|
;; Some useful functions when writing expand functions, and click
|
|
|
|
|
;; functions are `speedbar-change-expand-button-char',
|
|
|
|
|
;; `speedbar-delete-subblock', and `speedbar-center-buffer-smartly'.
|
|
|
|
|
;; The variable `speedbar-power-click' is set to t in your functions
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; when the user shift-clicks. This is an indication of anything from
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; refreshing cached data to making a buffer appear in a new frame.
|
|
|
|
|
;;
|
|
|
|
|
;; If you wish to add to the default speedbar menu for the case of
|
|
|
|
|
;; `foo-mode', create a variable `foo-speedbar-menu-items'. This
|
|
|
|
|
;; should be a list compatible with the `easymenu' package. It will
|
|
|
|
|
;; be spliced into the main menu. (Available with click-mouse-3). If
|
|
|
|
|
;; you wish to have extra key bindings in your special mode, create a
|
|
|
|
|
;; variable `foo-speedbar-key-map'. Instead of using `make-keymap',
|
|
|
|
|
;; or `make-sparse-keymap', use the function
|
|
|
|
|
;; `speedbar-make-specialized-keymap'. This lets you inherit all of
|
|
|
|
|
;; speedbar's default bindings with low overhead.
|
|
|
|
|
;;
|
|
|
|
|
;; Adding a speedbar top-level display mode:
|
|
|
|
|
;;
|
|
|
|
|
;; Unlike the specialized modes, there are no name requirements,
|
|
|
|
|
;; however the methods for writing a button display, menu, and keymap
|
|
|
|
|
;; are the same. Once you create these items, you can call the
|
|
|
|
|
;; function `speedbar-add-expansion-list'. It takes one parameter
|
|
|
|
|
;; which is a list element of the form (NAME MENU KEYMAP &rest
|
|
|
|
|
;; BUTTON-FUNCTIONS). NAME is a string that will show up in the
|
|
|
|
|
;; Displays menu item. MENU is a symbol containing the menu items to
|
|
|
|
|
;; splice in. KEYMAP is a symbol holding the keymap to use, and
|
|
|
|
|
;; BUTTON-FUNCTIONS are the function names to call, in order, to create
|
|
|
|
|
;; the display.
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; Another tweakable variable is `speedbar-stealthy-function-list'
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
;; which is of the form (NAME &rest FUNCTION ...). NAME is the string
|
|
|
|
|
;; name matching `speedbar-add-expansion-list'. (It does not need to
|
|
|
|
|
;; exist.). This provides additional display info which might be
|
|
|
|
|
;; time-consuming to calculate.
|
|
|
|
|
;; Lastly, `speedbar-mode-functions-list' allows you to set special
|
2001-11-07 19:46:57 +00:00
|
|
|
|
;; function overrides. At the moment very few functions may be
|
|
|
|
|
;; overridden, but more will be added as the need is discovered.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
;;; TODO:
|
|
|
|
|
;; - More functions to create buttons and options
|
|
|
|
|
;; - Timeout directories we haven't visited in a while.
|
|
|
|
|
|
|
|
|
|
(require 'assoc)
|
|
|
|
|
(require 'easymenu)
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(condition-case nil
|
|
|
|
|
(require 'image)
|
|
|
|
|
(error nil))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-xemacsp (string-match "XEmacs" emacs-version)
|
|
|
|
|
"Non-nil if we are running in the XEmacs environment.")
|
|
|
|
|
(defvar speedbar-xemacs20p (and speedbar-xemacsp
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(>= emacs-major-version 20)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; customization stuff
|
|
|
|
|
(defgroup speedbar nil
|
|
|
|
|
"File and tag browser frame."
|
2002-11-17 22:49:07 +00:00
|
|
|
|
:group 'etags
|
1998-04-19 22:26:42 +00:00
|
|
|
|
:group 'tools
|
1998-05-26 09:23:23 +00:00
|
|
|
|
:group 'convenience
|
1998-04-19 22:26:42 +00:00
|
|
|
|
:version "20.3")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defgroup speedbar-faces nil
|
|
|
|
|
"Faces used in speedbar."
|
|
|
|
|
:prefix "speedbar-"
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:group 'faces)
|
|
|
|
|
|
|
|
|
|
(defgroup speedbar-vc nil
|
|
|
|
|
"Version control display in speedbar."
|
|
|
|
|
:prefix "speedbar-"
|
|
|
|
|
:group 'speedbar)
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-initial-expansion-mode-alist
|
|
|
|
|
'(("buffers" speedbar-buffer-easymenu-definition speedbar-buffers-key-map
|
|
|
|
|
speedbar-buffer-buttons)
|
|
|
|
|
("quick buffers" speedbar-buffer-easymenu-definition speedbar-buffers-key-map
|
|
|
|
|
speedbar-buffer-buttons-temp)
|
|
|
|
|
;; Files last, means first in the Displays menu
|
|
|
|
|
("files" speedbar-easymenu-definition-special speedbar-file-key-map
|
|
|
|
|
speedbar-directory-buttons speedbar-default-directory-list)
|
|
|
|
|
)
|
|
|
|
|
"List of named expansion elements for filling the speedbar frame.
|
|
|
|
|
These expansion lists are only valid for regular files. Special modes
|
|
|
|
|
still get to override this list on a mode-by-mode basis. This list of
|
|
|
|
|
lists is of the form (NAME MENU KEYMAP FN1 FN2 ...). NAME is a string
|
|
|
|
|
representing the types of things to be displayed. MENU is an easymenu
|
|
|
|
|
structure used when in this mode. KEYMAP is a local keymap to install
|
|
|
|
|
over the regular speedbar keymap. FN1 ... are functions that will be
|
|
|
|
|
called in order. These functions will always get the default
|
|
|
|
|
directory to use passed in as the first parameter, and a 0 as the
|
|
|
|
|
second parameter. The 0 indicates the uppermost indentation level.
|
|
|
|
|
They must assume that the cursor is at the position where they start
|
|
|
|
|
inserting buttons.")
|
|
|
|
|
|
1998-10-04 13:00:45 +00:00
|
|
|
|
(defvar speedbar-initial-expansion-list-name "files"
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"A symbol name representing the expansion list to use.
|
|
|
|
|
The expansion list `speedbar-initial-expansion-mode-alist' contains
|
1998-10-04 13:00:45 +00:00
|
|
|
|
the names and associated functions to use for buttons in speedbar.")
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
(defvar speedbar-previously-used-expansion-list-name "files"
|
|
|
|
|
"Save the last expansion list method.
|
|
|
|
|
This is used for returning to a previous expansion list method when
|
|
|
|
|
the user is done with the current expansion list.")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defvar speedbar-stealthy-function-list
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
'(("files"
|
|
|
|
|
speedbar-update-current-file speedbar-check-vc speedbar-check-objects)
|
|
|
|
|
)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"List of functions to periodically call stealthily.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
This list is of the form:
|
|
|
|
|
'( (\"NAME\" FUNCTION ...)
|
|
|
|
|
...)
|
|
|
|
|
where NAME is the name of the major display mode these functions are
|
|
|
|
|
for, and the remaining elements FUNCTION are functions to call in order.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
Each function must return nil if interrupted, or t if completed.
|
|
|
|
|
Stealthy functions which have a single operation should always return
|
|
|
|
|
t. Functions which take a long time should maintain a state (where
|
|
|
|
|
they are in their speedbar related calculations) and permit
|
|
|
|
|
interruption. See `speedbar-check-vc' as a good example.")
|
|
|
|
|
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(defvar speedbar-mode-functions-list
|
|
|
|
|
'(("files" (speedbar-item-info . speedbar-files-item-info)
|
|
|
|
|
(speedbar-line-path . speedbar-files-line-path))
|
|
|
|
|
("buffers" (speedbar-item-info . speedbar-buffers-item-info)
|
|
|
|
|
(speedbar-line-path . speedbar-buffers-line-path))
|
|
|
|
|
("quick buffers" (speedbar-item-info . speedbar-buffers-item-info)
|
|
|
|
|
(speedbar-line-path . speedbar-buffers-line-path))
|
|
|
|
|
)
|
|
|
|
|
"List of function tables to use for different major display modes.
|
|
|
|
|
It is not necessary to define any functions for a specialized mode.
|
|
|
|
|
This just provides a simple way of adding lots of customizations.
|
|
|
|
|
Each sublist is of the form:
|
|
|
|
|
(\"NAME\" (FUNCTIONSYMBOL . REPLACEMENTFUNCTION) ...)
|
|
|
|
|
Where NAME is the name of the specialized mode. The rest of the list
|
|
|
|
|
is a set of dotted pairs of the form FUNCTIONSYMBOL, which is the name
|
|
|
|
|
of a function you would like to replace, and REPLACEMENTFUNCTION,
|
|
|
|
|
which is a function you can call instead. Not all functions can be
|
|
|
|
|
replaced this way. Replaceable functions must provide that
|
|
|
|
|
functionality individually.")
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defcustom speedbar-mode-specific-contents-flag t
|
|
|
|
|
"*Non-nil means speedbar will show special mode contents.
|
|
|
|
|
This permits some modes to create customized contents for the speedbar
|
|
|
|
|
frame."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-special-mode-expansion-list nil
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"Default function list for creating specialized button lists.
|
|
|
|
|
This list is set by modes that wish to have special speedbar displays.
|
|
|
|
|
The list is of function names. Each function is called with one
|
|
|
|
|
parameter BUFFER, the originating buffer. The current buffer is the
|
|
|
|
|
speedbar buffer.")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-special-mode-key-map nil
|
|
|
|
|
"Default keymap used when identifying a specialized display mode.
|
|
|
|
|
This keymap is local to each buffer that wants to define special keybindings
|
2002-07-10 08:21:49 +00:00
|
|
|
|
effective when its display is shown.")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defcustom speedbar-visiting-file-hook nil
|
|
|
|
|
"Hooks run when speedbar visits a file in the selected frame."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defcustom speedbar-visiting-tag-hook '(speedbar-highlight-one-tag-line)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Hooks run when speedbar visits a tag in the selected frame."
|
|
|
|
|
:group 'speedbar
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:type 'hook
|
2000-09-12 12:54:31 +00:00
|
|
|
|
:version "21.1"
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:options '(speedbar-highlight-one-tag-line
|
|
|
|
|
speedbar-recenter-to-top
|
|
|
|
|
speedbar-recenter
|
|
|
|
|
))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defcustom speedbar-load-hook nil
|
|
|
|
|
"Hooks run when speedbar is loaded."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defcustom speedbar-reconfigure-keymaps-hook nil
|
|
|
|
|
"Hooks run when the keymaps are regenerated."
|
|
|
|
|
:group 'speedbar
|
2000-09-12 12:54:31 +00:00
|
|
|
|
:version "21.1"
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:type 'hook)
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defcustom speedbar-show-unknown-files nil
|
|
|
|
|
"*Non-nil show files we can't expand with a ? in the expand button.
|
|
|
|
|
nil means don't show the file in the list."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-update-speed
|
|
|
|
|
(if speedbar-xemacsp
|
|
|
|
|
(if speedbar-xemacs20p
|
|
|
|
|
2 ; 1 is too obrusive in XEmacs
|
|
|
|
|
5) ; when no idleness, need long delay
|
|
|
|
|
1)
|
|
|
|
|
"*Idle time in seconds needed before speedbar will update itself.
|
|
|
|
|
Updates occur to allow speedbar to display directory information
|
|
|
|
|
relevant to the buffer you are currently editing."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; When I moved to a repeating timer, I had the horrible missfortune
|
|
|
|
|
;; of loosing the ability for adaptive speed choice. This update
|
|
|
|
|
;; speed currently causes long delays when it should have been turned off.
|
|
|
|
|
(defcustom speedbar-navigating-speed speedbar-update-speed
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"*Idle time to wait after navigation commands in speedbar are executed.
|
|
|
|
|
Navigation commands included expanding/contracting nodes, and moving
|
|
|
|
|
between different directories."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-frame-parameters '((minibuffer . nil)
|
|
|
|
|
(width . 20)
|
|
|
|
|
(border-width . 0)
|
|
|
|
|
(menu-bar-lines . 0)
|
2001-02-12 16:33:03 +00:00
|
|
|
|
(tool-bar-lines . 0)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(unsplittable . t))
|
|
|
|
|
"*Parameters to use when creating the speedbar frame in Emacs.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
Any parameter supported by a frame may be added. The parameter `height'
|
|
|
|
|
will be initialized to the height of the frame speedbar is
|
|
|
|
|
attached to and added to this list before the new frame is initialized."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type '(repeat (sexp :tag "Parameter:")))
|
|
|
|
|
|
|
|
|
|
;; These values by Hrvoje Niksic <hniksic@srce.hr>
|
|
|
|
|
(defcustom speedbar-frame-plist
|
|
|
|
|
'(minibuffer nil width 20 border-width 0
|
|
|
|
|
internal-border-width 0 unsplittable t
|
|
|
|
|
default-toolbar-visible-p nil has-modeline-p nil
|
1998-12-19 14:01:53 +00:00
|
|
|
|
menubar-visible-p nil)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"*Parameters to use when creating the speedbar frame in XEmacs.
|
|
|
|
|
Parameters not listed here which will be added automatically are
|
|
|
|
|
`height' which will be initialized to the height of the frame speedbar
|
|
|
|
|
is attached to."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type '(repeat (group :inline t
|
|
|
|
|
(symbol :tag "Property")
|
|
|
|
|
(sexp :tag "Value"))))
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-use-imenu-flag (stringp (locate-library "imenu"))
|
|
|
|
|
"*Non-nil means use imenu for file parsing. nil to use etags.
|
|
|
|
|
XEmacs prior to 20.4 doesn't support imenu, therefore the default is to
|
|
|
|
|
use etags instead. Etags support is not as robust as imenu support."
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:tag "Use Imenu for tags"
|
1998-04-18 19:28:13 +00:00
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defvar speedbar-dynamic-tags-function-list
|
|
|
|
|
'((speedbar-fetch-dynamic-imenu . speedbar-insert-imenu-list)
|
|
|
|
|
(speedbar-fetch-dynamic-etags . speedbar-insert-etags-list))
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Set to a list of functions which will return and insert a list of tags.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
Each element is of the form ( FETCH . INSERT ) where FETCH
|
2002-07-10 08:21:49 +00:00
|
|
|
|
is a function which takes one parameter (the file to tag) and returns a
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
list of tags. The tag list can be of any form as long as the
|
|
|
|
|
corresponding insert method can handle it. If it returns t, then an
|
2002-07-10 08:21:49 +00:00
|
|
|
|
error occurred, and the next fetch routine is tried.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
INSERT is a function which takes an INDENTation level, and a LIST of
|
|
|
|
|
tags to insert. It will then create the speedbar buttons.")
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defcustom speedbar-track-mouse-flag t
|
|
|
|
|
"*Non-nil means to display info about the line under the mouse."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defcustom speedbar-sort-tags nil
|
2002-04-14 08:11:22 +00:00
|
|
|
|
"*If non-nil, sort tags in the speedbar display. *Obsolete*."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defcustom speedbar-tag-hierarchy-method
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
'(speedbar-prefix-group-tag-hierarchy
|
|
|
|
|
speedbar-trim-words-tag-hierarchy)
|
|
|
|
|
"*List of hooks which speedbar will use to organize tags into groups.
|
|
|
|
|
Groups are defined as expandable meta-tags. Imenu supports
|
|
|
|
|
such things in some languages, such as separating variables from
|
2002-07-10 09:26:03 +00:00
|
|
|
|
functions. Each hook takes one argument LST, and may destructively
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
create a new list of the same form. LST is a list of elements of the
|
|
|
|
|
form:
|
|
|
|
|
(ELT1 ELT2 ... ELTn)
|
|
|
|
|
where each ELT is of the form
|
|
|
|
|
(TAG-NAME-STRING . NUMBER-OR-MARKER)
|
|
|
|
|
or
|
2002-07-10 09:26:03 +00:00
|
|
|
|
(GROUP-NAME-STRING ELT1 ELT2... ELTn)"
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
:group 'speedbar
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:type 'hook
|
|
|
|
|
:options '(speedbar-sort-tag-hierarchy
|
|
|
|
|
speedbar-trim-words-tag-hierarchy
|
|
|
|
|
speedbar-prefix-group-tag-hierarchy
|
|
|
|
|
speedbar-simple-group-tag-hierarchy)
|
|
|
|
|
)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(defcustom speedbar-tag-group-name-minimum-length 4
|
|
|
|
|
"*The minimum length of a prefix group name before expanding.
|
|
|
|
|
Thus, if the `speedbar-tag-hierarchy-method' includes `prefix-group'
|
|
|
|
|
and one such groups common characters is less than this number of
|
|
|
|
|
characters, then the group name will be changed to the form of:
|
|
|
|
|
worda to wordb
|
|
|
|
|
instead of just
|
|
|
|
|
word
|
|
|
|
|
This way we won't get silly looking listings."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defcustom speedbar-tag-split-minimum-length 20
|
|
|
|
|
"*Minimum length before we stop trying to create sub-lists in tags.
|
|
|
|
|
This is used by all tag-hierarchy methods that break large lists into
|
|
|
|
|
sub-lists."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-tag-regroup-maximum-length 10
|
|
|
|
|
"*Maximum length of submenus that are regrouped.
|
|
|
|
|
If the regrouping option is used, then if two or more short subgroups
|
|
|
|
|
are next to each other, then they are combined until this number of
|
|
|
|
|
items is reached."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defcustom speedbar-activity-change-focus-flag nil
|
|
|
|
|
"*Non-nil means the selected frame will change based on activity.
|
|
|
|
|
Thus, if a file is selected for edit, the buffer will appear in the
|
|
|
|
|
selected frame and the focus will change to that frame."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-directory-button-trim-method 'span
|
|
|
|
|
"*Indicates how the directory button will be displayed.
|
|
|
|
|
Possible values are:
|
|
|
|
|
'span - span large directories over multiple lines.
|
|
|
|
|
'trim - trim large directories to only show the last few.
|
|
|
|
|
nil - no trimming."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type '(radio (const :tag "Span large directories over mutiple lines."
|
|
|
|
|
span)
|
|
|
|
|
(const :tag "Trim large directories to only show the last few."
|
|
|
|
|
trim)
|
|
|
|
|
(const :tag "No trimming." nil)))
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-smart-directory-expand-flag t
|
|
|
|
|
"*Non-nil means speedbar should use smart expansion.
|
|
|
|
|
Smart expansion only affects when speedbar wants to display a
|
|
|
|
|
directory for a file in the attached frame. When smart expansion is
|
|
|
|
|
enabled, new directories which are children of a displayed directory
|
|
|
|
|
are expanded in the current framework. If nil, then the current
|
|
|
|
|
hierarchy would be replaced with the new directory."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defcustom speedbar-indentation-width 1
|
|
|
|
|
"*When sub-nodes are expanded, the number of spaces used for indentation."
|
|
|
|
|
:group 'speedbar
|
2000-09-12 12:54:31 +00:00
|
|
|
|
:version "21.1"
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:type 'integer)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-hide-button-brackets-flag nil
|
|
|
|
|
"*Non-nil means speedbar will hide the brackets around the + or -."
|
|
|
|
|
:group 'speedbar
|
2000-09-12 12:54:31 +00:00
|
|
|
|
:version "21.1"
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-use-images (and (or (fboundp 'defimage)
|
|
|
|
|
(fboundp 'make-image-specifier))
|
2000-05-28 10:52:50 +00:00
|
|
|
|
(if (fboundp 'display-graphic-p)
|
|
|
|
|
(display-graphic-p)
|
|
|
|
|
window-system))
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"*Non-nil if speedbar should display icons."
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:group 'speedbar
|
2000-09-12 12:54:31 +00:00
|
|
|
|
:version "21.1"
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
:type 'boolean)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defcustom speedbar-before-popup-hook nil
|
|
|
|
|
"*Hooks called before popping up the speedbar frame."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-before-delete-hook nil
|
|
|
|
|
"*Hooks called before deleting the speedbar frame."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-mode-hook nil
|
|
|
|
|
"*Hooks called after creating a speedbar buffer."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-timer-hook nil
|
|
|
|
|
"*Hooks called after running the speedbar timer function."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-verbosity-level 1
|
|
|
|
|
"*Verbosity level of the speedbar. 0 means say nothing.
|
|
|
|
|
1 means medium level verbosity. 2 and higher are higher levels of
|
|
|
|
|
verbosity."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-indicator-separator " "
|
|
|
|
|
"String separating file text from indicator characters.")
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defcustom speedbar-vc-do-check t
|
|
|
|
|
"*Non-nil check all files in speedbar to see if they have been checked out.
|
2002-07-10 09:26:03 +00:00
|
|
|
|
Any file checked out is marked with `speedbar-vc-indicator'."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
:group 'speedbar-vc
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-vc-indicator "*"
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Text used to mark files which are currently checked out.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
Other version control systems can be added by examining the function
|
|
|
|
|
`speedbar-vc-path-enable-hook' and `speedbar-vc-in-control-hook'.")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defcustom speedbar-vc-path-enable-hook nil
|
|
|
|
|
"*Return non-nil if the current path should be checked for Version Control.
|
|
|
|
|
Functions in this hook must accept one parameter which is the path
|
|
|
|
|
being checked."
|
|
|
|
|
:group 'speedbar-vc
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-vc-in-control-hook nil
|
|
|
|
|
"*Return non-nil if the specified file is under Version Control.
|
|
|
|
|
Functions in this hook must accept two parameters. The PATH of the
|
|
|
|
|
current file, and the FILENAME of the file being checked."
|
|
|
|
|
:group 'speedbar-vc
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-vc-to-do-point nil
|
|
|
|
|
"Local variable maintaining the current version control check position.")
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defcustom speedbar-obj-do-check t
|
|
|
|
|
"*Non-nil check all files in speedbar to see if they have an object file.
|
|
|
|
|
Any file checked out is marked with `speedbar-obj-indicator', and the
|
2002-07-10 09:45:18 +00:00
|
|
|
|
marking is based on `speedbar-obj-alist'."
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
:group 'speedbar-vc
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-obj-to-do-point nil
|
|
|
|
|
"Local variable maintaining the current version control check position.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-obj-indicator '("#" . "!")
|
|
|
|
|
"Text used to mark files that have a corresponding hidden object file.
|
|
|
|
|
The car is for an up-to-date object. The cdr is for an out of date object.
|
|
|
|
|
The expression `speedbar-obj-alist' defines who gets tagged.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-obj-alist
|
|
|
|
|
'(("\\.\\([cpC]\\|cpp\\|cc\\)$" . ".o")
|
|
|
|
|
("\\.el$" . ".elc")
|
|
|
|
|
("\\.java$" . ".class")
|
|
|
|
|
("\\.f\\(or\\|90\\|77\\)?$" . ".o")
|
|
|
|
|
("\\.tex$" . ".dvi")
|
|
|
|
|
("\\.texi$" . ".info"))
|
|
|
|
|
"Alist of file extensions, and their corresponding object file type.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-indicator-regex
|
|
|
|
|
(concat (regexp-quote speedbar-indicator-separator)
|
|
|
|
|
"\\("
|
|
|
|
|
(regexp-quote speedbar-vc-indicator)
|
|
|
|
|
"\\|"
|
|
|
|
|
(regexp-quote (car speedbar-obj-indicator))
|
|
|
|
|
"\\|"
|
|
|
|
|
(regexp-quote (cdr speedbar-obj-indicator))
|
|
|
|
|
"\\)*")
|
|
|
|
|
"Regular expression used when identifying files.
|
|
|
|
|
Permits stripping of indicator characters from a line.")
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-scanner-reset-hook nil
|
|
|
|
|
"*Hook called whenever generic scanners are reset.
|
|
|
|
|
Set this to implement your own scanning / rescan safe functions with
|
|
|
|
|
state data."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'hook)
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defvar speedbar-ignored-modes nil
|
|
|
|
|
"*List of major modes which speedbar will not switch directories for.")
|
|
|
|
|
|
|
|
|
|
(defun speedbar-extension-list-to-regex (extlist)
|
|
|
|
|
"Takes EXTLIST, a list of extensions and transforms it into regexp.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
All the preceding `.' are stripped for an optimized expression starting
|
|
|
|
|
with `.' followed by extensions, followed by full-filenames."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((regex1 nil) (regex2 nil))
|
|
|
|
|
(while extlist
|
|
|
|
|
(if (= (string-to-char (car extlist)) ?.)
|
|
|
|
|
(setq regex1 (concat regex1 (if regex1 "\\|" "")
|
|
|
|
|
(substring (car extlist) 1)))
|
|
|
|
|
(setq regex2 (concat regex2 (if regex2 "\\|" "") (car extlist))))
|
|
|
|
|
(setq extlist (cdr extlist)))
|
|
|
|
|
;; concat all the sub-exressions together, making sure all types
|
|
|
|
|
;; of parts exist during concatination.
|
|
|
|
|
(concat "\\("
|
|
|
|
|
(if regex1 (concat "\\(\\.\\(" regex1 "\\)\\)") "")
|
|
|
|
|
(if (and regex1 regex2) "\\|" "")
|
|
|
|
|
(if regex2 (concat "\\(" regex2 "\\)") "")
|
|
|
|
|
"\\)$")))
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-ignored-path-regexp nil
|
|
|
|
|
"Regular expression matching paths speedbar will not switch to.
|
|
|
|
|
Created from `speedbar-ignored-path-expressions' with the function
|
|
|
|
|
`speedbar-extension-list-to-regex' (A misnamed function in this case.)
|
|
|
|
|
Use the function `speedbar-add-ignored-path-regexp', or customize the
|
|
|
|
|
variable `speedbar-ignored-path-expressions' to modify this variable.")
|
|
|
|
|
|
|
|
|
|
(defcustom speedbar-ignored-path-expressions
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
'("[/\\]logs?[/\\]\\'")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"*List of regular expressions matching directories speedbar will ignore.
|
|
|
|
|
They should included paths to directories which are notoriously very
|
|
|
|
|
large and take a long time to load in. Use the function
|
|
|
|
|
`speedbar-add-ignored-path-regexp' to add new items to this list after
|
|
|
|
|
speedbar is loaded. You may place anything you like in this list
|
|
|
|
|
before speedbar has been loaded."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type '(repeat (regexp :tag "Path Regexp"))
|
|
|
|
|
:set (lambda (sym val)
|
|
|
|
|
(setq speedbar-ignored-path-expressions val
|
|
|
|
|
speedbar-ignored-path-regexp
|
|
|
|
|
(speedbar-extension-list-to-regex val))))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defcustom speedbar-directory-unshown-regexp "^\\(CVS\\|RCS\\|SCCS\\)\\'"
|
|
|
|
|
"*Regular expression matching directories not to show in speedbar.
|
|
|
|
|
They should include commonly existing directories which are not
|
|
|
|
|
useful, such as version control."
|
|
|
|
|
:group 'speedbar
|
|
|
|
|
:type 'string)
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defvar speedbar-file-unshown-regexp
|
|
|
|
|
(let ((nstr "") (noext completion-ignored-extensions))
|
|
|
|
|
(while noext
|
|
|
|
|
(setq nstr (concat nstr (regexp-quote (car noext)) "\\'"
|
|
|
|
|
(if (cdr noext) "\\|" ""))
|
|
|
|
|
noext (cdr noext)))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
;; backup refdir lockfile
|
|
|
|
|
(concat nstr "\\|#[^#]+#$\\|\\.\\.?\\'\\|\\.#"))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"*Regexp matching files we don't want displayed in a speedbar buffer.
|
|
|
|
|
It is generated from the variable `completion-ignored-extensions'")
|
|
|
|
|
|
|
|
|
|
;; this is dangerous to customize, because the defaults will probably
|
|
|
|
|
;; change in the future.
|
|
|
|
|
(defcustom speedbar-supported-extension-expressions
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(append '(".[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?" ".tex\\(i\\(nfo\\)?\\)?"
|
|
|
|
|
".el" ".emacs" ".l" ".lsp" ".p" ".java" ".f\\(90\\|77\\|or\\)?")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if speedbar-use-imenu-flag
|
2001-07-12 07:15:00 +00:00
|
|
|
|
'(".ada" ".p[lm]" ".tcl" ".m" ".scm" ".pm" ".py" ".g"
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; html is not supported by default, but an imenu tags package
|
|
|
|
|
;; is available. Also, html files are nice to be able to see.
|
|
|
|
|
".s?html"
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"[Mm]akefile\\(\\.in\\)?")))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"*List of regular expressions which will match files supported by tagging.
|
|
|
|
|
Do not prefix the `.' char with a double \\ to quote it, as the period
|
|
|
|
|
will be stripped by a simplified optimizer when compiled into a
|
|
|
|
|
singular expression. This variable will be turned into
|
|
|
|
|
`speedbar-file-regexp' for use with speedbar. You should use the
|
|
|
|
|
function `speedbar-add-supported-extension' to add a new extension at
|
|
|
|
|
runtime, or use the configuration dialog to set it in your .emacs
|
|
|
|
|
file."
|
|
|
|
|
:group 'speedbar
|
2000-09-12 12:54:31 +00:00
|
|
|
|
:version "21.1"
|
1998-04-18 19:28:13 +00:00
|
|
|
|
:type '(repeat (regexp :tag "Extension Regexp"))
|
|
|
|
|
:set (lambda (sym val)
|
|
|
|
|
(setq speedbar-supported-extension-expressions val
|
|
|
|
|
speedbar-file-regexp (speedbar-extension-list-to-regex val)))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-file-regexp
|
|
|
|
|
(speedbar-extension-list-to-regex speedbar-supported-extension-expressions)
|
|
|
|
|
"Regular expression matching files we know how to expand.
|
|
|
|
|
Created from `speedbar-supported-extension-expression' with the
|
|
|
|
|
function `speedbar-extension-list-to-regex'")
|
|
|
|
|
|
|
|
|
|
(defun speedbar-add-supported-extension (extension)
|
|
|
|
|
"Add EXTENSION as a new supported extension for speedbar tagging.
|
|
|
|
|
This should start with a `.' if it is not a complete file name, and
|
|
|
|
|
the dot should NOT be quoted in with \\. Other regular expression
|
|
|
|
|
matchers are allowed however. EXTENSION may be a single string or a
|
|
|
|
|
list of strings."
|
2002-04-14 08:11:22 +00:00
|
|
|
|
(interactive "sExtension: ")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (not (listp extension)) (setq extension (list extension)))
|
|
|
|
|
(while extension
|
|
|
|
|
(if (member (car extension) speedbar-supported-extension-expressions)
|
|
|
|
|
nil
|
|
|
|
|
(setq speedbar-supported-extension-expressions
|
|
|
|
|
(cons (car extension) speedbar-supported-extension-expressions)))
|
|
|
|
|
(setq extension (cdr extension)))
|
|
|
|
|
(setq speedbar-file-regexp (speedbar-extension-list-to-regex
|
|
|
|
|
speedbar-supported-extension-expressions)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-add-ignored-path-regexp (path-expression)
|
|
|
|
|
"Add PATH-EXPRESSION as a new ignored path for speedbar tracking.
|
|
|
|
|
This function will modify `speedbar-ignored-path-regexp' and add
|
|
|
|
|
PATH-EXPRESSION to `speedbar-ignored-path-expressions'."
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(interactive "sPath regex: ")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (not (listp path-expression))
|
|
|
|
|
(setq path-expression (list path-expression)))
|
|
|
|
|
(while path-expression
|
|
|
|
|
(if (member (car path-expression) speedbar-ignored-path-expressions)
|
|
|
|
|
nil
|
|
|
|
|
(setq speedbar-ignored-path-expressions
|
|
|
|
|
(cons (car path-expression) speedbar-ignored-path-expressions)))
|
|
|
|
|
(setq path-expression (cdr path-expression)))
|
|
|
|
|
(setq speedbar-ignored-path-regexp (speedbar-extension-list-to-regex
|
|
|
|
|
speedbar-ignored-path-expressions)))
|
|
|
|
|
|
|
|
|
|
;; If we don't have custom, then we set it here by hand.
|
|
|
|
|
(if (not (fboundp 'custom-declare-variable))
|
|
|
|
|
(setq speedbar-file-regexp (speedbar-extension-list-to-regex
|
|
|
|
|
speedbar-supported-extension-expressions)
|
|
|
|
|
speedbar-ignored-path-regexp (speedbar-extension-list-to-regex
|
|
|
|
|
speedbar-ignored-path-expressions)))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-update-flag (and
|
|
|
|
|
(or (fboundp 'run-with-idle-timer)
|
|
|
|
|
(fboundp 'start-itimer)
|
|
|
|
|
(boundp 'post-command-idle-hook))
|
2000-05-28 10:52:50 +00:00
|
|
|
|
(if (fboundp 'display-graphic-p)
|
|
|
|
|
(display-graphic-p)
|
|
|
|
|
window-system))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"*Non-nil means to automatically update the display.
|
|
|
|
|
When this is nil then speedbar will not follow the attached frame's path.
|
|
|
|
|
When speedbar is active, use:
|
|
|
|
|
|
|
|
|
|
\\<speedbar-key-map> `\\[speedbar-toggle-updates]'
|
|
|
|
|
|
|
|
|
|
to toggle this value.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-syntax-table nil
|
|
|
|
|
"Syntax-table used on the speedbar.")
|
|
|
|
|
|
|
|
|
|
(if speedbar-syntax-table
|
|
|
|
|
nil
|
|
|
|
|
(setq speedbar-syntax-table (make-syntax-table))
|
|
|
|
|
;; turn off paren matching around here.
|
|
|
|
|
(modify-syntax-entry ?\' " " speedbar-syntax-table)
|
|
|
|
|
(modify-syntax-entry ?\" " " speedbar-syntax-table)
|
|
|
|
|
(modify-syntax-entry ?( " " speedbar-syntax-table)
|
|
|
|
|
(modify-syntax-entry ?) " " speedbar-syntax-table)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(modify-syntax-entry ?{ " " speedbar-syntax-table)
|
|
|
|
|
(modify-syntax-entry ?} " " speedbar-syntax-table)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(modify-syntax-entry ?[ " " speedbar-syntax-table)
|
|
|
|
|
(modify-syntax-entry ?] " " speedbar-syntax-table))
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-key-map nil
|
|
|
|
|
"Keymap used in speedbar buffer.")
|
|
|
|
|
|
|
|
|
|
(if speedbar-key-map
|
|
|
|
|
nil
|
|
|
|
|
(setq speedbar-key-map (make-keymap))
|
|
|
|
|
(suppress-keymap speedbar-key-map t)
|
|
|
|
|
|
|
|
|
|
;; control
|
|
|
|
|
(define-key speedbar-key-map "g" 'speedbar-refresh)
|
|
|
|
|
(define-key speedbar-key-map "t" 'speedbar-toggle-updates)
|
|
|
|
|
(define-key speedbar-key-map "q" 'speedbar-close-frame)
|
1998-08-19 21:43:56 +00:00
|
|
|
|
(define-key speedbar-key-map "Q" 'delete-frame)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
;; navigation
|
|
|
|
|
(define-key speedbar-key-map "n" 'speedbar-next)
|
|
|
|
|
(define-key speedbar-key-map "p" 'speedbar-prev)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(define-key speedbar-key-map "\M-n" 'speedbar-restricted-next)
|
|
|
|
|
(define-key speedbar-key-map "\M-p" 'speedbar-restricted-prev)
|
|
|
|
|
(define-key speedbar-key-map "\C-\M-n" 'speedbar-forward-list)
|
|
|
|
|
(define-key speedbar-key-map "\C-\M-p" 'speedbar-backward-list)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(define-key speedbar-key-map " " 'speedbar-scroll-up)
|
|
|
|
|
(define-key speedbar-key-map [delete] 'speedbar-scroll-down)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Short cuts I happen to find useful
|
|
|
|
|
(define-key speedbar-key-map "r"
|
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(speedbar-change-initial-expansion-list
|
|
|
|
|
speedbar-previously-used-expansion-list-name)))
|
|
|
|
|
(define-key speedbar-key-map "b"
|
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(speedbar-change-initial-expansion-list "quick buffers")))
|
|
|
|
|
(define-key speedbar-key-map "f"
|
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(speedbar-change-initial-expansion-list "files")))
|
|
|
|
|
|
|
|
|
|
;; Overrides
|
|
|
|
|
(substitute-key-definition 'switch-to-buffer
|
|
|
|
|
'speedbar-switch-buffer-attached-frame
|
|
|
|
|
speedbar-key-map global-map)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(if speedbar-xemacsp
|
|
|
|
|
(progn
|
|
|
|
|
;; mouse bindings so we can manipulate the items on each line
|
|
|
|
|
(define-key speedbar-key-map 'button2 'speedbar-click)
|
|
|
|
|
(define-key speedbar-key-map '(shift button2) 'speedbar-power-click)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Info doc fix from Bob Weiner
|
|
|
|
|
(if (featurep 'infodoc)
|
|
|
|
|
nil
|
|
|
|
|
(define-key speedbar-key-map 'button3 'speedbar-xemacs-popup-kludge))
|
|
|
|
|
(define-key speedbar-key-map '(meta button3) 'speedbar-mouse-item-info)
|
|
|
|
|
)
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; mouse bindings so we can manipulate the items on each line
|
|
|
|
|
(define-key speedbar-key-map [down-mouse-1] 'speedbar-double-click)
|
|
|
|
|
(define-key speedbar-key-map [mouse-2] 'speedbar-click)
|
|
|
|
|
;; This is the power click for new frames, or refreshing a cache
|
|
|
|
|
(define-key speedbar-key-map [S-mouse-2] 'speedbar-power-click)
|
|
|
|
|
;; This adds a small unecessary visual effect
|
|
|
|
|
;;(define-key speedbar-key-map [down-mouse-2] 'speedbar-quick-mouse)
|
|
|
|
|
(define-key speedbar-key-map [M-mouse-2] 'speedbar-mouse-item-info)
|
|
|
|
|
|
|
|
|
|
(define-key speedbar-key-map [down-mouse-3] 'speedbar-emacs-popup-kludge)
|
|
|
|
|
|
|
|
|
|
;; This lets the user scroll as if we had a scrollbar... well maybe not
|
|
|
|
|
(define-key speedbar-key-map [mode-line mouse-2] 'speedbar-mouse-hscroll)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; another handy place users might click to get our menu.
|
|
|
|
|
(define-key speedbar-key-map [mode-line down-mouse-1]
|
|
|
|
|
'speedbar-emacs-popup-kludge)
|
|
|
|
|
|
1998-08-03 17:47:39 +00:00
|
|
|
|
;; We can't switch buffers with the buffer mouse menu. Lets hack it.
|
|
|
|
|
(define-key speedbar-key-map [C-down-mouse-1] 'speedbar-hack-buffer-menu)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Lastly, we want to track the mouse. Play here
|
|
|
|
|
(define-key speedbar-key-map [mouse-movement] 'speedbar-track-mouse)
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-make-specialized-keymap ()
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Create a keymap for use with a speedbar major or minor display mode.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
This basically creates a sparse keymap, and makes it's parent be
|
|
|
|
|
`speedbar-key-map'."
|
|
|
|
|
(let ((k (make-sparse-keymap)))
|
|
|
|
|
(set-keymap-parent k speedbar-key-map)
|
|
|
|
|
k))
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-file-key-map nil
|
|
|
|
|
"Keymap used in speedbar buffer while files are displayed.")
|
|
|
|
|
|
|
|
|
|
(if speedbar-file-key-map
|
|
|
|
|
nil
|
|
|
|
|
(setq speedbar-file-key-map (speedbar-make-specialized-keymap))
|
|
|
|
|
|
|
|
|
|
;; Basic tree features
|
|
|
|
|
(define-key speedbar-file-key-map "e" 'speedbar-edit-line)
|
|
|
|
|
(define-key speedbar-file-key-map "\C-m" 'speedbar-edit-line)
|
|
|
|
|
(define-key speedbar-file-key-map "+" 'speedbar-expand-line)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(define-key speedbar-file-key-map "=" 'speedbar-expand-line)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(define-key speedbar-file-key-map "-" 'speedbar-contract-line)
|
|
|
|
|
|
|
|
|
|
;; file based commands
|
|
|
|
|
(define-key speedbar-file-key-map "U" 'speedbar-up-directory)
|
|
|
|
|
(define-key speedbar-file-key-map "I" 'speedbar-item-info)
|
|
|
|
|
(define-key speedbar-file-key-map "B" 'speedbar-item-byte-compile)
|
|
|
|
|
(define-key speedbar-file-key-map "L" 'speedbar-item-load)
|
|
|
|
|
(define-key speedbar-file-key-map "C" 'speedbar-item-copy)
|
|
|
|
|
(define-key speedbar-file-key-map "D" 'speedbar-item-delete)
|
|
|
|
|
(define-key speedbar-file-key-map "O" 'speedbar-item-object-delete)
|
|
|
|
|
(define-key speedbar-file-key-map "R" 'speedbar-item-rename)
|
|
|
|
|
)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defvar speedbar-easymenu-definition-base
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(append
|
|
|
|
|
'("Speedbar"
|
|
|
|
|
["Update" speedbar-refresh t]
|
|
|
|
|
["Auto Update" speedbar-toggle-updates
|
|
|
|
|
:style toggle :selected speedbar-update-flag])
|
|
|
|
|
(if (and (or (fboundp 'defimage)
|
|
|
|
|
(fboundp 'make-image-specifier))
|
2000-05-28 10:52:50 +00:00
|
|
|
|
(if (fboundp 'display-graphic-p)
|
|
|
|
|
(display-graphic-p)
|
|
|
|
|
window-system))
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(list
|
|
|
|
|
["Use Images" speedbar-toggle-images
|
|
|
|
|
:style toggle :selected speedbar-use-images]))
|
|
|
|
|
)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Base part of the speedbar menu.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-easymenu-definition-special
|
|
|
|
|
'(["Edit Item On Line" speedbar-edit-line t]
|
|
|
|
|
["Show All Files" speedbar-toggle-show-all-files
|
|
|
|
|
:style toggle :selected speedbar-show-unknown-files]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
["Expand File Tags" speedbar-expand-line
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.\\+. "))]
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
["Flush Cache & Expand" speedbar-flush-expand-line
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.\\+. "))]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
["Contract File Tags" speedbar-contract-line
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.-. "))]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
; ["Sort Tags" speedbar-toggle-sorting
|
|
|
|
|
; :style toggle :selected speedbar-sort-tags]
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"----"
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
["File/Tag Information" speedbar-item-info t]
|
1998-04-18 19:28:13 +00:00
|
|
|
|
["Load Lisp File" speedbar-item-load
|
|
|
|
|
(save-excursion
|
|
|
|
|
(beginning-of-line)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(looking-at "[0-9]+: *\\[[+-]\\] .+\\(\\.el\\)\\( \\|$\\)"))]
|
1998-04-18 19:28:13 +00:00
|
|
|
|
["Byte Compile File" speedbar-item-byte-compile
|
|
|
|
|
(save-excursion
|
|
|
|
|
(beginning-of-line)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(looking-at "[0-9]+: *\\[[+-]\\] .+\\(\\.el\\)\\( \\|$\\)"))]
|
|
|
|
|
["Copy File" speedbar-item-copy
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion (beginning-of-line) (looking-at "[0-9]+: *\\["))]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
["Rename File" speedbar-item-rename
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion (beginning-of-line) (looking-at "[0-9]+: *[[<]"))]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
["Delete File" speedbar-item-delete
|
|
|
|
|
(save-excursion (beginning-of-line) (looking-at "[0-9]+: *[[<]"))]
|
|
|
|
|
["Delete Object" speedbar-item-object-delete
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *\\[[+-]\\] [^ \n]+ \\*?[!#]$"))]
|
|
|
|
|
)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Additional menu items while in file-mode.")
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defvar speedbar-easymenu-definition-trailer
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(append
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if (and (featurep 'custom) (fboundp 'custom-declare-variable))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(list ["Customize..." speedbar-customize t]))
|
|
|
|
|
(list
|
|
|
|
|
["Close" speedbar-close-frame t]
|
|
|
|
|
["Quit" delete-frame t] ))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Menu items appearing at the end of the speedbar menu.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-desired-buffer nil
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Non-nil when speedbar is showing buttons specific to a special mode.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
In this case it is the originating buffer.")
|
|
|
|
|
(defvar speedbar-buffer nil
|
|
|
|
|
"The buffer displaying the speedbar.")
|
|
|
|
|
(defvar speedbar-frame nil
|
|
|
|
|
"The frame displaying speedbar.")
|
|
|
|
|
(defvar speedbar-cached-frame nil
|
|
|
|
|
"The frame that was last created, then removed from the display.")
|
|
|
|
|
(defvar speedbar-full-text-cache nil
|
|
|
|
|
"The last open directory is saved in its entirety for ultra-fast switching.")
|
|
|
|
|
(defvar speedbar-timer nil
|
|
|
|
|
"The speedbar timer used for updating the buffer.")
|
|
|
|
|
(defvar speedbar-attached-frame nil
|
|
|
|
|
"The frame which started speedbar mode.
|
|
|
|
|
This is the frame from which all data displayed in the speedbar is
|
|
|
|
|
gathered, and in which files and such are displayed.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-last-selected-file nil
|
|
|
|
|
"The last file which was selected in speedbar buffer.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-shown-directories nil
|
|
|
|
|
"Maintain list of directories simultaneously open in the current speedbar.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-directory-contents-alist nil
|
|
|
|
|
"An association list of directories and their contents.
|
|
|
|
|
Each sublist was returned by `speedbar-file-lists'. This list is
|
|
|
|
|
maintained to speed up the refresh rate when switching between
|
|
|
|
|
directories.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-power-click nil
|
|
|
|
|
"Never set this by hand. Value is t when S-mouse activity occurs.")
|
|
|
|
|
|
|
|
|
|
|
1998-12-19 14:01:53 +00:00
|
|
|
|
;;; Compatibility
|
|
|
|
|
;;
|
|
|
|
|
(if (fboundp 'frame-parameter)
|
|
|
|
|
|
|
|
|
|
(defalias 'speedbar-frame-parameter 'frame-parameter)
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(defun speedbar-frame-parameter (frame parameter)
|
|
|
|
|
"Return FRAME's PARAMETER value."
|
|
|
|
|
(cdr (assoc parameter (frame-parameters frame)))))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
|
|
|
|
|
(if (fboundp 'make-overlay)
|
|
|
|
|
(progn
|
|
|
|
|
(defalias 'speedbar-make-overlay 'make-overlay)
|
|
|
|
|
(defalias 'speedbar-overlay-put 'overlay-put)
|
|
|
|
|
(defalias 'speedbar-delete-overlay 'delete-overlay)
|
|
|
|
|
(defalias 'speedbar-overlay-start 'overlay-start)
|
|
|
|
|
(defalias 'speedbar-overlay-end 'overlay-end)
|
|
|
|
|
(defalias 'speedbar-mode-line-update 'force-mode-line-update))
|
|
|
|
|
(defalias 'speedbar-make-overlay 'make-extent)
|
|
|
|
|
(defalias 'speedbar-overlay-put 'set-extent-property)
|
|
|
|
|
(defalias 'speedbar-delete-overlay 'delete-extent)
|
|
|
|
|
(defalias 'speedbar-overlay-start 'extent-start)
|
|
|
|
|
(defalias 'speedbar-overlay-end 'extent-end)
|
|
|
|
|
(defalias 'speedbar-mode-line-update 'redraw-modeline))
|
1998-12-19 14:01:53 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;; Mode definitions/ user commands
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defalias 'speedbar 'speedbar-frame-mode)
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun speedbar-frame-mode (&optional arg)
|
|
|
|
|
"Enable or disable speedbar. Positive ARG means turn on, negative turn off.
|
|
|
|
|
nil means toggle. Once the speedbar frame is activated, a buffer in
|
|
|
|
|
`speedbar-mode' will be displayed. Currently, only one speedbar is
|
|
|
|
|
supported at a time.
|
|
|
|
|
`speedbar-before-popup-hook' is called before popping up the speedbar frame.
|
|
|
|
|
`speedbar-before-delete-hook' is called before the frame is deleted."
|
|
|
|
|
(interactive "P")
|
|
|
|
|
;; toggle frame on and off.
|
|
|
|
|
(if (not arg) (if (and (frame-live-p speedbar-frame)
|
|
|
|
|
(frame-visible-p speedbar-frame))
|
|
|
|
|
(setq arg -1) (setq arg 1)))
|
|
|
|
|
;; turn the frame off on neg number
|
|
|
|
|
(if (and (numberp arg) (< arg 0))
|
|
|
|
|
(progn
|
|
|
|
|
(run-hooks 'speedbar-before-delete-hook)
|
|
|
|
|
(if (and speedbar-frame (frame-live-p speedbar-frame))
|
|
|
|
|
(progn
|
|
|
|
|
(setq speedbar-cached-frame speedbar-frame)
|
|
|
|
|
(make-frame-invisible speedbar-frame)))
|
|
|
|
|
(setq speedbar-frame nil)
|
|
|
|
|
(speedbar-set-timer nil)
|
|
|
|
|
;; Used to delete the buffer. This has the annoying affect of
|
|
|
|
|
;; preventing whatever took its place from ever appearing
|
|
|
|
|
;; as the default after a C-x b was typed
|
|
|
|
|
;;(if (bufferp speedbar-buffer)
|
|
|
|
|
;; (kill-buffer speedbar-buffer))
|
|
|
|
|
)
|
|
|
|
|
;; Set this as our currently attached frame
|
|
|
|
|
(setq speedbar-attached-frame (selected-frame))
|
|
|
|
|
(run-hooks 'speedbar-before-popup-hook)
|
|
|
|
|
;; Get the frame to work in
|
|
|
|
|
(if (frame-live-p speedbar-cached-frame)
|
|
|
|
|
(progn
|
|
|
|
|
(setq speedbar-frame speedbar-cached-frame)
|
|
|
|
|
(make-frame-visible speedbar-frame)
|
|
|
|
|
;; Get the buffer to play with
|
|
|
|
|
(speedbar-mode)
|
|
|
|
|
(select-frame speedbar-frame)
|
|
|
|
|
(if (not (eq (current-buffer) speedbar-buffer))
|
|
|
|
|
(switch-to-buffer speedbar-buffer))
|
|
|
|
|
(set-window-dedicated-p (selected-window) t)
|
|
|
|
|
(raise-frame speedbar-frame)
|
|
|
|
|
(speedbar-set-timer speedbar-update-speed)
|
|
|
|
|
)
|
|
|
|
|
(if (frame-live-p speedbar-frame)
|
|
|
|
|
(raise-frame speedbar-frame)
|
|
|
|
|
(setq speedbar-frame
|
|
|
|
|
(if speedbar-xemacsp
|
1998-12-19 14:01:53 +00:00
|
|
|
|
;; Only guess height if it is not specified.
|
|
|
|
|
(if (member 'height speedbar-frame-plist)
|
|
|
|
|
(make-frame speedbar-frame-plist)
|
|
|
|
|
(make-frame (nconc (list 'height
|
|
|
|
|
(speedbar-needed-height))
|
|
|
|
|
speedbar-frame-plist)))
|
|
|
|
|
(let* ((mh (speedbar-frame-parameter nil 'menu-bar-lines))
|
|
|
|
|
(cfx (speedbar-frame-parameter nil 'left))
|
|
|
|
|
(cfy (speedbar-frame-parameter nil 'top))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
(cfw (frame-pixel-width))
|
|
|
|
|
(params
|
1998-12-19 14:01:53 +00:00
|
|
|
|
;; Only add a guessed height if one is not specified
|
|
|
|
|
;; in the input parameters.
|
|
|
|
|
(if (assoc 'height speedbar-frame-parameters)
|
|
|
|
|
speedbar-frame-parameters
|
|
|
|
|
(append
|
|
|
|
|
speedbar-frame-parameters
|
|
|
|
|
(list (cons 'height (+ mh (frame-height)))))))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
(frame
|
|
|
|
|
(if (or (< emacs-major-version 20)
|
|
|
|
|
(not (eq window-system 'x)))
|
|
|
|
|
(make-frame params)
|
|
|
|
|
(let ((x-pointer-shape x-pointer-top-left-arrow)
|
|
|
|
|
(x-sensitive-text-pointer-shape
|
|
|
|
|
x-pointer-hand2))
|
|
|
|
|
(make-frame params)))))
|
1998-12-19 14:01:53 +00:00
|
|
|
|
;; Position speedbar frame.
|
|
|
|
|
(if (or (not window-system) (eq window-system 'pc)
|
|
|
|
|
(assoc 'left speedbar-frame-parameters)
|
|
|
|
|
(assoc 'top speedbar-frame-parameters))
|
|
|
|
|
;; Do no positioning if not on a windowing system,
|
|
|
|
|
;; or if left/top were specified in the parameters.
|
|
|
|
|
frame
|
|
|
|
|
(let ((cfx
|
|
|
|
|
(if (not (consp cfx))
|
|
|
|
|
cfx
|
|
|
|
|
;; If cfx is a list, that means we grow
|
|
|
|
|
;; from a specific edge of the display.
|
|
|
|
|
;; Convert that to the distance from the
|
|
|
|
|
;; left side of the display.
|
|
|
|
|
(if (eq (car cfx) '-)
|
|
|
|
|
;; A - means distance from the right edge
|
|
|
|
|
;; of the display, or DW - cfx - framewidth
|
|
|
|
|
(- (x-display-pixel-width) (car (cdr cfx))
|
|
|
|
|
(frame-pixel-width))
|
|
|
|
|
(car (cdr cfx))))))
|
|
|
|
|
(modify-frame-parameters
|
|
|
|
|
frame
|
|
|
|
|
(list
|
|
|
|
|
(cons
|
|
|
|
|
'left
|
|
|
|
|
;; Decide which side to put it
|
|
|
|
|
;; on. 200 is just a buffer
|
|
|
|
|
;; for the left edge of the
|
|
|
|
|
;; screen. The extra 10 is just
|
|
|
|
|
;; dressings for window decorations.
|
|
|
|
|
(let ((sfw (frame-pixel-width frame)))
|
|
|
|
|
(let ((left-guess (- cfx 10 sfw))
|
|
|
|
|
(right-guess (+ cfx cfw 5)))
|
|
|
|
|
(let ((left-margin left-guess)
|
|
|
|
|
(right-margin
|
|
|
|
|
(- (x-display-pixel-width)
|
|
|
|
|
right-guess 5 sfw)))
|
|
|
|
|
(cond ((>= left-margin 0) left-guess)
|
|
|
|
|
((>= right-margin 0) right-guess)
|
|
|
|
|
;; otherwise choose side we overlap less
|
|
|
|
|
((> left-margin right-margin) 0)
|
|
|
|
|
(t (- (x-display-pixel-width) sfw 5)))))))
|
|
|
|
|
(cons 'top cfy)))
|
|
|
|
|
frame)))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; reset the selection variable
|
|
|
|
|
(setq speedbar-last-selected-file nil)
|
|
|
|
|
;; Put the buffer into the frame
|
|
|
|
|
(save-window-excursion
|
|
|
|
|
;; Get the buffer to play with
|
|
|
|
|
(speedbar-mode)
|
|
|
|
|
(select-frame speedbar-frame)
|
|
|
|
|
(switch-to-buffer speedbar-buffer)
|
|
|
|
|
(set-window-dedicated-p (selected-window) t))
|
1998-10-04 13:00:45 +00:00
|
|
|
|
(if (and (or (null window-system) (eq window-system 'pc))
|
|
|
|
|
(fboundp 'set-frame-name))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(progn
|
|
|
|
|
(select-frame speedbar-frame)
|
|
|
|
|
(set-frame-name "Speedbar")))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-set-timer speedbar-update-speed)))))
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun speedbar-get-focus ()
|
|
|
|
|
"Change frame focus to or from the speedbar frame.
|
|
|
|
|
If the selected frame is not speedbar, then speedbar frame is
|
|
|
|
|
selected. If the speedbar frame is active, then select the attached frame."
|
|
|
|
|
(interactive)
|
|
|
|
|
(if (eq (selected-frame) speedbar-frame)
|
|
|
|
|
(if (frame-live-p speedbar-attached-frame)
|
|
|
|
|
(select-frame speedbar-attached-frame))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; If updates are off, then refresh the frame (they want it now...)
|
|
|
|
|
(if (not speedbar-update-flag)
|
|
|
|
|
(let ((speedbar-update-flag t))
|
|
|
|
|
(speedbar-timer-fn)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; make sure we have a frame
|
|
|
|
|
(if (not (frame-live-p speedbar-frame)) (speedbar-frame-mode 1))
|
|
|
|
|
;; go there
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(select-frame speedbar-frame)
|
|
|
|
|
)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(other-frame 0))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-close-frame ()
|
|
|
|
|
"Turn off a currently active speedbar."
|
|
|
|
|
(interactive)
|
|
|
|
|
(speedbar-frame-mode -1)
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(other-frame 0))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-switch-buffer-attached-frame (&optional buffer)
|
|
|
|
|
"Switch to BUFFER in speedbar's attached frame, and raise that frame.
|
|
|
|
|
This overrides the default behavior of `switch-to-buffer' which is
|
|
|
|
|
broken because of the dedicated speedbar frame."
|
|
|
|
|
(interactive)
|
|
|
|
|
;; Assume we are in the speedbar frame.
|
|
|
|
|
(speedbar-get-focus)
|
|
|
|
|
;; Now switch buffers
|
|
|
|
|
(if buffer
|
|
|
|
|
(switch-to-buffer buffer)
|
|
|
|
|
(call-interactively 'switch-to-buffer nil nil)))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defmacro speedbar-frame-width ()
|
|
|
|
|
"Return the width of the speedbar frame in characters.
|
|
|
|
|
nil if it doesn't exist."
|
|
|
|
|
'(frame-width speedbar-frame))
|
|
|
|
|
|
|
|
|
|
;; XEmacs function only.
|
|
|
|
|
(defun speedbar-needed-height (&optional frame)
|
|
|
|
|
"The needed height for the tool bar FRAME (in characters)."
|
|
|
|
|
(or frame (setq frame (selected-frame)))
|
|
|
|
|
;; The 1 is the missing modeline/minibuffer
|
|
|
|
|
(+ 1 (/ (frame-pixel-height frame)
|
|
|
|
|
(face-height 'default frame))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-mode ()
|
|
|
|
|
"Major mode for managing a display of directories and tags.
|
|
|
|
|
\\<speedbar-key-map>
|
|
|
|
|
The first line represents the default path of the speedbar frame.
|
|
|
|
|
Each directory segment is a button which jumps speedbar's default
|
|
|
|
|
directory to that path. Buttons are activated by clicking `\\[speedbar-click]'.
|
|
|
|
|
In some situations using `\\[speedbar-power-click]' is a `power click' which will
|
|
|
|
|
rescan cached items, or pop up new frames.
|
|
|
|
|
|
|
|
|
|
Each line starting with <+> represents a directory. Click on the <+>
|
|
|
|
|
to insert the directory listing into the current tree. Click on the
|
|
|
|
|
<-> to retract that list. Click on the directory name to go to that
|
|
|
|
|
directory as the default.
|
|
|
|
|
|
|
|
|
|
Each line starting with [+] is a file. If the variable
|
|
|
|
|
`speedbar-show-unknown-files' is t, the lines starting with [?] are
|
|
|
|
|
files which don't have imenu support, but are not expressly ignored.
|
|
|
|
|
Files are completely ignored if they match `speedbar-file-unshown-regexp'
|
|
|
|
|
which is generated from `completion-ignored-extensions'.
|
|
|
|
|
|
|
|
|
|
Files with a `*' character after their name are files checked out of a
|
2002-09-06 10:11:30 +00:00
|
|
|
|
version control system. (Currently only RCS is supported.) New
|
1998-04-18 19:28:13 +00:00
|
|
|
|
version control systems can be added by examining the documentation
|
2002-09-06 10:11:30 +00:00
|
|
|
|
for `speedbar-this-file-in-vc' and `speedbar-vc-check-dir-p'.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
Files with a `#' or `!' character after them are source files that
|
|
|
|
|
have an object file associated with them. The `!' indicates that the
|
2002-09-06 07:18:04 +00:00
|
|
|
|
files is out of date. You can control what source/object associations
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
exist through the variable `speedbar-obj-alist'.
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
Click on the [+] to display a list of tags from that file. Click on
|
|
|
|
|
the [-] to retract the list. Click on the file name to edit the file
|
|
|
|
|
in the attached frame.
|
|
|
|
|
|
|
|
|
|
If you open tags, you might find a node starting with {+}, which is a
|
|
|
|
|
category of tags. Click the {+} to expand the category. Jump-able
|
|
|
|
|
tags start with >. Click the name of the tag to go to that position
|
|
|
|
|
in the selected file.
|
|
|
|
|
|
|
|
|
|
\\{speedbar-key-map}"
|
|
|
|
|
;; NOT interactive
|
|
|
|
|
(save-excursion
|
|
|
|
|
(setq speedbar-buffer (set-buffer (get-buffer-create " SPEEDBAR")))
|
|
|
|
|
(kill-all-local-variables)
|
|
|
|
|
(setq major-mode 'speedbar-mode)
|
|
|
|
|
(setq mode-name "Speedbar")
|
|
|
|
|
(set-syntax-table speedbar-syntax-table)
|
|
|
|
|
(setq font-lock-keywords nil) ;; no font-locking please
|
|
|
|
|
(setq truncate-lines t)
|
|
|
|
|
(make-local-variable 'frame-title-format)
|
|
|
|
|
(setq frame-title-format "Speedbar")
|
|
|
|
|
;; Set this up special just for the speedbar buffer
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Terminal minibuffer stuff does not require this.
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(if (and window-system (not (eq window-system 'pc))
|
|
|
|
|
(null default-minibuffer-frame))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(progn
|
|
|
|
|
(make-local-variable 'default-minibuffer-frame)
|
|
|
|
|
(setq default-minibuffer-frame speedbar-attached-frame)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Correct use of `temp-buffer-show-function': Bob Weiner
|
|
|
|
|
(if (and (boundp 'temp-buffer-show-hook)
|
|
|
|
|
(boundp 'temp-buffer-show-function))
|
|
|
|
|
(progn (make-local-variable 'temp-buffer-show-hook)
|
|
|
|
|
(setq temp-buffer-show-hook temp-buffer-show-function)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(make-local-variable 'temp-buffer-show-function)
|
|
|
|
|
(setq temp-buffer-show-function 'speedbar-temp-buffer-show-function)
|
|
|
|
|
(if speedbar-xemacsp
|
|
|
|
|
(progn
|
|
|
|
|
;; Argh! mouse-track-click-hook doesn't understand the
|
|
|
|
|
;; make-local-hook conventions.
|
|
|
|
|
(make-local-variable 'mouse-track-click-hook)
|
|
|
|
|
(add-hook 'mouse-track-click-hook
|
|
|
|
|
(lambda (event count)
|
|
|
|
|
(if (/= (event-button event) 1)
|
|
|
|
|
nil ; Do normal operations.
|
|
|
|
|
(cond ((eq count 1)
|
|
|
|
|
(speedbar-quick-mouse event))
|
|
|
|
|
((or (eq count 2)
|
|
|
|
|
(eq count 3))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-mouse-set-point event)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-do-function-pointer)
|
|
|
|
|
(speedbar-quick-mouse event)))
|
|
|
|
|
;; Don't do normal operations.
|
|
|
|
|
t)))))
|
|
|
|
|
(add-hook 'kill-buffer-hook (lambda () (let ((skilling (boundp 'skilling)))
|
|
|
|
|
(if skilling
|
|
|
|
|
nil
|
|
|
|
|
(if (eq (current-buffer)
|
|
|
|
|
speedbar-buffer)
|
|
|
|
|
(speedbar-frame-mode -1)))))
|
|
|
|
|
t t)
|
1998-08-24 00:37:22 +00:00
|
|
|
|
(toggle-read-only 1)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-set-mode-line-format)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if speedbar-xemacsp
|
2000-05-15 22:17:24 +00:00
|
|
|
|
(set (make-local-variable 'mouse-motion-handler)
|
|
|
|
|
'speedbar-track-mouse-xemacs)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if speedbar-track-mouse-flag
|
2000-05-15 22:17:24 +00:00
|
|
|
|
(set (make-local-variable 'track-mouse) t)) ;this could be messy.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(setq auto-show-mode nil)) ;no auto-show for Emacs
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(run-hooks 'speedbar-mode-hook))
|
|
|
|
|
(speedbar-update-contents)
|
|
|
|
|
speedbar-buffer)
|
|
|
|
|
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(defmacro speedbar-with-attached-buffer (&rest forms)
|
|
|
|
|
"Execute FORMS in the attached frame's special buffer.
|
|
|
|
|
Optionally select that frame if necessary."
|
|
|
|
|
`(save-selected-window
|
|
|
|
|
(speedbar-set-timer speedbar-update-speed)
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
,@forms
|
|
|
|
|
(speedbar-maybee-jump-to-attached-frame)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-message (fmt &rest args)
|
|
|
|
|
"Like message, but for use in the speedbar frame.
|
|
|
|
|
Argument FMT is the format string, and ARGS are the arguments for message."
|
|
|
|
|
(save-selected-window
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(apply 'message fmt args)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-y-or-n-p (prompt)
|
|
|
|
|
"Like `y-or-n-p', but for use in the speedbar frame.
|
|
|
|
|
Argument PROMPT is the prompt to use."
|
|
|
|
|
(save-selected-window
|
|
|
|
|
(if (and default-minibuffer-frame (not (eq default-minibuffer-frame
|
|
|
|
|
speedbar-attached-frame)))
|
|
|
|
|
(select-frame speedbar-attached-frame))
|
|
|
|
|
(y-or-n-p prompt)))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-show-info-under-mouse (&optional event)
|
|
|
|
|
"Call the info function for the line under the mouse.
|
|
|
|
|
Optional EVENT is currently not used."
|
|
|
|
|
(let ((pos (mouse-position))) ; we ignore event until I use it later.
|
|
|
|
|
(if (equal (car pos) speedbar-frame)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(save-window-excursion
|
|
|
|
|
(apply 'set-mouse-position pos)
|
|
|
|
|
(speedbar-item-info))))))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-set-mode-line-format ()
|
|
|
|
|
"Set the format of the mode line based on the current speedbar environment.
|
|
|
|
|
This gives visual indications of what is up. It EXPECTS the speedbar
|
|
|
|
|
frame and window to be the currently active frame and window."
|
|
|
|
|
(if (and (frame-live-p speedbar-frame)
|
|
|
|
|
(or (not speedbar-xemacsp)
|
|
|
|
|
(specifier-instance has-modeline-p)))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
(let* ((w (or (speedbar-frame-width) 20))
|
|
|
|
|
(p1 "<<")
|
|
|
|
|
(p5 ">>")
|
|
|
|
|
(p3 (if speedbar-update-flag "SPEEDBAR" "SLOWBAR"))
|
|
|
|
|
(blank (- w (length p1) (length p3) (length p5)
|
|
|
|
|
(if line-number-mode 4 0)))
|
|
|
|
|
(p2 (if (> blank 0)
|
|
|
|
|
(make-string (/ blank 2) ? )
|
|
|
|
|
""))
|
|
|
|
|
(p4 (if (> blank 0)
|
|
|
|
|
(make-string (+ (/ blank 2) (% blank 2)) ? )
|
|
|
|
|
""))
|
|
|
|
|
(tf
|
|
|
|
|
(if line-number-mode
|
|
|
|
|
(list (concat p1 p2 p3) '(line-number-mode " %3l")
|
|
|
|
|
(concat p4 p5))
|
|
|
|
|
(list (concat p1 p2 p3 p4 p5)))))
|
|
|
|
|
(if (not (equal mode-line-format tf))
|
|
|
|
|
(progn
|
|
|
|
|
(setq mode-line-format tf)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-mode-line-update)))))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-temp-buffer-show-function (buffer)
|
|
|
|
|
"Placed in the variable `temp-buffer-show-function' in `speedbar-mode'.
|
|
|
|
|
If a user requests help using \\[help-command] <Key> the temp BUFFER will be
|
|
|
|
|
redirected into a window on the attached frame."
|
|
|
|
|
(if speedbar-attached-frame (select-frame speedbar-attached-frame))
|
|
|
|
|
(pop-to-buffer buffer nil)
|
|
|
|
|
(other-window -1)
|
1998-08-24 00:55:45 +00:00
|
|
|
|
;; Fix for using this hook on some platforms: Bob Weiner
|
|
|
|
|
(cond ((not speedbar-xemacsp)
|
|
|
|
|
(run-hooks 'temp-buffer-show-hook))
|
|
|
|
|
((fboundp 'run-hook-with-args)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(run-hook-with-args 'temp-buffer-show-hook buffer))
|
|
|
|
|
((and (boundp 'temp-buffer-show-hook)
|
|
|
|
|
(listp temp-buffer-show-hook))
|
|
|
|
|
(mapcar (function (lambda (hook) (funcall hook buffer)))
|
|
|
|
|
temp-buffer-show-hook))))
|
|
|
|
|
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(defvar speedbar-previous-menu nil
|
|
|
|
|
"The menu before the last `speedbar-reconfigure-keymaps' was called.")
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-reconfigure-keymaps ()
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Reconfigure the menu-bar in a speedbar frame.
|
|
|
|
|
Different menu items are displayed depending on the current display mode
|
|
|
|
|
and the existence of packages."
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(let ((md (append
|
|
|
|
|
speedbar-easymenu-definition-base
|
|
|
|
|
(if speedbar-shown-directories
|
|
|
|
|
;; file display mode version
|
|
|
|
|
(speedbar-initial-menu)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(if (local-variable-p
|
|
|
|
|
'speedbar-easymenu-definition-special
|
|
|
|
|
(current-buffer))
|
|
|
|
|
;; If bound locally, we can use it
|
|
|
|
|
speedbar-easymenu-definition-special)))
|
|
|
|
|
;; Dynamic menu stuff
|
|
|
|
|
'("-")
|
|
|
|
|
(list (cons "Displays"
|
|
|
|
|
(let ((displays nil)
|
|
|
|
|
(alist speedbar-initial-expansion-mode-alist))
|
|
|
|
|
(while alist
|
|
|
|
|
(setq displays
|
|
|
|
|
(cons
|
|
|
|
|
(vector
|
|
|
|
|
(capitalize (car (car alist)))
|
|
|
|
|
(list
|
|
|
|
|
'speedbar-change-initial-expansion-list
|
|
|
|
|
(car (car alist)))
|
|
|
|
|
t)
|
|
|
|
|
displays))
|
|
|
|
|
(setq alist (cdr alist)))
|
|
|
|
|
displays)))
|
|
|
|
|
;; The trailer
|
|
|
|
|
speedbar-easymenu-definition-trailer))
|
|
|
|
|
(localmap (save-excursion
|
|
|
|
|
(let ((cf (selected-frame)))
|
|
|
|
|
(prog2
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(if (local-variable-p
|
|
|
|
|
'speedbar-special-mode-key-map
|
|
|
|
|
(current-buffer))
|
|
|
|
|
speedbar-special-mode-key-map)
|
|
|
|
|
(select-frame cf))))))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
(use-local-map (or localmap
|
|
|
|
|
(speedbar-initial-keymap)
|
|
|
|
|
;; This creates a small keymap we can glom the
|
|
|
|
|
;; menu adjustments into.
|
|
|
|
|
(speedbar-make-specialized-keymap)))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
;; Delete the old menu if applicable.
|
|
|
|
|
(if speedbar-previous-menu (easy-menu-remove speedbar-previous-menu))
|
|
|
|
|
(setq speedbar-previous-menu md)
|
|
|
|
|
;; Now add the new menu
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if (not speedbar-xemacsp)
|
|
|
|
|
(easy-menu-define speedbar-menu-map (current-local-map)
|
|
|
|
|
"Speedbar menu" md)
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(easy-menu-add md (current-local-map))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(set-buffer-menubar (list md))))
|
|
|
|
|
(run-hooks 'speedbar-reconfigure-keymaps-hook)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; User Input stuff
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;; XEmacs: this can be implemented using modeline keymaps, but there
|
|
|
|
|
;; is no use, as we have horizontal scrollbar (as the docstring
|
|
|
|
|
;; hints.)
|
|
|
|
|
(defun speedbar-mouse-hscroll (e)
|
|
|
|
|
"Read a mouse event E from the mode line, and horizontally scroll.
|
|
|
|
|
If the mouse is being clicked on the far left, or far right of the
|
2002-07-10 09:26:03 +00:00
|
|
|
|
mode-line. This is only useful for non-XEmacs."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive "e")
|
|
|
|
|
(let* ((xp (car (nth 2 (car (cdr e)))))
|
|
|
|
|
(cpw (/ (frame-pixel-width)
|
|
|
|
|
(frame-width)))
|
|
|
|
|
(oc (1+ (/ xp cpw)))
|
|
|
|
|
)
|
|
|
|
|
(cond ((< oc 3)
|
|
|
|
|
(scroll-left 2))
|
|
|
|
|
((> oc (- (window-width) 3))
|
|
|
|
|
(scroll-right 2))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(t (speedbar-message
|
|
|
|
|
"Click on the edge of the modeline to scroll left/right")))
|
|
|
|
|
;;(speedbar-message "X: Pixel %d Char Pixels %d On char %d" xp cpw oc)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-customize ()
|
|
|
|
|
"Customize speedbar using the Custom package."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((sf (selected-frame)))
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(customize-group 'speedbar)
|
|
|
|
|
(select-frame sf))
|
|
|
|
|
(speedbar-maybee-jump-to-attached-frame))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-track-mouse (event)
|
|
|
|
|
"For motion EVENT, display info about the current line."
|
|
|
|
|
(interactive "e")
|
|
|
|
|
(if (not speedbar-track-mouse-flag)
|
|
|
|
|
nil
|
|
|
|
|
(save-excursion
|
|
|
|
|
(let ((char (nth 1 (car (cdr event)))))
|
|
|
|
|
(if (not (numberp char))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message nil)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(goto-char char)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
;; (speedbar-message "%S" event)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-item-info)
|
|
|
|
|
)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-track-mouse-xemacs (event)
|
|
|
|
|
"For motion EVENT, display info about the current line."
|
|
|
|
|
(if (functionp (default-value 'mouse-motion-handler))
|
|
|
|
|
(funcall (default-value 'mouse-motion-handler) event))
|
|
|
|
|
(if speedbar-track-mouse-flag
|
|
|
|
|
(save-excursion
|
|
|
|
|
(save-window-excursion
|
|
|
|
|
(condition-case ()
|
|
|
|
|
(progn (mouse-set-point event)
|
|
|
|
|
;; Prevent focus-related bugs.
|
|
|
|
|
(if (eq major-mode 'speedbar-mode)
|
|
|
|
|
(speedbar-item-info)))
|
|
|
|
|
(error nil))))))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; In XEmacs, we make popup menus work on the item over mouse (as
|
|
|
|
|
;; opposed to where the point happens to be.) We attain this by
|
|
|
|
|
;; temporarily moving the point to that place.
|
|
|
|
|
;; Hrvoje Niksic <hniksic@srce.hr>
|
|
|
|
|
(defun speedbar-xemacs-popup-kludge (event)
|
|
|
|
|
"Pop up a menu related to the clicked on item.
|
|
|
|
|
Must be bound to EVENT."
|
|
|
|
|
(interactive "e")
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(select-frame speedbar-frame)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (event-closest-point event))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(forward-char (min 5 (- (save-excursion (end-of-line) (point))
|
|
|
|
|
(save-excursion (beginning-of-line) (point)))))
|
|
|
|
|
(popup-mode-menu)
|
|
|
|
|
;; Wait for menu to bail out. `popup-mode-menu' (and other popup
|
|
|
|
|
;; menu functions) return immediately.
|
|
|
|
|
(let (new)
|
|
|
|
|
(while (not (misc-user-event-p (setq new (next-event))))
|
|
|
|
|
(dispatch-event new))
|
|
|
|
|
(dispatch-event new))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-emacs-popup-kludge (e)
|
|
|
|
|
"Pop up a menu related to the clicked on item.
|
|
|
|
|
Must be bound to event E."
|
|
|
|
|
(interactive "e")
|
|
|
|
|
(save-excursion
|
|
|
|
|
(mouse-set-point e)
|
|
|
|
|
;; This gets the cursor where the user can see it.
|
|
|
|
|
(if (not (bolp)) (forward-char -1))
|
|
|
|
|
(sit-for 0)
|
|
|
|
|
(if (< emacs-major-version 20)
|
|
|
|
|
(mouse-major-mode-menu e)
|
|
|
|
|
(mouse-major-mode-menu e nil))))
|
|
|
|
|
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(defun speedbar-hack-buffer-menu (e)
|
|
|
|
|
"Control mouse 1 is buffer menu.
|
|
|
|
|
This hack overrides it so that the right thing happens in the main
|
|
|
|
|
Emacs frame, not in the speedbar frame.
|
|
|
|
|
Argument E is the event causing this activity."
|
|
|
|
|
(interactive "e")
|
|
|
|
|
(let ((fn (lookup-key global-map (if speedbar-xemacsp
|
|
|
|
|
'(control button1)
|
|
|
|
|
[C-down-mouse-1])))
|
|
|
|
|
(newbuff nil))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-window-dedicated-p (selected-window) nil)
|
|
|
|
|
(call-interactively fn)
|
|
|
|
|
(setq newbuff (current-buffer)))
|
1999-06-04 18:22:55 +00:00
|
|
|
|
(switch-to-buffer speedbar-buffer)
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(set-window-dedicated-p (selected-window) t))
|
1999-06-04 18:22:55 +00:00
|
|
|
|
(if (not (eq newbuff speedbar-buffer))
|
|
|
|
|
(speedbar-with-attached-buffer
|
|
|
|
|
(switch-to-buffer newbuff)))))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-next (arg)
|
|
|
|
|
"Move to the next ARGth line in a speedbar buffer."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(forward-line (or arg 1))
|
|
|
|
|
(speedbar-item-info)
|
|
|
|
|
(speedbar-position-cursor-on-line))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-prev (arg)
|
|
|
|
|
"Move to the previous ARGth line in a speedbar buffer."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(speedbar-next (if arg (- arg) -1)))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-restricted-move (arg)
|
|
|
|
|
"Move to the next ARGth line in a speedbar buffer at the same depth.
|
|
|
|
|
This means that movement is restricted to a subnode, and that siblings
|
|
|
|
|
of intermediate nodes are skipped."
|
|
|
|
|
(if (not (numberp arg)) (signal 'wrong-type-argument (list arg 'numberp)))
|
|
|
|
|
;; First find the extent for which we are allowed to move.
|
|
|
|
|
(let ((depth (save-excursion (beginning-of-line)
|
|
|
|
|
(if (looking-at "[0-9]+:")
|
|
|
|
|
(string-to-int (match-string 0))
|
|
|
|
|
0)))
|
|
|
|
|
(crement (if (< arg 0) 1 -1)) ; decrement or increment
|
|
|
|
|
(lastmatch (point)))
|
|
|
|
|
(while (/= arg 0)
|
|
|
|
|
(forward-line (- crement))
|
|
|
|
|
(let ((subdepth (save-excursion (beginning-of-line)
|
|
|
|
|
(if (looking-at "[0-9]+:")
|
|
|
|
|
(string-to-int (match-string 0))
|
|
|
|
|
0))))
|
|
|
|
|
(cond ((or (< subdepth depth)
|
|
|
|
|
(progn (end-of-line) (eobp))
|
|
|
|
|
(progn (beginning-of-line) (bobp)))
|
|
|
|
|
;; We have reached the end of this block.
|
|
|
|
|
(goto-char lastmatch)
|
|
|
|
|
(setq arg 0)
|
|
|
|
|
(error "End of sub-list"))
|
|
|
|
|
((= subdepth depth)
|
|
|
|
|
(setq lastmatch (point)
|
|
|
|
|
arg (+ arg crement))))))
|
|
|
|
|
(speedbar-position-cursor-on-line)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-restricted-next (arg)
|
|
|
|
|
"Move to the next ARGth line in a speedbar buffer at the same depth.
|
|
|
|
|
This means that movement is restricted to a subnode, and that siblings
|
|
|
|
|
of intermediate nodes are skipped."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(speedbar-restricted-move (or arg 1))
|
|
|
|
|
(speedbar-item-info))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defun speedbar-restricted-prev (arg)
|
|
|
|
|
"Move to the previous ARGth line in a speedbar buffer at the same depth.
|
|
|
|
|
This means that movement is restricted to a subnode, and that siblings
|
|
|
|
|
of intermediate nodes are skipped."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(speedbar-restricted-move (if arg (- arg) -1))
|
|
|
|
|
(speedbar-item-info))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-navigate-list (arg)
|
|
|
|
|
"Move across ARG groups of similarly typed items in speedbar.
|
|
|
|
|
Stop on the first line of the next type of item, or on the last or first item
|
|
|
|
|
if we reach a buffer boundary."
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(if (looking-at "[0-9]+: *[[<{][-+?][]>}] ")
|
|
|
|
|
(let ((str (regexp-quote (match-string 0))))
|
|
|
|
|
(while (looking-at str)
|
|
|
|
|
(speedbar-restricted-move arg)
|
|
|
|
|
(beginning-of-line))))
|
|
|
|
|
(speedbar-position-cursor-on-line))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-forward-list ()
|
|
|
|
|
"Move forward over the current list.
|
|
|
|
|
A LIST in speedbar is a group of similarly typed items, such as directories,
|
|
|
|
|
files, or the directory button."
|
|
|
|
|
(interactive)
|
|
|
|
|
(speedbar-navigate-list 1)
|
|
|
|
|
(speedbar-item-info))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-backward-list ()
|
|
|
|
|
"Move backward over the current list.
|
|
|
|
|
A LIST in speedbar is a group of similarly typed items, such as directories,
|
|
|
|
|
files, or the directory button."
|
|
|
|
|
(interactive)
|
|
|
|
|
(speedbar-navigate-list -1)
|
|
|
|
|
(speedbar-item-info))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-scroll-up (&optional arg)
|
|
|
|
|
"Page down one screen-full of the speedbar, or ARG lines."
|
|
|
|
|
(interactive "P")
|
|
|
|
|
(scroll-up arg)
|
|
|
|
|
(speedbar-position-cursor-on-line))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-scroll-down (&optional arg)
|
|
|
|
|
"Page up one screen-full of the speedbar, or ARG lines."
|
|
|
|
|
(interactive "P")
|
|
|
|
|
(scroll-down arg)
|
|
|
|
|
(speedbar-position-cursor-on-line))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-up-directory ()
|
|
|
|
|
"Keyboard accelerator for moving the default directory up one.
|
2002-07-10 08:21:49 +00:00
|
|
|
|
Assumes that the current buffer is the speedbar buffer."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(setq default-directory (expand-file-name (concat default-directory "../")))
|
|
|
|
|
(speedbar-update-contents))
|
|
|
|
|
|
|
|
|
|
;;; Speedbar file activity (aka creeping featurism)
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-refresh ()
|
|
|
|
|
"Refresh the current speedbar display, disposing of any cached data."
|
|
|
|
|
(interactive)
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(let ((dl speedbar-shown-directories)
|
2002-09-26 21:57:00 +00:00
|
|
|
|
deactivate-mark)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(while dl
|
|
|
|
|
(adelete 'speedbar-directory-contents-alist (car dl))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(setq dl (cdr dl)))
|
1998-08-04 13:58:39 +00:00
|
|
|
|
(if (<= 1 speedbar-verbosity-level)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Refreshing speedbar..."))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(speedbar-update-contents)
|
|
|
|
|
(speedbar-stealthy-updates)
|
|
|
|
|
;; Reset the timer in case it got really hosed for some reason...
|
|
|
|
|
(speedbar-set-timer speedbar-update-speed)
|
|
|
|
|
(if (<= 1 speedbar-verbosity-level)
|
2002-09-26 21:57:00 +00:00
|
|
|
|
(speedbar-message "Refreshing speedbar...done"))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-item-load ()
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"Load the item under the cursor or mouse if it is a Lisp file."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(let ((f (speedbar-line-file)))
|
|
|
|
|
(if (and (file-exists-p f) (string-match "\\.el\\'" f))
|
|
|
|
|
(if (and (file-exists-p (concat f "c"))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-y-or-n-p (format "Load %sc? " f)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; If the compiled version exists, load that instead...
|
|
|
|
|
(load-file (concat f "c"))
|
|
|
|
|
(load-file f))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(error "Not a loadable file"))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-item-byte-compile ()
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"Byte compile the item under the cursor or mouse if it is a Lisp file."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(let ((f (speedbar-line-file))
|
|
|
|
|
(sf (selected-frame)))
|
|
|
|
|
(if (and (file-exists-p f) (string-match "\\.el\\'" f))
|
|
|
|
|
(progn
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(byte-compile-file f nil)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(select-frame sf)
|
|
|
|
|
(speedbar-reset-scanners)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-mouse-item-info (event)
|
|
|
|
|
"Provide information about what the user clicked on.
|
|
|
|
|
This should be bound to a mouse EVENT."
|
|
|
|
|
(interactive "e")
|
|
|
|
|
(mouse-set-point event)
|
|
|
|
|
(speedbar-item-info))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-generic-item-info ()
|
2002-04-14 08:11:22 +00:00
|
|
|
|
"Attempt to derive, and then display information about this line item.
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
File style information is displayed with `speedbar-item-info'."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; Skip invisible number info.
|
|
|
|
|
(if (looking-at "\\([0-9]+\\):") (goto-char (match-end 0)))
|
|
|
|
|
;; Skip items in "folder" type text characters.
|
|
|
|
|
(if (looking-at "\\s-*[[<({].[]>)}] ") (goto-char (match-end 0)))
|
|
|
|
|
;; Get the text
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Text: %s" (buffer-substring-no-properties
|
|
|
|
|
(point) (progn (end-of-line) (point))))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-item-info ()
|
1999-01-23 13:23:26 +00:00
|
|
|
|
"Display info in the mini-buffer about the button the mouse is over.
|
|
|
|
|
This function can be replaced in `speedbar-mode-functions-list' as
|
2002-07-10 08:21:49 +00:00
|
|
|
|
`speedbar-item-info'."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(let (message-log-max)
|
|
|
|
|
(funcall (or (speedbar-fetch-replacement-function 'speedbar-item-info)
|
|
|
|
|
'speedbar-generic-item-info))))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-item-info-file-helper (&optional filename)
|
|
|
|
|
"Display info about a file that is on the current line.
|
|
|
|
|
nil if not applicable. If FILENAME, then use that instead of reading
|
|
|
|
|
it from the speedbar buffer."
|
|
|
|
|
(let* ((item (or filename (speedbar-line-file)))
|
|
|
|
|
(attr (if item (file-attributes item) nil)))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(if (and item attr) (speedbar-message "%s %-6d %s" (nth 8 attr)
|
|
|
|
|
(nth 7 attr) item)
|
1999-01-23 13:23:26 +00:00
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-item-info-tag-helper ()
|
|
|
|
|
"Display info about a tag that is on the current line.
|
|
|
|
|
nil if not applicable."
|
|
|
|
|
(save-excursion
|
1999-02-16 00:33:44 +00:00
|
|
|
|
(beginning-of-line)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (re-search-forward " [-+=]?> \\([^\n]+\\)"
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(save-excursion(end-of-line)(point)) t)
|
|
|
|
|
(let ((tag (match-string 1))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(attr (speedbar-line-token))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(item nil))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (and (featurep 'semantic) (semantic-token-p attr))
|
|
|
|
|
(speedbar-message (semantic-summerize-nonterminal attr))
|
|
|
|
|
(looking-at "\\([0-9]+\\):")
|
|
|
|
|
(setq item (file-name-nondirectory (speedbar-line-path)))
|
|
|
|
|
(speedbar-message "Tag: %s in %s" tag item)))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(if (re-search-forward "{[+-]} \\([^\n]+\\)$"
|
|
|
|
|
(save-excursion(end-of-line)(point)) t)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Group of tags \"%s\"" (match-string 1))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (re-search-forward " [+-]?[()|@] \\([^\n]+\\)$" nil t)
|
|
|
|
|
(let* ((detailtext (match-string 1))
|
|
|
|
|
(detail (or (speedbar-line-token) detailtext))
|
|
|
|
|
(parent (save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(let ((dep (if (looking-at "[0-9]+:")
|
|
|
|
|
(1- (string-to-int (match-string 0)))
|
|
|
|
|
0)))
|
|
|
|
|
(re-search-backward (concat "^"
|
|
|
|
|
(int-to-string dep)
|
|
|
|
|
":")
|
|
|
|
|
nil t))
|
|
|
|
|
(if (looking-at "[0-9]+: +[-+=>]> \\([^\n]+\\)$")
|
|
|
|
|
(speedbar-line-token)
|
|
|
|
|
nil))))
|
|
|
|
|
(if (and (featurep 'semantic) (semantic-token-p detail))
|
|
|
|
|
(speedbar-message
|
|
|
|
|
(semantic-summerize-nonterminal detail parent))
|
|
|
|
|
(if parent
|
|
|
|
|
(speedbar-message "Detail: %s of tag %s" detail
|
|
|
|
|
(if (and (featurep 'semantic)
|
|
|
|
|
(semantic-token-p parent))
|
|
|
|
|
(semantic-token-name parent)
|
|
|
|
|
parent))
|
|
|
|
|
(speedbar-message "Detail: %s" detail))))
|
|
|
|
|
nil)))))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-files-item-info ()
|
|
|
|
|
"Display info in the mini-buffer about the button the mouse is over."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (not speedbar-shown-directories)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-generic-item-info)
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(or (speedbar-item-info-file-helper)
|
|
|
|
|
(speedbar-item-info-tag-helper)
|
|
|
|
|
(speedbar-generic-item-info))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-item-copy ()
|
|
|
|
|
"Copy the item under the cursor.
|
|
|
|
|
Files can be copied to new names or places."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((f (speedbar-line-file)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if (not f) (error "Not a file"))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (file-directory-p f)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(error "Cannot copy directory")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let* ((rt (read-file-name (format "Copy %s to: "
|
|
|
|
|
(file-name-nondirectory f))
|
|
|
|
|
(file-name-directory f)))
|
|
|
|
|
(refresh (member (expand-file-name (file-name-directory rt))
|
|
|
|
|
speedbar-shown-directories)))
|
|
|
|
|
;; Create the right file name part
|
|
|
|
|
(if (file-directory-p rt)
|
|
|
|
|
(setq rt
|
|
|
|
|
(concat (expand-file-name rt)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "[/\\]$" rt) "" "/")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(file-name-nondirectory f))))
|
|
|
|
|
(if (or (not (file-exists-p rt))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-y-or-n-p (format "Overwrite %s with %s? " rt f)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(progn
|
|
|
|
|
(copy-file f rt t t)
|
|
|
|
|
;; refresh display if the new place is currently displayed.
|
|
|
|
|
(if refresh
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-refresh)
|
|
|
|
|
(if (not (speedbar-goto-this-file rt))
|
|
|
|
|
(speedbar-goto-this-file f))))
|
|
|
|
|
))))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-item-rename ()
|
|
|
|
|
"Rename the item under the cursor or mouse.
|
|
|
|
|
Files can be renamed to new names or moved to new directories."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((f (speedbar-line-file)))
|
|
|
|
|
(if f
|
|
|
|
|
(let* ((rt (read-file-name (format "Rename %s to: "
|
|
|
|
|
(file-name-nondirectory f))
|
|
|
|
|
(file-name-directory f)))
|
|
|
|
|
(refresh (member (expand-file-name (file-name-directory rt))
|
|
|
|
|
speedbar-shown-directories)))
|
|
|
|
|
;; Create the right file name part
|
|
|
|
|
(if (file-directory-p rt)
|
|
|
|
|
(setq rt
|
|
|
|
|
(concat (expand-file-name rt)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "[/\\]\\'" rt) "" "/")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(file-name-nondirectory f))))
|
|
|
|
|
(if (or (not (file-exists-p rt))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-y-or-n-p (format "Overwrite %s with %s? " rt f)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(progn
|
|
|
|
|
(rename-file f rt t)
|
|
|
|
|
;; refresh display if the new place is currently displayed.
|
|
|
|
|
(if refresh
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-refresh)
|
|
|
|
|
(speedbar-goto-this-file rt)
|
|
|
|
|
)))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(error "Not a file"))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-item-delete ()
|
|
|
|
|
"Delete the item under the cursor. Files are removed from disk."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((f (speedbar-line-file)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if (not f) (error "Not a file"))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(if (speedbar-y-or-n-p (format "Delete %s? " f))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(progn
|
|
|
|
|
(if (file-directory-p f)
|
|
|
|
|
(delete-directory f)
|
|
|
|
|
(delete-file f))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Okie dokie..")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((p (point)))
|
|
|
|
|
(speedbar-refresh)
|
|
|
|
|
(goto-char p))
|
|
|
|
|
))
|
|
|
|
|
))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-item-object-delete ()
|
|
|
|
|
"Delete the object associated from the item under the cursor.
|
|
|
|
|
The file is removed from disk. The object is determined from the
|
|
|
|
|
variable `speedbar-obj-alist'."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let* ((f (speedbar-line-file))
|
|
|
|
|
(obj nil)
|
|
|
|
|
(oa speedbar-obj-alist))
|
|
|
|
|
(if (not f) (error "Not a file"))
|
|
|
|
|
(while (and oa (not (string-match (car (car oa)) f)))
|
|
|
|
|
(setq oa (cdr oa)))
|
|
|
|
|
(setq obj (concat (file-name-sans-extension f) (cdr (car oa))))
|
|
|
|
|
(if (and oa (file-exists-p obj)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-y-or-n-p (format "Delete %s? " obj)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(progn
|
|
|
|
|
(delete-file obj)
|
|
|
|
|
(speedbar-reset-scanners)))))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-enable-update ()
|
|
|
|
|
"Enable automatic updating in speedbar via timers."
|
|
|
|
|
(interactive)
|
|
|
|
|
(setq speedbar-update-flag t)
|
|
|
|
|
(speedbar-set-mode-line-format)
|
|
|
|
|
(speedbar-set-timer speedbar-update-speed))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-disable-update ()
|
|
|
|
|
"Disable automatic updating and stop consuming resources."
|
|
|
|
|
(interactive)
|
|
|
|
|
(setq speedbar-update-flag nil)
|
|
|
|
|
(speedbar-set-mode-line-format)
|
|
|
|
|
(speedbar-set-timer nil))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-toggle-updates ()
|
|
|
|
|
"Toggle automatic update for the speedbar frame."
|
|
|
|
|
(interactive)
|
|
|
|
|
(if speedbar-update-flag
|
|
|
|
|
(speedbar-disable-update)
|
|
|
|
|
(speedbar-enable-update)))
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defun speedbar-toggle-images ()
|
2002-04-14 16:22:57 +00:00
|
|
|
|
"Toggle images for the speedbar frame."
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(setq speedbar-use-images (not speedbar-use-images))
|
|
|
|
|
(speedbar-refresh))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-toggle-sorting ()
|
2002-04-14 16:22:57 +00:00
|
|
|
|
"Toggle sorting for the speedbar frame."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(setq speedbar-sort-tags (not speedbar-sort-tags)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-toggle-show-all-files ()
|
|
|
|
|
"Toggle display of files speedbar can not tag."
|
|
|
|
|
(interactive)
|
|
|
|
|
(setq speedbar-show-unknown-files (not speedbar-show-unknown-files))
|
|
|
|
|
(speedbar-refresh))
|
|
|
|
|
|
|
|
|
|
;;; Utility functions
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-set-timer (timeout)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Apply a timer with TIMEOUT, or remove a timer if TIMEOUT is nil.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
TIMEOUT is the number of seconds until the speedbar timer is called
|
|
|
|
|
again. When TIMEOUT is nil, turn off all timeouts.
|
|
|
|
|
This function will also enable or disable the `vc-checkin-hook' used
|
|
|
|
|
to track file check ins, and will change the mode line to match
|
|
|
|
|
`speedbar-update-flag'."
|
|
|
|
|
(cond
|
|
|
|
|
;; XEmacs
|
|
|
|
|
(speedbar-xemacsp
|
|
|
|
|
(if speedbar-timer
|
|
|
|
|
(progn (delete-itimer speedbar-timer)
|
|
|
|
|
(setq speedbar-timer nil)))
|
|
|
|
|
(if timeout
|
|
|
|
|
(if (and speedbar-xemacsp
|
|
|
|
|
(or (>= emacs-major-version 20)
|
|
|
|
|
(>= emacs-minor-version 15)))
|
|
|
|
|
(setq speedbar-timer (start-itimer "speedbar"
|
|
|
|
|
'speedbar-timer-fn
|
|
|
|
|
timeout
|
|
|
|
|
timeout
|
|
|
|
|
t))
|
|
|
|
|
(setq speedbar-timer (start-itimer "speedbar"
|
|
|
|
|
'speedbar-timer-fn
|
|
|
|
|
timeout
|
|
|
|
|
nil)))))
|
|
|
|
|
;; Post 19.31 Emacs
|
|
|
|
|
((fboundp 'run-with-idle-timer)
|
|
|
|
|
(if speedbar-timer
|
|
|
|
|
(progn (cancel-timer speedbar-timer)
|
|
|
|
|
(setq speedbar-timer nil)))
|
|
|
|
|
(if timeout
|
|
|
|
|
(setq speedbar-timer
|
|
|
|
|
(run-with-idle-timer timeout t 'speedbar-timer-fn))))
|
|
|
|
|
;; Emacs 19.30 (Thanks twice: ptype@dra.hmg.gb)
|
|
|
|
|
((fboundp 'post-command-idle-hook)
|
|
|
|
|
(if timeout
|
|
|
|
|
(add-hook 'post-command-idle-hook 'speedbar-timer-fn)
|
|
|
|
|
(remove-hook 'post-command-idle-hook 'speedbar-timer-fn)))
|
|
|
|
|
;; Older or other Emacsen with no timers. Set up so that its
|
|
|
|
|
;; obvious this emacs can't handle the updates
|
|
|
|
|
(t
|
|
|
|
|
(setq speedbar-update-flag nil)))
|
|
|
|
|
;; Apply a revert hook that will reset the scanners. We attach to revert
|
|
|
|
|
;; because most reverts occur during VC state change, and this lets our
|
|
|
|
|
;; VC scanner fix itself.
|
|
|
|
|
(if timeout
|
|
|
|
|
(add-hook 'after-revert-hook 'speedbar-reset-scanners)
|
|
|
|
|
(remove-hook 'after-revert-hook 'speedbar-reset-scanners)
|
|
|
|
|
)
|
|
|
|
|
;; change this if it changed for some reason
|
|
|
|
|
(speedbar-set-mode-line-format))
|
|
|
|
|
|
|
|
|
|
(defmacro speedbar-with-writable (&rest forms)
|
|
|
|
|
"Allow the buffer to be writable and evaluate FORMS."
|
|
|
|
|
(list 'let '((inhibit-read-only t))
|
|
|
|
|
(cons 'progn forms)))
|
|
|
|
|
(put 'speedbar-with-writable 'lisp-indent-function 0)
|
|
|
|
|
|
|
|
|
|
(defun speedbar-select-window (buffer)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"Select a window in which BUFFER is shown.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
If it is not shown, force it to appear in the default window."
|
|
|
|
|
(let ((win (get-buffer-window buffer speedbar-attached-frame)))
|
|
|
|
|
(if win
|
|
|
|
|
(select-window win)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(set-window-buffer (selected-window) buffer))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-insert-button (text face mouse function
|
|
|
|
|
&optional token prevline)
|
|
|
|
|
"Insert TEXT as the next logical speedbar button.
|
|
|
|
|
FACE is the face to put on the button, MOUSE is the highlight face to use.
|
|
|
|
|
When the user clicks on TEXT, FUNCTION is called with the TOKEN parameter.
|
|
|
|
|
This function assumes that the current buffer is the speedbar buffer.
|
|
|
|
|
If PREVLINE, then put this button on the previous line.
|
|
|
|
|
|
2002-07-10 08:21:49 +00:00
|
|
|
|
This is a convenience function for special modes that create their own
|
1998-04-18 19:28:13 +00:00
|
|
|
|
specialized speedbar displays."
|
|
|
|
|
(goto-char (point-max))
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(let ((start (point)))
|
|
|
|
|
(if (/= (current-column) 0) (insert "\n"))
|
|
|
|
|
(put-text-property start (point) 'invisible nil))
|
|
|
|
|
(if prevline (progn (delete-char -1)
|
|
|
|
|
(insert " ") ;back up if desired...
|
|
|
|
|
(put-text-property (1- (point)) (point) 'invisible nil)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((start (point)))
|
|
|
|
|
(insert text)
|
|
|
|
|
(speedbar-make-button start (point) face mouse function token))
|
|
|
|
|
(let ((start (point)))
|
|
|
|
|
(insert "\n")
|
|
|
|
|
(put-text-property start (point) 'face nil)
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(put-text-property start (point) 'invisible nil)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(put-text-property start (point) 'mouse-face nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-make-button (start end face mouse function &optional token)
|
|
|
|
|
"Create a button from START to END, with FACE as the display face.
|
|
|
|
|
MOUSE is the mouse face. When this button is clicked on FUNCTION
|
2002-07-10 08:21:49 +00:00
|
|
|
|
will be run with the TOKEN parameter (any Lisp object)."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(put-text-property start end 'face face)
|
|
|
|
|
(put-text-property start end 'mouse-face mouse)
|
|
|
|
|
(put-text-property start end 'invisible nil)
|
|
|
|
|
(if function (put-text-property start end 'speedbar-function function))
|
|
|
|
|
(if token (put-text-property start end 'speedbar-token token))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
;; So far the only text we have is less that 3 chars.
|
|
|
|
|
(if (<= (- end start) 3)
|
|
|
|
|
(speedbar-insert-image-button-maybe start (- end start)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;;; Initial Expansion list management
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-initial-expansion-list ()
|
|
|
|
|
"Return the current default expansion list.
|
|
|
|
|
This is based on `speedbar-initial-expansion-list-name' referencing
|
|
|
|
|
`speedbar-initial-expansion-mode-alist'."
|
|
|
|
|
;; cdr1 - name, cdr2 - menu
|
|
|
|
|
(cdr (cdr (cdr (assoc speedbar-initial-expansion-list-name
|
|
|
|
|
speedbar-initial-expansion-mode-alist)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-initial-menu ()
|
|
|
|
|
"Return the current default menu data.
|
|
|
|
|
This is based on `speedbar-initial-expansion-list-name' referencing
|
|
|
|
|
`speedbar-initial-expansion-mode-alist'."
|
|
|
|
|
(symbol-value
|
|
|
|
|
(car (cdr (assoc speedbar-initial-expansion-list-name
|
|
|
|
|
speedbar-initial-expansion-mode-alist)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-initial-keymap ()
|
|
|
|
|
"Return the current default menu data.
|
|
|
|
|
This is based on `speedbar-initial-expansion-list-name' referencing
|
|
|
|
|
`speedbar-initial-expansion-mode-alist'."
|
|
|
|
|
(symbol-value
|
|
|
|
|
(car (cdr (cdr (assoc speedbar-initial-expansion-list-name
|
|
|
|
|
speedbar-initial-expansion-mode-alist))))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-initial-stealthy-functions ()
|
|
|
|
|
"Return a list of functions to call stealthily.
|
|
|
|
|
This is based on `speedbar-initial-expansion-list-name' referencing
|
|
|
|
|
`speedbar-stealthy-function-list'."
|
|
|
|
|
(cdr (assoc speedbar-initial-expansion-list-name
|
|
|
|
|
speedbar-stealthy-function-list)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-add-expansion-list (new-list)
|
|
|
|
|
"Add NEW-LIST to the list of expansion lists."
|
|
|
|
|
(add-to-list 'speedbar-initial-expansion-mode-alist new-list))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-change-initial-expansion-list (new-default)
|
|
|
|
|
"Change speedbar's default expansion list to NEW-DEFAULT."
|
|
|
|
|
(interactive
|
|
|
|
|
(list
|
|
|
|
|
(completing-read (format "Speedbar Mode (default %s): "
|
|
|
|
|
speedbar-previously-used-expansion-list-name)
|
|
|
|
|
speedbar-initial-expansion-mode-alist
|
|
|
|
|
nil t "" nil
|
|
|
|
|
speedbar-previously-used-expansion-list-name)))
|
|
|
|
|
(setq speedbar-previously-used-expansion-list-name
|
|
|
|
|
speedbar-initial-expansion-list-name
|
|
|
|
|
speedbar-initial-expansion-list-name new-default)
|
|
|
|
|
(speedbar-refresh)
|
|
|
|
|
(speedbar-reconfigure-keymaps))
|
|
|
|
|
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(defun speedbar-fetch-replacement-function (function)
|
|
|
|
|
"Return a current mode specific replacement for function, or nil.
|
|
|
|
|
Scans `speedbar-mode-functions-list' first for the current mode, then
|
|
|
|
|
for FUNCTION."
|
|
|
|
|
(cdr (assoc function
|
|
|
|
|
(cdr (assoc speedbar-initial-expansion-list-name
|
|
|
|
|
speedbar-mode-functions-list)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-add-mode-functions-list (new-list)
|
|
|
|
|
"Add NEW-LIST to the list of mode functions.
|
|
|
|
|
See `speedbar-mode-functions-list' for details."
|
|
|
|
|
(add-to-list 'speedbar-mode-functions-list new-list))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
;;; Special speedbar display management
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-maybe-add-localized-support (buffer)
|
|
|
|
|
"Quick check function called on BUFFERs by the speedbar timer function.
|
|
|
|
|
Maintains the value of local variables which control speedbars use
|
|
|
|
|
of the special mode functions."
|
|
|
|
|
(or speedbar-special-mode-expansion-list
|
|
|
|
|
(speedbar-add-localized-speedbar-support buffer)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-add-localized-speedbar-support (buffer)
|
|
|
|
|
"Add localized speedbar support to BUFFER's mode if it is available."
|
|
|
|
|
(interactive "bBuffer: ")
|
|
|
|
|
(if (stringp buffer) (setq buffer (get-buffer buffer)))
|
|
|
|
|
(if (not (buffer-live-p buffer))
|
|
|
|
|
nil
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer buffer)
|
|
|
|
|
(save-match-data
|
|
|
|
|
(let ((ms (symbol-name major-mode)) v)
|
|
|
|
|
(if (not (string-match "-mode$" ms))
|
|
|
|
|
nil ;; do nothing to broken mode
|
|
|
|
|
(setq ms (substring ms 0 (match-beginning 0)))
|
|
|
|
|
(setq v (intern-soft (concat ms "-speedbar-buttons")))
|
|
|
|
|
(make-local-variable 'speedbar-special-mode-expansion-list)
|
|
|
|
|
(if (not v)
|
|
|
|
|
(setq speedbar-special-mode-expansion-list t)
|
|
|
|
|
;; If it is autoloaded, we need to load it now so that
|
|
|
|
|
;; we have access to the varialbe -speedbar-menu-items.
|
|
|
|
|
;; Is this XEmacs safe?
|
|
|
|
|
(let ((sf (symbol-function v)))
|
|
|
|
|
(if (and (listp sf) (eq (car sf) 'autoload))
|
|
|
|
|
(load-library (car (cdr sf)))))
|
|
|
|
|
(setq speedbar-special-mode-expansion-list (list v))
|
|
|
|
|
(setq v (intern-soft (concat ms "-speedbar-key-map")))
|
|
|
|
|
(if (not v)
|
|
|
|
|
nil ;; don't add special keymap
|
|
|
|
|
(make-local-variable 'speedbar-special-mode-key-map)
|
|
|
|
|
(setq speedbar-special-mode-key-map
|
|
|
|
|
(symbol-value v)))
|
|
|
|
|
(setq v (intern-soft (concat ms "-speedbar-menu-items")))
|
|
|
|
|
(if (not v)
|
|
|
|
|
nil ;; don't add special menus
|
|
|
|
|
(make-local-variable 'speedbar-easymenu-definition-special)
|
|
|
|
|
(setq speedbar-easymenu-definition-special
|
|
|
|
|
(symbol-value v)))
|
|
|
|
|
)))))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-remove-localized-speedbar-support (buffer)
|
|
|
|
|
"Remove any traces that BUFFER supports speedbar in a specialized way."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer buffer)
|
|
|
|
|
(kill-local-variable 'speedbar-special-mode-expansion-list)
|
|
|
|
|
(kill-local-variable 'speedbar-special-mode-key-map)
|
|
|
|
|
(kill-local-variable 'speedbar-easymenu-definition-special)))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;; File button management
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-file-lists (directory)
|
|
|
|
|
"Create file lists for DIRECTORY.
|
|
|
|
|
The car is the list of directories, the cdr is list of files not
|
|
|
|
|
matching ignored headers. Cache any directory files found in
|
|
|
|
|
`speedbar-directory-contents-alist' and use that cache before scanning
|
2002-07-10 09:26:03 +00:00
|
|
|
|
the file-system."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(setq directory (expand-file-name directory))
|
|
|
|
|
;; If in powerclick mode, then the directory we are getting
|
|
|
|
|
;; should be rescanned.
|
|
|
|
|
(if speedbar-power-click
|
|
|
|
|
(adelete 'speedbar-directory-contents-alist directory))
|
|
|
|
|
;; find the directory, either in the cache, or build it.
|
|
|
|
|
(or (cdr-safe (assoc directory speedbar-directory-contents-alist))
|
|
|
|
|
(let ((default-directory directory)
|
|
|
|
|
(dir (directory-files directory nil))
|
|
|
|
|
(dirs nil)
|
|
|
|
|
(files nil))
|
|
|
|
|
(while dir
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if (not
|
|
|
|
|
(or (string-match speedbar-file-unshown-regexp (car dir))
|
|
|
|
|
(string-match speedbar-directory-unshown-regexp (car dir))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (file-directory-p (car dir))
|
|
|
|
|
(setq dirs (cons (car dir) dirs))
|
|
|
|
|
(setq files (cons (car dir) files))))
|
|
|
|
|
(setq dir (cdr dir)))
|
|
|
|
|
(let ((nl (cons (nreverse dirs) (list (nreverse files)))))
|
|
|
|
|
(aput 'speedbar-directory-contents-alist directory nl)
|
|
|
|
|
nl))
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-directory-buttons (directory index)
|
|
|
|
|
"Insert a single button group at point for DIRECTORY.
|
|
|
|
|
Each directory path part is a different button. If part of the path
|
|
|
|
|
matches the user directory ~, then it is replaced with a ~.
|
|
|
|
|
INDEX is not used, but is required by the caller."
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(let* ((tilde (expand-file-name "~/"))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(dd (expand-file-name directory))
|
|
|
|
|
(junk (string-match (regexp-quote tilde) dd))
|
|
|
|
|
(displayme (if junk
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(concat "~/" (substring dd (match-end 0)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
dd))
|
|
|
|
|
(p (point)))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "^~[/\\]?\\'" displayme) (setq displayme tilde))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(insert displayme)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char p)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(while (re-search-forward "\\([^/\\]+\\)[/\\]" nil t)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-make-button (match-beginning 1) (match-end 1)
|
|
|
|
|
'speedbar-directory-face
|
|
|
|
|
'speedbar-highlight-face
|
|
|
|
|
'speedbar-directory-buttons-follow
|
1999-08-29 19:37:29 +00:00
|
|
|
|
(if (and (= (match-beginning 1) p)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(not (char-equal (char-after (+ p 1)) ?:)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(expand-file-name "~/") ;the tilde
|
|
|
|
|
(buffer-substring-no-properties
|
|
|
|
|
p (match-end 0)))))
|
|
|
|
|
;; Nuke the beginning of the directory if it's too long...
|
|
|
|
|
(cond ((eq speedbar-directory-button-trim-method 'span)
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(let ((ww (or (speedbar-frame-width) 20)))
|
|
|
|
|
(move-to-column ww nil)
|
|
|
|
|
(while (>= (current-column) ww)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(re-search-backward "[/\\]" nil t)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (<= (current-column) 2)
|
|
|
|
|
(progn
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(re-search-forward "[/\\]" nil t)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (< (current-column) 4)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(re-search-forward "[/\\]" nil t))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(forward-char -1)))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (looking-at "[/\\]?$")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(insert "/...\n ")
|
|
|
|
|
(move-to-column ww nil)))))
|
|
|
|
|
((eq speedbar-directory-button-trim-method 'trim)
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(let ((ww (or (speedbar-frame-width) 20))
|
|
|
|
|
(tl (current-column)))
|
|
|
|
|
(if (< ww tl)
|
|
|
|
|
(progn
|
|
|
|
|
(move-to-column (- tl ww))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (re-search-backward "[/\\]" nil t)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(progn
|
|
|
|
|
(delete-region (point-min) (point))
|
|
|
|
|
(insert "$")
|
|
|
|
|
)))))))
|
|
|
|
|
)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "\\`[/\\][^/\\]+[/\\]\\'" displayme)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(progn
|
|
|
|
|
(insert " ")
|
|
|
|
|
(let ((p (point)))
|
|
|
|
|
(insert "<root>")
|
|
|
|
|
(speedbar-make-button p (point)
|
|
|
|
|
'speedbar-directory-face
|
|
|
|
|
'speedbar-highlight-face
|
|
|
|
|
'speedbar-directory-buttons-follow
|
|
|
|
|
"/"))))
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(insert-char ?\n 1 nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-make-tag-line (exp-button-type
|
|
|
|
|
exp-button-char exp-button-function
|
|
|
|
|
exp-button-data
|
|
|
|
|
tag-button tag-button-function tag-button-data
|
|
|
|
|
tag-button-face depth)
|
|
|
|
|
"Create a tag line with EXP-BUTTON-TYPE for the small expansion button.
|
|
|
|
|
This is the button that expands or contracts a node (if applicable),
|
|
|
|
|
and EXP-BUTTON-CHAR the character in it (+, -, ?, etc). EXP-BUTTON-FUNCTION
|
|
|
|
|
is the function to call if it's clicked on. Button types are
|
|
|
|
|
'bracket, 'angle, 'curly, or nil. EXP-BUTTON-DATA is extra data
|
|
|
|
|
attached to the text forming the expansion button.
|
|
|
|
|
|
|
|
|
|
Next, TAG-BUTTON is the text of the tag. TAG-BUTTON-FUNCTION is the
|
|
|
|
|
function to call if clicked on, and TAG-BUTTON-DATA is the data to
|
|
|
|
|
attach to the text field (such a tag positioning, etc).
|
|
|
|
|
TAG-BUTTON-FACE is a face used for this type of tag.
|
|
|
|
|
|
|
|
|
|
Lastly, DEPTH shows the depth of expansion.
|
|
|
|
|
|
|
|
|
|
This function assumes that the cursor is in the speedbar window at the
|
2002-07-10 08:21:49 +00:00
|
|
|
|
position to insert a new item, and that the new item will end with a CR."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((start (point))
|
|
|
|
|
(end (progn
|
|
|
|
|
(insert (int-to-string depth) ":")
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(point)))
|
|
|
|
|
(depthspacesize (* depth speedbar-indentation-width)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(put-text-property start end 'invisible t)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(insert-char ? depthspacesize nil)
|
|
|
|
|
(put-text-property (- (point) depthspacesize) (point) 'invisible nil)
|
|
|
|
|
(let* ((exp-button (cond ((eq exp-button-type 'bracket) "[%c]")
|
|
|
|
|
((eq exp-button-type 'angle) "<%c>")
|
|
|
|
|
((eq exp-button-type 'curly) "{%c}")
|
|
|
|
|
(t ">")))
|
|
|
|
|
(buttxt (format exp-button exp-button-char))
|
|
|
|
|
(start (point))
|
|
|
|
|
(end (progn (insert buttxt) (point)))
|
|
|
|
|
(bf (if exp-button-type 'speedbar-button-face nil))
|
|
|
|
|
(mf (if exp-button-function 'speedbar-highlight-face nil))
|
|
|
|
|
)
|
|
|
|
|
(speedbar-make-button start end bf mf exp-button-function exp-button-data)
|
|
|
|
|
(if speedbar-hide-button-brackets-flag
|
|
|
|
|
(progn
|
|
|
|
|
(put-text-property start (1+ start) 'invisible t)
|
|
|
|
|
(put-text-property end (1- end) 'invisible t)))
|
|
|
|
|
)
|
|
|
|
|
(insert-char ? 1 nil)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(put-text-property (1- (point)) (point) 'invisible nil)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(let ((start (point))
|
|
|
|
|
(end (progn (insert tag-button) (point))))
|
|
|
|
|
(insert-char ?\n 1 nil)
|
|
|
|
|
(put-text-property (1- (point)) (point) 'invisible nil)
|
|
|
|
|
(speedbar-make-button start end tag-button-face
|
|
|
|
|
(if tag-button-function 'speedbar-highlight-face nil)
|
|
|
|
|
tag-button-function tag-button-data))
|
|
|
|
|
))
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-change-expand-button-char (char)
|
|
|
|
|
"Change the expansion button character to CHAR for the current line."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(if (re-search-forward ":\\s-*.\\([-+?]\\)" (save-excursion (end-of-line)
|
|
|
|
|
(point)) t)
|
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(goto-char (match-beginning 1))
|
|
|
|
|
(delete-char 1)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(insert-char char 1 t)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(put-text-property (point) (1- (point)) 'invisible nil)
|
|
|
|
|
;; make sure we fix the image on the text here.
|
|
|
|
|
(speedbar-insert-image-button-maybe (- (point) 2) 3)))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Build button lists
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-insert-files-at-point (files level)
|
|
|
|
|
"Insert list of FILES starting at point, and indenting all files to LEVEL.
|
|
|
|
|
Tag expandable items with a +, otherwise a ?. Don't highlight ? as we
|
|
|
|
|
don't know how to manage them. The input parameter FILES is a cons
|
2002-07-10 08:21:49 +00:00
|
|
|
|
cell of the form ( 'DIRLIST . 'FILELIST )."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Start inserting all the directories
|
|
|
|
|
(let ((dirs (car files)))
|
|
|
|
|
(while dirs
|
|
|
|
|
(speedbar-make-tag-line 'angle ?+ 'speedbar-dired (car dirs)
|
|
|
|
|
(car dirs) 'speedbar-dir-follow nil
|
|
|
|
|
'speedbar-directory-face level)
|
|
|
|
|
(setq dirs (cdr dirs))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(let ((lst (car (cdr files)))
|
|
|
|
|
(case-fold-search t))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(while lst
|
|
|
|
|
(let* ((known (string-match speedbar-file-regexp (car lst)))
|
|
|
|
|
(expchar (if known ?+ ??))
|
|
|
|
|
(fn (if known 'speedbar-tag-file nil)))
|
|
|
|
|
(if (or speedbar-show-unknown-files (/= expchar ??))
|
|
|
|
|
(speedbar-make-tag-line 'bracket expchar fn (car lst)
|
|
|
|
|
(car lst) 'speedbar-find-file nil
|
|
|
|
|
'speedbar-file-face level)))
|
|
|
|
|
(setq lst (cdr lst)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-default-directory-list (directory index)
|
|
|
|
|
"Insert files for DIRECTORY with level INDEX at point."
|
|
|
|
|
(speedbar-insert-files-at-point
|
|
|
|
|
(speedbar-file-lists directory) index)
|
|
|
|
|
(speedbar-reset-scanners)
|
|
|
|
|
(if (= index 0)
|
|
|
|
|
;; If the shown files variable has extra directories, then
|
|
|
|
|
;; it is our responsibility to redraw them all
|
|
|
|
|
;; Luckilly, the nature of inserting items into this list means
|
|
|
|
|
;; that by reversing it, we can easilly go in the right order
|
|
|
|
|
(let ((sf (cdr (reverse speedbar-shown-directories))))
|
|
|
|
|
(setq speedbar-shown-directories
|
|
|
|
|
(list (expand-file-name default-directory)))
|
|
|
|
|
;; exand them all as we find them
|
|
|
|
|
(while sf
|
|
|
|
|
(if (speedbar-goto-this-file (car sf))
|
|
|
|
|
(progn
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(if (looking-at "[0-9]+:[ ]*<")
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (match-end 0))
|
2002-03-29 12:46:02 +00:00
|
|
|
|
(speedbar-do-function-pointer)))))
|
|
|
|
|
(setq sf (cdr sf)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
)))
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defun speedbar-sort-tag-hierarchy (lst)
|
|
|
|
|
"Sort all elements of tag hierarchy LST."
|
|
|
|
|
(sort (copy-alist lst)
|
|
|
|
|
(lambda (a b) (string< (car a) (car b)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-prefix-group-tag-hierarchy (lst)
|
|
|
|
|
"Prefix group names for tag hierarchy LST."
|
|
|
|
|
(let ((newlst nil)
|
|
|
|
|
(sublst nil)
|
|
|
|
|
(work-list nil)
|
|
|
|
|
(junk-list nil)
|
|
|
|
|
(short-group-list nil)
|
|
|
|
|
(short-start-name nil)
|
|
|
|
|
(short-end-name nil)
|
|
|
|
|
(num-shorts-grouped 0)
|
|
|
|
|
(bins (make-vector 256 nil))
|
|
|
|
|
(diff-idx 0))
|
|
|
|
|
;; Break out sub-lists
|
|
|
|
|
(while lst
|
|
|
|
|
(if (and (listp (cdr-safe (car-safe lst)))
|
|
|
|
|
;; This one is for bovine tokens
|
|
|
|
|
(not (symbolp (car-safe (cdr-safe (car-safe lst))))))
|
|
|
|
|
(setq newlst (cons (car lst) newlst))
|
|
|
|
|
(setq sublst (cons (car lst) sublst)))
|
|
|
|
|
(setq lst (cdr lst)))
|
|
|
|
|
;; Reverse newlst because it was made backwards.
|
|
|
|
|
;; Sublist doesn't need reversing because the act
|
|
|
|
|
;; of binning things will reverse it for us.
|
|
|
|
|
(setq newlst (nreverse newlst))
|
|
|
|
|
;; Now, first find out how long our list is. Never let a
|
|
|
|
|
;; list get-shorter than our minimum.
|
|
|
|
|
(if (<= (length sublst) speedbar-tag-split-minimum-length)
|
|
|
|
|
(setq work-list (nreverse sublst))
|
|
|
|
|
(setq diff-idx (length (try-completion "" sublst)))
|
|
|
|
|
;; Sort the whole list into bins.
|
|
|
|
|
(while sublst
|
|
|
|
|
(let ((e (car sublst))
|
|
|
|
|
(s (car (car sublst))))
|
|
|
|
|
(cond ((<= (length s) diff-idx)
|
|
|
|
|
;; 0 storage bin for shorty.
|
|
|
|
|
(aset bins 0 (cons e (aref bins 0))))
|
|
|
|
|
(t
|
|
|
|
|
;; stuff into a bin based on ascii value at diff
|
|
|
|
|
(aset bins (aref s diff-idx)
|
|
|
|
|
(cons e (aref bins (aref s diff-idx)))))))
|
|
|
|
|
(setq sublst (cdr sublst)))
|
|
|
|
|
;; Go through all our bins Stick singles into our
|
|
|
|
|
;; junk-list, everything else as sublsts in work-list.
|
|
|
|
|
;; If two neighboring lists are both small, make a grouped
|
|
|
|
|
;; group combinding those two sub-lists.
|
|
|
|
|
(setq diff-idx 0)
|
|
|
|
|
(while (> 256 diff-idx)
|
|
|
|
|
(let ((l (nreverse;; Reverse the list since they are stuck in
|
|
|
|
|
;; backwards.
|
|
|
|
|
(aref bins diff-idx))))
|
|
|
|
|
(if l
|
|
|
|
|
(let ((tmp (cons (try-completion "" l) l)))
|
|
|
|
|
(if (or (> (length l) speedbar-tag-regroup-maximum-length)
|
|
|
|
|
(> (+ (length l) (length short-group-list))
|
|
|
|
|
speedbar-tag-split-minimum-length))
|
|
|
|
|
(progn
|
|
|
|
|
;; We have reached a longer list, so we
|
|
|
|
|
;; must finish off a grouped group.
|
|
|
|
|
(cond
|
|
|
|
|
((and short-group-list
|
|
|
|
|
(= (length short-group-list)
|
|
|
|
|
num-shorts-grouped))
|
|
|
|
|
;; All singles? Junk list
|
|
|
|
|
(setq junk-list (append short-group-list
|
|
|
|
|
junk-list)))
|
|
|
|
|
((= num-shorts-grouped 1)
|
|
|
|
|
;; Only one short group? Just stick it in
|
|
|
|
|
;; there by itself. Make a group, and find
|
|
|
|
|
;; a subexpression
|
|
|
|
|
(let ((subexpression (try-completion
|
|
|
|
|
"" short-group-list)))
|
|
|
|
|
(if (< (length subexpression)
|
|
|
|
|
speedbar-tag-group-name-minimum-length)
|
|
|
|
|
(setq subexpression
|
|
|
|
|
(concat short-start-name
|
|
|
|
|
" ("
|
|
|
|
|
(substring
|
|
|
|
|
(car (car short-group-list))
|
|
|
|
|
(length short-start-name))
|
|
|
|
|
")")))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(setq work-list
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(cons (cons subexpression
|
|
|
|
|
short-group-list)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
work-list))))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(short-group-list
|
|
|
|
|
;; Multiple groups to be named in a special
|
|
|
|
|
;; way by displaying the range over which we
|
|
|
|
|
;; have grouped them.
|
|
|
|
|
(setq work-list
|
|
|
|
|
(cons (cons (concat short-start-name
|
|
|
|
|
" to "
|
|
|
|
|
short-end-name)
|
|
|
|
|
(nreverse short-group-list))
|
|
|
|
|
work-list))))
|
|
|
|
|
;; Reset short group list information every time.
|
|
|
|
|
(setq short-group-list nil
|
|
|
|
|
short-start-name nil
|
|
|
|
|
short-end-name nil
|
|
|
|
|
num-shorts-grouped 0)))
|
|
|
|
|
;; Ok, now that we cleaned up the short-group-list,
|
|
|
|
|
;; we can deal with this new list, to decide if it
|
|
|
|
|
;; should go on one of these sub-lists or not.
|
|
|
|
|
(if (< (length l) speedbar-tag-regroup-maximum-length)
|
|
|
|
|
(setq short-group-list (append short-group-list l)
|
|
|
|
|
num-shorts-grouped (1+ num-shorts-grouped)
|
|
|
|
|
short-end-name (car tmp)
|
|
|
|
|
short-start-name (if short-start-name
|
|
|
|
|
short-start-name
|
|
|
|
|
(car tmp)))
|
|
|
|
|
(setq work-list (cons tmp work-list))))))
|
|
|
|
|
(setq diff-idx (1+ diff-idx))))
|
|
|
|
|
;; Did we run out of things? Drop our new list onto the end.
|
|
|
|
|
(cond
|
|
|
|
|
((and short-group-list (= (length short-group-list) num-shorts-grouped))
|
|
|
|
|
;; All singles? Junk list
|
|
|
|
|
(setq junk-list (append short-group-list junk-list)))
|
|
|
|
|
((= num-shorts-grouped 1)
|
|
|
|
|
;; Only one short group? Just stick it in
|
|
|
|
|
;; there by itself.
|
|
|
|
|
(setq work-list
|
|
|
|
|
(cons (cons (try-completion "" short-group-list)
|
|
|
|
|
short-group-list)
|
|
|
|
|
work-list)))
|
|
|
|
|
(short-group-list
|
|
|
|
|
;; Multiple groups to be named in a special
|
|
|
|
|
;; way by displaying the range over which we
|
|
|
|
|
;; have grouped them.
|
|
|
|
|
(setq work-list
|
|
|
|
|
(cons (cons (concat short-start-name " to " short-end-name)
|
|
|
|
|
short-group-list)
|
|
|
|
|
work-list))))
|
|
|
|
|
;; Reverse the work list nreversed when consing.
|
|
|
|
|
(setq work-list (nreverse work-list))
|
|
|
|
|
;; Now, stick our new list onto the end of
|
|
|
|
|
(if work-list
|
|
|
|
|
(if junk-list
|
|
|
|
|
(append newlst work-list junk-list)
|
|
|
|
|
(append newlst work-list))
|
|
|
|
|
(append newlst junk-list))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-trim-words-tag-hierarchy (lst)
|
|
|
|
|
"Trim all words in a tag hierarchy.
|
|
|
|
|
Base trimming information on word separators, and group names.
|
|
|
|
|
Argument LST is the list of tags to trim."
|
|
|
|
|
(let ((newlst nil)
|
|
|
|
|
(sublst nil)
|
|
|
|
|
(trim-prefix nil)
|
|
|
|
|
(trim-chars 0)
|
|
|
|
|
(trimlst nil))
|
|
|
|
|
(while lst
|
|
|
|
|
(if (listp (cdr-safe (car-safe lst)))
|
|
|
|
|
(setq newlst (cons (car lst) newlst))
|
|
|
|
|
(setq sublst (cons (car lst) sublst)))
|
|
|
|
|
(setq lst (cdr lst)))
|
|
|
|
|
;; Get the prefix to trim by. Make sure that we don't trim
|
|
|
|
|
;; off silly pieces, only complete understandable words.
|
|
|
|
|
(setq trim-prefix (try-completion "" sublst))
|
|
|
|
|
(if (or (= (length sublst) 1)
|
|
|
|
|
(not trim-prefix)
|
|
|
|
|
(not (string-match "\\(\\w+\\W+\\)+" trim-prefix)))
|
|
|
|
|
(append (nreverse newlst) (nreverse sublst))
|
|
|
|
|
(setq trim-prefix (substring trim-prefix (match-beginning 0)
|
|
|
|
|
(match-end 0)))
|
|
|
|
|
(setq trim-chars (length trim-prefix))
|
|
|
|
|
(while sublst
|
|
|
|
|
(setq trimlst (cons
|
|
|
|
|
(cons (substring (car (car sublst)) trim-chars)
|
|
|
|
|
(cdr (car sublst)))
|
|
|
|
|
trimlst)
|
|
|
|
|
sublst (cdr sublst)))
|
|
|
|
|
;; Put the lists together
|
|
|
|
|
(append (nreverse newlst) trimlst))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-simple-group-tag-hierarchy (lst)
|
|
|
|
|
"Create a simple 'Tags' group with orphaned tags.
|
|
|
|
|
Argument LST is the list of tags to sort into groups."
|
|
|
|
|
(let ((newlst nil)
|
|
|
|
|
(sublst nil))
|
|
|
|
|
(while lst
|
|
|
|
|
(if (listp (cdr-safe (car-safe lst)))
|
|
|
|
|
(setq newlst (cons (car lst) newlst))
|
|
|
|
|
(setq sublst (cons (car lst) sublst)))
|
|
|
|
|
(setq lst (cdr lst)))
|
|
|
|
|
(if (not newlst)
|
|
|
|
|
(nreverse sublst)
|
|
|
|
|
(setq newlst (cons (cons "Tags" (nreverse sublst)) newlst))
|
|
|
|
|
(nreverse newlst))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-create-tag-hierarchy (lst)
|
|
|
|
|
"Adjust the tag hierarchy in LST, and return it.
|
|
|
|
|
This uses `speedbar-tag-hierarchy-method' to determine how to adjust
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
the list."
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(let* ((f (save-excursion
|
|
|
|
|
(forward-line -1)
|
|
|
|
|
(speedbar-line-path)))
|
|
|
|
|
(methods (if (get-file-buffer f)
|
|
|
|
|
(save-excursion (set-buffer (get-file-buffer f))
|
|
|
|
|
speedbar-tag-hierarchy-method)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
speedbar-tag-hierarchy-method))
|
|
|
|
|
(lst (if (fboundp 'copy-tree)
|
|
|
|
|
(copy-tree lst)
|
|
|
|
|
lst)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(while methods
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(setq lst (funcall (car methods) lst)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
methods (cdr methods)))
|
|
|
|
|
lst))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-insert-generic-list (level lst expand-fun find-fun)
|
|
|
|
|
"At LEVEL, insert a generic multi-level alist LST.
|
|
|
|
|
Associations with lists get {+} tags (to expand into more nodes) and
|
|
|
|
|
those with positions just get a > as the indicator. {+} buttons will
|
|
|
|
|
have the function EXPAND-FUN and the token is the CDR list. The token
|
|
|
|
|
name will have the function FIND-FUN and not token."
|
|
|
|
|
;; Remove imenu rescan button
|
|
|
|
|
(if (string= (car (car lst)) "*Rescan*")
|
|
|
|
|
(setq lst (cdr lst)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Adjust the list.
|
|
|
|
|
(setq lst (speedbar-create-tag-hierarchy lst))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; insert the parts
|
|
|
|
|
(while lst
|
|
|
|
|
(cond ((null (car-safe lst)) nil) ;this would be a separator
|
|
|
|
|
((or (numberp (cdr-safe (car-safe lst)))
|
|
|
|
|
(markerp (cdr-safe (car-safe lst))))
|
|
|
|
|
(speedbar-make-tag-line nil nil nil nil ;no expand button data
|
|
|
|
|
(car (car lst)) ;button name
|
|
|
|
|
find-fun ;function
|
|
|
|
|
(cdr (car lst)) ;token is position
|
|
|
|
|
'speedbar-tag-face
|
|
|
|
|
(1+ level)))
|
|
|
|
|
((listp (cdr-safe (car-safe lst)))
|
|
|
|
|
(speedbar-make-tag-line 'curly ?+ expand-fun (cdr (car lst))
|
|
|
|
|
(car (car lst)) ;button name
|
|
|
|
|
nil nil 'speedbar-tag-face
|
|
|
|
|
(1+ level)))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(t (speedbar-message "Ooops!")))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(setq lst (cdr lst))))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-insert-imenu-list (indent lst)
|
|
|
|
|
"At level INDENT, insert the imenu generated LST."
|
|
|
|
|
(speedbar-insert-generic-list indent lst
|
|
|
|
|
'speedbar-tag-expand
|
|
|
|
|
'speedbar-tag-find))
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defun speedbar-insert-etags-list (indent lst)
|
|
|
|
|
"At level INDENT, insert the etags generated LST."
|
|
|
|
|
(speedbar-insert-generic-list indent lst
|
|
|
|
|
'speedbar-tag-expand
|
|
|
|
|
'speedbar-tag-find))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
;;; Timed functions
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-update-contents ()
|
|
|
|
|
"Generically update the contents of the speedbar buffer."
|
|
|
|
|
(interactive)
|
|
|
|
|
;; Set the current special buffer
|
|
|
|
|
(setq speedbar-desired-buffer nil)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; Check for special modes
|
|
|
|
|
(speedbar-maybe-add-localized-support (current-buffer))
|
|
|
|
|
;; Choose the correct method of doodling.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (and speedbar-mode-specific-contents-flag
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(listp speedbar-special-mode-expansion-list)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
speedbar-special-mode-expansion-list
|
|
|
|
|
(local-variable-p
|
|
|
|
|
'speedbar-special-mode-expansion-list
|
|
|
|
|
(current-buffer)))
|
|
|
|
|
;;(eq (get major-mode 'mode-class 'special)))
|
|
|
|
|
(speedbar-update-special-contents)
|
|
|
|
|
(speedbar-update-directory-contents)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-update-directory-contents ()
|
|
|
|
|
"Update the contents of the speedbar buffer based on the current directory."
|
|
|
|
|
(let ((cbd (expand-file-name default-directory))
|
|
|
|
|
cbd-parent
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(funclst (speedbar-initial-expansion-list))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(cache speedbar-full-text-cache)
|
|
|
|
|
;; disable stealth during update
|
|
|
|
|
(speedbar-stealthy-function-list nil)
|
|
|
|
|
(use-cache nil)
|
|
|
|
|
(expand-local nil)
|
|
|
|
|
;; Because there is a bug I can't find just yet
|
|
|
|
|
(inhibit-quit nil))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
;; If we are updating contents to where we are, then this is
|
|
|
|
|
;; really a request to update existing contents, so we must be
|
|
|
|
|
;; careful with our text cache!
|
|
|
|
|
(if (member cbd speedbar-shown-directories)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(progn
|
|
|
|
|
(setq cache nil)
|
|
|
|
|
;; If the current directory is not the last element in the dir
|
|
|
|
|
;; list, then we ALSO need to zap the list of expanded directories
|
|
|
|
|
(if (/= (length (member cbd speedbar-shown-directories)) 1)
|
|
|
|
|
(setq speedbar-shown-directories (list cbd))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
;; Build cbd-parent, and see if THAT is in the current shown
|
|
|
|
|
;; directories. First, go through pains to get the parent directory
|
|
|
|
|
(if (and speedbar-smart-directory-expand-flag
|
|
|
|
|
(save-match-data
|
|
|
|
|
(setq cbd-parent cbd)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "[/\\]$" cbd-parent)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(setq cbd-parent (substring cbd-parent 0
|
|
|
|
|
(match-beginning 0))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(setq cbd-parent (file-name-directory cbd-parent)))
|
|
|
|
|
(member cbd-parent speedbar-shown-directories))
|
|
|
|
|
(setq expand-local t)
|
|
|
|
|
|
|
|
|
|
;; If this directory is NOT in the current list of available
|
|
|
|
|
;; paths, then use the cache, and set the cache to our new
|
|
|
|
|
;; value. Make sure to unhighlight the current file, or if we
|
|
|
|
|
;; come back to this directory, it might be a different file
|
|
|
|
|
;; and then we get a mess!
|
|
|
|
|
(if (> (point-max) 1)
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-clear-current-file)
|
|
|
|
|
(setq speedbar-full-text-cache
|
|
|
|
|
(cons speedbar-shown-directories (buffer-string)))))
|
|
|
|
|
|
|
|
|
|
;; Check if our new directory is in the list of directories
|
|
|
|
|
;; shown in the text-cache
|
|
|
|
|
(if (member cbd (car cache))
|
|
|
|
|
(setq speedbar-shown-directories (car cache)
|
|
|
|
|
use-cache t)
|
|
|
|
|
;; default the shown directories to this list...
|
|
|
|
|
(setq speedbar-shown-directories (list cbd)))
|
|
|
|
|
))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
(if (not expand-local) (setq speedbar-last-selected-file nil))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(if (and expand-local
|
|
|
|
|
;; Find this directory as a speedbar node.
|
|
|
|
|
(speedbar-path-line cbd))
|
|
|
|
|
;; Open it.
|
|
|
|
|
(speedbar-expand-line)
|
|
|
|
|
(erase-buffer)
|
|
|
|
|
(cond (use-cache
|
|
|
|
|
(setq default-directory
|
|
|
|
|
(nth (1- (length speedbar-shown-directories))
|
|
|
|
|
speedbar-shown-directories))
|
|
|
|
|
(insert (cdr cache)))
|
|
|
|
|
(t
|
|
|
|
|
(while funclst
|
|
|
|
|
(setq default-directory cbd)
|
|
|
|
|
(funcall (car funclst) cbd 0)
|
|
|
|
|
(setq funclst (cdr funclst))))))
|
|
|
|
|
(goto-char (point-min)))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-reconfigure-keymaps))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-update-special-contents ()
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Use the mode-specific variable to fill in the speedbar buffer.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
This should only be used by modes classified as special."
|
|
|
|
|
(let ((funclst speedbar-special-mode-expansion-list)
|
|
|
|
|
(specialbuff (current-buffer)))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(setq speedbar-desired-buffer specialbuff)
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
;; If we are leaving a directory, cache it.
|
|
|
|
|
(if (not speedbar-shown-directories)
|
|
|
|
|
;; Do nothing
|
|
|
|
|
nil
|
|
|
|
|
;; Clean up directory maintenance stuff
|
|
|
|
|
(speedbar-clear-current-file)
|
|
|
|
|
(setq speedbar-full-text-cache
|
|
|
|
|
(cons speedbar-shown-directories (buffer-string))
|
|
|
|
|
speedbar-shown-directories nil))
|
|
|
|
|
;; Now fill in the buffer with our newly found specialized list.
|
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(while funclst
|
|
|
|
|
;; We do not erase the buffer because these functions may
|
|
|
|
|
;; decide NOT to update themselves.
|
|
|
|
|
(funcall (car funclst) specialbuff)
|
|
|
|
|
(setq funclst (cdr funclst))))
|
|
|
|
|
(goto-char (point-min))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-reconfigure-keymaps))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-timer-fn ()
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"Run whenever Emacs is idle to update the speedbar item."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (not (and (frame-live-p speedbar-frame)
|
|
|
|
|
(frame-live-p speedbar-attached-frame)))
|
|
|
|
|
(speedbar-set-timer nil)
|
|
|
|
|
;; Save all the match data so that we don't mess up executing fns
|
|
|
|
|
(save-match-data
|
1998-08-19 01:43:37 +00:00
|
|
|
|
;; Only do stuff if the frame is visible, not an icon, and if
|
|
|
|
|
;; it is currently flagged to do something.
|
|
|
|
|
(if (and speedbar-update-flag
|
|
|
|
|
(frame-visible-p speedbar-frame)
|
|
|
|
|
(not (eq (frame-visible-p speedbar-frame) 'icon)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((af (selected-frame)))
|
|
|
|
|
(save-window-excursion
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
;; make sure we at least choose a window to
|
|
|
|
|
;; get a good directory from
|
1998-08-19 01:43:37 +00:00
|
|
|
|
(if (window-minibuffer-p (selected-window))
|
|
|
|
|
nil
|
|
|
|
|
;; Check for special modes
|
|
|
|
|
(speedbar-maybe-add-localized-support (current-buffer))
|
|
|
|
|
;; Update for special mode all the time!
|
|
|
|
|
(if (and speedbar-mode-specific-contents-flag
|
|
|
|
|
(listp speedbar-special-mode-expansion-list)
|
|
|
|
|
speedbar-special-mode-expansion-list
|
|
|
|
|
(local-variable-p
|
|
|
|
|
'speedbar-special-mode-expansion-list
|
|
|
|
|
(current-buffer)))
|
|
|
|
|
;;(eq (get major-mode 'mode-class 'special)))
|
|
|
|
|
(progn
|
|
|
|
|
(if (<= 2 speedbar-verbosity-level)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message
|
|
|
|
|
"Updating speedbar to special mode: %s..."
|
|
|
|
|
major-mode))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
(speedbar-update-special-contents)
|
|
|
|
|
(if (<= 2 speedbar-verbosity-level)
|
|
|
|
|
(progn
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message
|
|
|
|
|
"Updating speedbar to special mode: %s...done"
|
|
|
|
|
major-mode)
|
|
|
|
|
(speedbar-message nil))))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
;; Update all the contents if directories change!
|
|
|
|
|
(if (or (member (expand-file-name default-directory)
|
|
|
|
|
speedbar-shown-directories)
|
|
|
|
|
(and speedbar-ignored-path-regexp
|
|
|
|
|
(string-match
|
|
|
|
|
speedbar-ignored-path-regexp
|
|
|
|
|
(expand-file-name default-directory)))
|
|
|
|
|
(member major-mode speedbar-ignored-modes)
|
|
|
|
|
(eq af speedbar-frame)
|
|
|
|
|
(not (buffer-file-name)))
|
|
|
|
|
nil
|
|
|
|
|
(if (<= 1 speedbar-verbosity-level)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Updating speedbar to: %s..."
|
1998-08-19 01:43:37 +00:00
|
|
|
|
default-directory))
|
|
|
|
|
(speedbar-update-directory-contents)
|
|
|
|
|
(if (<= 1 speedbar-verbosity-level)
|
1998-08-04 13:58:39 +00:00
|
|
|
|
(progn
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Updating speedbar to: %s...done"
|
1998-08-19 01:43:37 +00:00
|
|
|
|
default-directory)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message nil)))))
|
1998-08-19 01:43:37 +00:00
|
|
|
|
(select-frame af)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Now run stealthy updates of time-consuming items
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-stealthy-updates)))
|
|
|
|
|
;; Now run the mouse tracking system
|
|
|
|
|
(speedbar-show-info-under-mouse)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(run-hooks 'speedbar-timer-hook))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Stealthy activities
|
|
|
|
|
;;
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defvar speedbar-stealthy-update-recurse nil
|
|
|
|
|
"Recursion avoidance variable for stealthy update.")
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-stealthy-updates ()
|
|
|
|
|
"For a given speedbar, run all items in the stealthy function list.
|
|
|
|
|
Each item returns t if it completes successfully, or nil if
|
|
|
|
|
interrupted by the user."
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(if (not speedbar-stealthy-update-recurse)
|
|
|
|
|
(let ((l (speedbar-initial-stealthy-functions))
|
|
|
|
|
(speedbar-stealthy-update-recurse t))
|
|
|
|
|
(unwind-protect
|
1998-08-24 01:16:09 +00:00
|
|
|
|
(speedbar-with-writable
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(while (and l (funcall (car l)))
|
|
|
|
|
;;(sit-for 0)
|
|
|
|
|
(setq l (cdr l))))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
;;(speedbar-message "Exit with %S" (car l))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-reset-scanners ()
|
|
|
|
|
"Reset any variables used by functions in the stealthy list as state.
|
|
|
|
|
If new functions are added, their state needs to be updated here."
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(setq speedbar-vc-to-do-point t
|
|
|
|
|
speedbar-obj-to-do-point t)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(run-hooks 'speedbar-scanner-reset-hook)
|
|
|
|
|
)
|
|
|
|
|
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(defun speedbar-find-selected-file (file)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Go to the line where FILE is."
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(let ((m nil))
|
|
|
|
|
(while (and (setq m (re-search-forward
|
2001-05-25 18:48:41 +00:00
|
|
|
|
(concat " \\(" (regexp-quote (file-name-nondirectory file))
|
1998-08-08 21:20:51 +00:00
|
|
|
|
"\\)\\(" speedbar-indicator-regex "\\)?\n")
|
|
|
|
|
nil t))
|
|
|
|
|
(not (string= file
|
|
|
|
|
(concat
|
|
|
|
|
(speedbar-line-path
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (match-beginning 0))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(save-match-data
|
|
|
|
|
(looking-at "[0-9]+:")
|
|
|
|
|
(string-to-number (match-string 0)))))
|
|
|
|
|
(match-string 1))))))
|
|
|
|
|
(if m
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (match-beginning 1))
|
|
|
|
|
(match-string 1)))))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-clear-current-file ()
|
|
|
|
|
"Locate the file thought to be current, and remove its highlighting."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
(if speedbar-last-selected-file
|
|
|
|
|
(speedbar-with-writable
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(if (speedbar-find-selected-file speedbar-last-selected-file)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(put-text-property (match-beginning 1)
|
|
|
|
|
(match-end 1)
|
|
|
|
|
'face
|
|
|
|
|
'speedbar-file-face))))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-update-current-file ()
|
|
|
|
|
"Find the current file, and update our visuals to indicate its name.
|
|
|
|
|
This is specific to file names. If the file name doesn't show up, but
|
|
|
|
|
it should be in the list, then the directory cache needs to be
|
|
|
|
|
updated."
|
|
|
|
|
(let* ((lastf (selected-frame))
|
|
|
|
|
(newcfd (save-excursion
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(let ((rf (if (buffer-file-name)
|
|
|
|
|
(buffer-file-name)
|
|
|
|
|
nil)))
|
|
|
|
|
(select-frame lastf)
|
|
|
|
|
rf)))
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(newcf (if newcfd newcfd))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(lastb (current-buffer))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(sucf-recursive (boundp 'sucf-recursive))
|
|
|
|
|
(case-fold-search t))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (and newcf
|
|
|
|
|
;; check here, that way we won't refresh to newcf until
|
|
|
|
|
;; its been written, thus saving ourselves some time
|
|
|
|
|
(file-exists-p newcf)
|
|
|
|
|
(not (string= newcf speedbar-last-selected-file)))
|
|
|
|
|
(progn
|
|
|
|
|
;; It is important to select the frame, otherwise the window
|
|
|
|
|
;; we want the cursor to move in will not be updated by the
|
|
|
|
|
;; search-forward command.
|
|
|
|
|
(select-frame speedbar-frame)
|
|
|
|
|
;; Remove the old file...
|
|
|
|
|
(speedbar-clear-current-file)
|
|
|
|
|
;; now highlight the new one.
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
(speedbar-with-writable
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(if (speedbar-find-selected-file newcf)
|
|
|
|
|
;; put the property on it
|
|
|
|
|
(put-text-property (match-beginning 1)
|
|
|
|
|
(match-end 1)
|
|
|
|
|
'face
|
|
|
|
|
'speedbar-selected-face)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Oops, it's not in the list. Should it be?
|
|
|
|
|
(if (and (string-match speedbar-file-regexp newcf)
|
|
|
|
|
(string= (file-name-directory newcfd)
|
|
|
|
|
(expand-file-name default-directory)))
|
|
|
|
|
;; yes, it is (we will ignore unknowns for now...)
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-refresh)
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(if (speedbar-find-selected-file newcf)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; put the property on it
|
|
|
|
|
(put-text-property (match-beginning 1)
|
|
|
|
|
(match-end 1)
|
|
|
|
|
'face
|
|
|
|
|
'speedbar-selected-face)))
|
|
|
|
|
;; if it's not in there now, whatever...
|
|
|
|
|
))
|
|
|
|
|
(setq speedbar-last-selected-file newcf))
|
|
|
|
|
(if (not sucf-recursive)
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(progn
|
|
|
|
|
(speedbar-center-buffer-smartly)
|
|
|
|
|
(speedbar-position-cursor-on-line)
|
|
|
|
|
))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(set-buffer lastb)
|
|
|
|
|
(select-frame lastf)
|
|
|
|
|
)))
|
|
|
|
|
;; return that we are done with this activity.
|
|
|
|
|
t)
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-add-indicator (indicator-string &optional replace-this)
|
|
|
|
|
"Add INDICATOR-STRING to the end of this speedbar line.
|
|
|
|
|
If INDICATOR-STRING is space, and REPLACE-THIS is a character, then
|
2002-07-10 08:21:49 +00:00
|
|
|
|
the existing indicator is removed. If there is already an
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
indicator, then do not add a space."
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; The nature of the beast: Assume we are in "the right place"
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(skip-chars-backward (concat " " speedbar-vc-indicator
|
|
|
|
|
(car speedbar-obj-indicator)
|
|
|
|
|
(cdr speedbar-obj-indicator)))
|
|
|
|
|
(if (and (not (looking-at speedbar-indicator-regex))
|
|
|
|
|
(not (string= indicator-string " ")))
|
|
|
|
|
(insert speedbar-indicator-separator))
|
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(save-excursion
|
|
|
|
|
(if (and replace-this
|
|
|
|
|
(re-search-forward replace-this (save-excursion (end-of-line)
|
|
|
|
|
(point))
|
|
|
|
|
t))
|
|
|
|
|
(delete-region (match-beginning 0) (match-end 0))))
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(if (not (string= " " indicator-string))
|
|
|
|
|
(insert indicator-string))))
|
|
|
|
|
|
|
|
|
|
;; Load efs/ange-ftp only if compiling to remove byte-compiler warnings.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Steven L Baur <steve@xemacs.org> said this was important:
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(eval-when-compile (or (featurep 'xemacs)
|
|
|
|
|
(condition-case () (require 'efs)
|
|
|
|
|
(error (require 'ange-ftp)))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-check-vc ()
|
|
|
|
|
"Scan all files in a directory, and for each see if it's checked out.
|
|
|
|
|
See `speedbar-this-file-in-vc' and `speedbar-vc-check-dir-p' for how
|
|
|
|
|
to add more types of version control systems."
|
|
|
|
|
;; Check for to-do to be reset. If reset but no RCS is available
|
|
|
|
|
;; then set to nil (do nothing) otherwise, start at the beginning
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
(if (and speedbar-vc-do-check (eq speedbar-vc-to-do-point t)
|
|
|
|
|
(speedbar-vc-check-dir-p default-directory)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(not (or (and (featurep 'ange-ftp)
|
|
|
|
|
(string-match
|
|
|
|
|
(car (if speedbar-xemacsp
|
|
|
|
|
ange-ftp-path-format
|
|
|
|
|
ange-ftp-name-format))
|
|
|
|
|
(expand-file-name default-directory)))
|
|
|
|
|
;; efs support: Bob Weiner
|
|
|
|
|
(and (featurep 'efs)
|
|
|
|
|
(string-match
|
|
|
|
|
(car efs-path-regexp)
|
|
|
|
|
(expand-file-name default-directory))))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(setq speedbar-vc-to-do-point 0))
|
|
|
|
|
(if (numberp speedbar-vc-to-do-point)
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char speedbar-vc-to-do-point)
|
|
|
|
|
(while (and (not (input-pending-p))
|
|
|
|
|
(re-search-forward "^\\([0-9]+\\):\\s-*\\[[+-]\\] "
|
|
|
|
|
nil t))
|
|
|
|
|
(setq speedbar-vc-to-do-point (point))
|
|
|
|
|
(if (speedbar-check-vc-this-line (match-string 1))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-add-indicator speedbar-vc-indicator
|
|
|
|
|
(regexp-quote speedbar-vc-indicator))
|
|
|
|
|
(speedbar-add-indicator " "
|
|
|
|
|
(regexp-quote speedbar-vc-indicator))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(if (input-pending-p)
|
|
|
|
|
;; return that we are incomplete
|
|
|
|
|
nil
|
|
|
|
|
;; we are done, set to-do to nil
|
|
|
|
|
(setq speedbar-vc-to-do-point nil)
|
|
|
|
|
;; and return t
|
|
|
|
|
t))
|
|
|
|
|
t)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-check-vc-this-line (depth)
|
|
|
|
|
"Return t if the file on this line is check of of a version control system.
|
|
|
|
|
Parameter DEPTH is a string with the current depth of indentation of
|
|
|
|
|
the file being checked."
|
|
|
|
|
(let* ((d (string-to-int depth))
|
|
|
|
|
(f (speedbar-line-path d))
|
|
|
|
|
(fn (buffer-substring-no-properties
|
|
|
|
|
;; Skip-chars: thanks ptype@dra.hmg.gb
|
|
|
|
|
(point) (progn
|
|
|
|
|
(skip-chars-forward "^ "
|
|
|
|
|
(save-excursion (end-of-line)
|
|
|
|
|
(point)))
|
|
|
|
|
(point))))
|
|
|
|
|
(fulln (concat f fn)))
|
|
|
|
|
(if (<= 2 speedbar-verbosity-level)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Speedbar vc check...%s" fulln))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(and (file-writable-p fulln)
|
|
|
|
|
(speedbar-this-file-in-vc f fn))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-vc-check-dir-p (path)
|
|
|
|
|
"Return t if we should bother checking PATH for version control files.
|
|
|
|
|
This can be overloaded to add new types of version control systems."
|
|
|
|
|
(or
|
|
|
|
|
;; Local RCS
|
|
|
|
|
(file-exists-p (concat path "RCS/"))
|
|
|
|
|
;; Local SCCS
|
|
|
|
|
(file-exists-p (concat path "SCCS/"))
|
|
|
|
|
;; Remote SCCS project
|
|
|
|
|
(let ((proj-dir (getenv "PROJECTDIR")))
|
|
|
|
|
(if proj-dir
|
|
|
|
|
(file-exists-p (concat proj-dir "/SCCS"))
|
|
|
|
|
nil))
|
|
|
|
|
;; User extension
|
|
|
|
|
(run-hook-with-args 'speedbar-vc-path-enable-hook path)
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-this-file-in-vc (path name)
|
|
|
|
|
"Check to see if the file in PATH with NAME is in a version control system.
|
|
|
|
|
You can add new VC systems by overriding this function. You can
|
|
|
|
|
optimize this function by overriding it and only doing those checks
|
|
|
|
|
that will occur on your system."
|
|
|
|
|
(or
|
|
|
|
|
;; RCS file name
|
|
|
|
|
(file-exists-p (concat path "RCS/" name ",v"))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(file-exists-p (concat path "RCS/" name))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Local SCCS file name
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(file-exists-p (concat path "SCCS/s." name))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Remote SCCS file name
|
|
|
|
|
(let ((proj-dir (getenv "PROJECTDIR")))
|
|
|
|
|
(if proj-dir
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(file-exists-p (concat proj-dir "/SCCS/s." name))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
nil))
|
|
|
|
|
;; User extension
|
|
|
|
|
(run-hook-with-args 'speedbar-vc-in-control-hook path name)
|
|
|
|
|
))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
;; Objet File scanning
|
|
|
|
|
(defun speedbar-check-objects ()
|
|
|
|
|
"Scan all files in a directory, and for each see if there is an object.
|
|
|
|
|
See `speedbar-check-obj-this-line' and `speedbar-obj-alist' for how
|
|
|
|
|
to add more object types."
|
|
|
|
|
;; Check for to-do to be reset. If reset but no RCS is available
|
|
|
|
|
;; then set to nil (do nothing) otherwise, start at the beginning
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer speedbar-buffer)
|
|
|
|
|
(if (and speedbar-obj-do-check (eq speedbar-obj-to-do-point t))
|
|
|
|
|
(setq speedbar-obj-to-do-point 0))
|
|
|
|
|
(if (numberp speedbar-obj-to-do-point)
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char speedbar-obj-to-do-point)
|
|
|
|
|
(while (and (not (input-pending-p))
|
|
|
|
|
(re-search-forward "^\\([0-9]+\\):\\s-*\\[[+-]\\] "
|
|
|
|
|
nil t))
|
|
|
|
|
(setq speedbar-obj-to-do-point (point))
|
|
|
|
|
(let ((ind (speedbar-check-obj-this-line (match-string 1))))
|
|
|
|
|
(if (not ind) (setq ind " "))
|
|
|
|
|
(speedbar-add-indicator ind (concat
|
|
|
|
|
(car speedbar-obj-indicator)
|
|
|
|
|
"\\|"
|
|
|
|
|
(cdr speedbar-obj-indicator)))))
|
|
|
|
|
(if (input-pending-p)
|
|
|
|
|
;; return that we are incomplete
|
|
|
|
|
nil
|
|
|
|
|
;; we are done, set to-do to nil
|
|
|
|
|
(setq speedbar-obj-to-do-point nil)
|
|
|
|
|
;; and return t
|
|
|
|
|
t))
|
|
|
|
|
t)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-check-obj-this-line (depth)
|
|
|
|
|
"Return t if the file on this line has an associated object.
|
|
|
|
|
Parameter DEPTH is a string with the current depth of indentation of
|
|
|
|
|
the file being checked."
|
|
|
|
|
(let* ((d (string-to-int depth))
|
|
|
|
|
(f (speedbar-line-path d))
|
|
|
|
|
(fn (buffer-substring-no-properties
|
|
|
|
|
;; Skip-chars: thanks ptype@dra.hmg.gb
|
|
|
|
|
(point) (progn
|
|
|
|
|
(skip-chars-forward "^ "
|
|
|
|
|
(save-excursion (end-of-line)
|
|
|
|
|
(point)))
|
|
|
|
|
(point))))
|
|
|
|
|
(fulln (concat f fn)))
|
|
|
|
|
(if (<= 2 speedbar-verbosity-level)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "Speedbar obj check...%s" fulln))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(let ((oa speedbar-obj-alist))
|
|
|
|
|
(while (and oa (not (string-match (car (car oa)) fulln)))
|
|
|
|
|
(setq oa (cdr oa)))
|
|
|
|
|
(if (not (and oa (file-exists-p (concat (file-name-sans-extension fulln)
|
|
|
|
|
(cdr (car oa))))))
|
|
|
|
|
nil
|
|
|
|
|
;; Find out if the object is out of date or not.
|
|
|
|
|
(let ((date1 (nth 5 (file-attributes fulln)))
|
|
|
|
|
(date2 (nth 5 (file-attributes (concat
|
|
|
|
|
(file-name-sans-extension fulln)
|
|
|
|
|
(cdr (car oa)))))))
|
|
|
|
|
(if (or (< (car date1) (car date2))
|
|
|
|
|
(and (= (car date1) (car date2))
|
|
|
|
|
(< (nth 1 date1) (nth 1 date2))))
|
|
|
|
|
(car speedbar-obj-indicator)
|
|
|
|
|
(cdr speedbar-obj-indicator)))))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
;;; Clicking Activity
|
|
|
|
|
;;
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defun speedbar-mouse-set-point (e)
|
|
|
|
|
"Set POINT based on event E.
|
|
|
|
|
Handle clicking on images in XEmacs."
|
|
|
|
|
(if (and (fboundp 'event-over-glyph-p) (event-over-glyph-p e))
|
|
|
|
|
;; We are in XEmacs, and clicked on a picture
|
|
|
|
|
(let ((ext (event-glyph-extent e)))
|
|
|
|
|
;; This position is back inside the extent where the
|
|
|
|
|
;; junk we pushed into the property list lives.
|
|
|
|
|
(if (extent-end-position ext)
|
|
|
|
|
(goto-char (1- (extent-end-position ext)))
|
|
|
|
|
(mouse-set-point e)))
|
|
|
|
|
;; We are not in XEmacs, OR we didn't click on a picture.
|
|
|
|
|
(mouse-set-point e)))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-quick-mouse (e)
|
|
|
|
|
"Since mouse events are strange, this will keep the mouse nicely positioned.
|
|
|
|
|
This should be bound to mouse event E."
|
|
|
|
|
(interactive "e")
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-mouse-set-point e)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-position-cursor-on-line)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(defun speedbar-position-cursor-on-line ()
|
|
|
|
|
"Position the cursor on a line."
|
|
|
|
|
(let ((oldpos (point)))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(if (looking-at "[0-9]+:\\s-*..?.? ")
|
|
|
|
|
(goto-char (1- (match-end 0)))
|
|
|
|
|
(goto-char oldpos))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-power-click (e)
|
|
|
|
|
"Activate any speedbar button as a power click.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
A power click will dispose of cached data (if available) or bring a buffer
|
|
|
|
|
up into a different window.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
This should be bound to mouse event E."
|
|
|
|
|
(interactive "e")
|
|
|
|
|
(let ((speedbar-power-click t))
|
|
|
|
|
(speedbar-click e)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-click (e)
|
|
|
|
|
"Activate any speedbar buttons where the mouse is clicked.
|
|
|
|
|
This must be bound to a mouse event. A button is any location of text
|
|
|
|
|
with a mouse face that has a text property called `speedbar-function'.
|
|
|
|
|
This should be bound to mouse event E."
|
|
|
|
|
(interactive "e")
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-mouse-set-point e)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-do-function-pointer)
|
|
|
|
|
(speedbar-quick-mouse e))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-double-click (e)
|
|
|
|
|
"Activate any speedbar buttons where the mouse is clicked.
|
|
|
|
|
This must be bound to a mouse event. A button is any location of text
|
|
|
|
|
with a mouse face that has a text property called `speedbar-function'.
|
|
|
|
|
This should be bound to mouse event E."
|
|
|
|
|
(interactive "e")
|
|
|
|
|
;; Emacs only. XEmacs handles this via `mouse-track-click-hook'.
|
|
|
|
|
(cond ((eq (car e) 'down-mouse-1)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-mouse-set-point e))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
((eq (car e) 'mouse-1)
|
|
|
|
|
(speedbar-quick-mouse e))
|
|
|
|
|
((or (eq (car e) 'double-down-mouse-1)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(eq (car e) 'triple-down-mouse-1))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-mouse-set-point e)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-do-function-pointer)
|
|
|
|
|
(speedbar-quick-mouse e))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-do-function-pointer ()
|
|
|
|
|
"Look under the cursor and examine the text properties.
|
|
|
|
|
From this extract the file/tag name, token, indentation level and call
|
2002-07-10 08:21:49 +00:00
|
|
|
|
a function if appropriate."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let* ((fn (get-text-property (point) 'speedbar-function))
|
|
|
|
|
(tok (get-text-property (point) 'speedbar-token))
|
|
|
|
|
;; The 1-,+ is safe because scaning starts AFTER the point
|
|
|
|
|
;; specified. This lets the search include the character the
|
|
|
|
|
;; cursor is on.
|
|
|
|
|
(tp (previous-single-property-change
|
|
|
|
|
(1+ (point)) 'speedbar-function))
|
|
|
|
|
(np (next-single-property-change
|
|
|
|
|
(point) 'speedbar-function))
|
|
|
|
|
(txt (buffer-substring-no-properties (or tp (point-min))
|
|
|
|
|
(or np (point-max))))
|
|
|
|
|
(dent (save-excursion (beginning-of-line)
|
|
|
|
|
(string-to-number
|
|
|
|
|
(if (looking-at "[0-9]+")
|
|
|
|
|
(buffer-substring-no-properties
|
|
|
|
|
(match-beginning 0) (match-end 0))
|
|
|
|
|
"0")))))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
;;(speedbar-message "%S:%S:%S:%s" fn tok txt dent)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(and fn (funcall fn txt tok dent)))
|
|
|
|
|
(speedbar-position-cursor-on-line))
|
|
|
|
|
|
|
|
|
|
;;; Reading info from the speedbar buffer
|
|
|
|
|
;;
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(defun speedbar-line-text (&optional p)
|
|
|
|
|
"Retrieve the text after prefix junk for the current line.
|
|
|
|
|
Optional argument P is where to start the search from."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(if p (goto-char p))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(if (looking-at (concat
|
1999-01-31 04:39:37 +00:00
|
|
|
|
"\\([0-9]+\\): *[[<{][-+?][]>}] \\([^ \n]+\\)\\("
|
1999-01-23 13:23:26 +00:00
|
|
|
|
speedbar-indicator-regex "\\)?"))
|
|
|
|
|
(match-string 2)
|
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-line-token (&optional p)
|
|
|
|
|
"Retrieve the token information after the prefix junk for the current line.
|
|
|
|
|
Optional argument P is where to start the search from."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(if p (goto-char p))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(if (looking-at (concat
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"\\([0-9]+\\): *[[<{]?[-+?=][]>}@()|] \\([^ \n]+\\)\\("
|
1999-01-23 13:23:26 +00:00
|
|
|
|
speedbar-indicator-regex "\\)?"))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (match-beginning 2))
|
|
|
|
|
(get-text-property (point) 'speedbar-token))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
nil)))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-line-file (&optional p)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Retrieve the file or whatever from the line at point P.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
The return value is a string representing the file. If it is a
|
|
|
|
|
directory, then it is the directory name."
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(save-match-data
|
|
|
|
|
(let ((f (speedbar-line-text p)))
|
|
|
|
|
(if f
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let* ((depth (string-to-int (match-string 1)))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(path (speedbar-line-path depth)))
|
2001-02-12 16:33:03 +00:00
|
|
|
|
(if (file-exists-p (concat path f))
|
|
|
|
|
(concat path f)
|
|
|
|
|
nil))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
nil))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-goto-this-file (file)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"If FILE is displayed, go to this line and return t.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
Otherwise do not move and return nil."
|
|
|
|
|
(let ((path (substring (file-name-directory (expand-file-name file))
|
|
|
|
|
(length (expand-file-name default-directory))))
|
|
|
|
|
(dest (point)))
|
|
|
|
|
(save-match-data
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
;; scan all the directories
|
|
|
|
|
(while (and path (not (eq path t)))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "^[/\\]?\\([^/\\]+\\)" path)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((pp (match-string 1 path)))
|
|
|
|
|
(if (save-match-data
|
|
|
|
|
(re-search-forward (concat "> " (regexp-quote pp) "$")
|
|
|
|
|
nil t))
|
|
|
|
|
(setq path (substring path (match-end 1)))
|
|
|
|
|
(setq path nil)))
|
|
|
|
|
(setq path t)))
|
|
|
|
|
;; find the file part
|
|
|
|
|
(if (or (not path) (string= (file-name-nondirectory file) ""))
|
|
|
|
|
;; only had a dir part
|
|
|
|
|
(if path
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-position-cursor-on-line)
|
|
|
|
|
t)
|
|
|
|
|
(goto-char dest) nil)
|
|
|
|
|
;; find the file part
|
|
|
|
|
(let ((nd (file-name-nondirectory file)))
|
|
|
|
|
(if (re-search-forward
|
|
|
|
|
(concat "] \\(" (regexp-quote nd)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"\\)\\(" speedbar-indicator-regex "\\)$")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
nil t)
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-position-cursor-on-line)
|
|
|
|
|
t)
|
|
|
|
|
(goto-char dest)
|
|
|
|
|
nil))))))
|
|
|
|
|
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(defun speedbar-line-path (&optional depth)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Retrieve the pathname associated with the current line.
|
|
|
|
|
This may require traversing backwards from DEPTH and combining the default
|
1999-01-23 13:23:26 +00:00
|
|
|
|
directory with these items. This function is replaceable in
|
2002-07-10 08:21:49 +00:00
|
|
|
|
`speedbar-mode-functions-list' as `speedbar-line-path'."
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(let ((rf (speedbar-fetch-replacement-function 'speedbar-line-path)))
|
|
|
|
|
(if rf (funcall rf depth) default-directory)))
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(defun speedbar-files-line-path (&optional depth)
|
|
|
|
|
"Retrieve the pathname associated with the current line.
|
|
|
|
|
This may require traversing backwards from DEPTH and combining the default
|
1998-04-18 19:28:13 +00:00
|
|
|
|
directory with these items."
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(save-match-data
|
|
|
|
|
(if (not depth)
|
|
|
|
|
(progn
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(looking-at "^\\([0-9]+\\):")
|
|
|
|
|
(setq depth (string-to-int (match-string 1)))))
|
|
|
|
|
(let ((path nil))
|
|
|
|
|
(setq depth (1- depth))
|
|
|
|
|
(while (/= depth -1)
|
|
|
|
|
(if (not (re-search-backward (format "^%d:" depth) nil t))
|
|
|
|
|
(error "Error building path of tag")
|
|
|
|
|
(cond ((looking-at "[0-9]+:\\s-*<->\\s-+\\([^\n]+\\)$")
|
|
|
|
|
(setq path (concat (buffer-substring-no-properties
|
|
|
|
|
(match-beginning 1) (match-end 1))
|
|
|
|
|
"/"
|
|
|
|
|
path)))
|
|
|
|
|
((looking-at "[0-9]+:\\s-*[-]\\s-+\\([^\n]+\\)$")
|
|
|
|
|
;; This is the start of our path.
|
|
|
|
|
(setq path (buffer-substring-no-properties
|
|
|
|
|
(match-beginning 1) (match-end 1))))))
|
|
|
|
|
(setq depth (1- depth)))
|
|
|
|
|
(if (and path
|
|
|
|
|
(string-match (concat speedbar-indicator-regex "$")
|
|
|
|
|
path))
|
|
|
|
|
(setq path (substring path 0 (match-beginning 0))))
|
|
|
|
|
(concat default-directory path)))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-path-line (path)
|
|
|
|
|
"Position the cursor on the line specified by PATH."
|
|
|
|
|
(save-match-data
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if (string-match "[/\\]$" path)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(setq path (substring path 0 (match-beginning 0))))
|
|
|
|
|
(let ((nomatch t) (depth 0)
|
|
|
|
|
(fname (file-name-nondirectory path))
|
|
|
|
|
(pname (file-name-directory path)))
|
|
|
|
|
(if (not (member pname speedbar-shown-directories))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(error "Internal Error: File %s not shown in speedbar" path))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (and nomatch
|
|
|
|
|
(re-search-forward
|
|
|
|
|
(concat "[]>] \\(" (regexp-quote fname)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"\\)\\(" speedbar-indicator-regex "\\)?$")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
nil t))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(looking-at "\\([0-9]+\\):")
|
|
|
|
|
(setq depth (string-to-int (match-string 0))
|
|
|
|
|
nomatch (not (string= pname (speedbar-line-path depth))))
|
|
|
|
|
(end-of-line))
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(not nomatch))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-edit-line ()
|
|
|
|
|
"Edit whatever tag or file is on the current speedbar line."
|
|
|
|
|
(interactive)
|
|
|
|
|
(or (save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; If this fails, then it is a non-standard click, and as such,
|
|
|
|
|
;; perfectly allowed.
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(if (re-search-forward "[]>?}] [^ ]"
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion (end-of-line) (point))
|
|
|
|
|
t)
|
|
|
|
|
(speedbar-do-function-pointer)
|
|
|
|
|
nil))
|
|
|
|
|
(speedbar-do-function-pointer)))
|
|
|
|
|
|
2000-05-15 22:17:24 +00:00
|
|
|
|
(defun speedbar-expand-line (&optional arg)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Expand the line under the cursor.
|
|
|
|
|
With universal argument ARG, flush cached data."
|
|
|
|
|
(interactive "P")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(beginning-of-line)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(let ((speedbar-power-click arg))
|
|
|
|
|
(condition-case nil
|
|
|
|
|
(progn
|
|
|
|
|
(re-search-forward ":\\s-*.\\+. "
|
|
|
|
|
(save-excursion (end-of-line) (point)))
|
|
|
|
|
(forward-char -2)
|
|
|
|
|
(speedbar-do-function-pointer))
|
|
|
|
|
(error (speedbar-position-cursor-on-line)))))
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defun speedbar-flush-expand-line ()
|
|
|
|
|
"Expand the line under the cursor and flush any cached information."
|
|
|
|
|
(interactive)
|
|
|
|
|
(speedbar-expand-line 1))
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(defun speedbar-contract-line ()
|
|
|
|
|
"Contract the line under the cursor."
|
|
|
|
|
(interactive)
|
|
|
|
|
(beginning-of-line)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(condition-case nil
|
|
|
|
|
(progn
|
|
|
|
|
(re-search-forward ":\\s-*.-. "
|
|
|
|
|
(save-excursion (end-of-line) (point)))
|
|
|
|
|
(forward-char -2)
|
|
|
|
|
(speedbar-do-function-pointer))
|
|
|
|
|
(error (speedbar-position-cursor-on-line))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(if speedbar-xemacsp
|
|
|
|
|
(defalias 'speedbar-mouse-event-p 'button-press-event-p)
|
|
|
|
|
(defun speedbar-mouse-event-p (event)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Return t if the event is a mouse related event."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; And Emacs does it this way
|
|
|
|
|
(if (and (listp event)
|
|
|
|
|
(member (event-basic-type event)
|
|
|
|
|
'(mouse-1 mouse-2 mouse-3)))
|
|
|
|
|
t
|
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-maybee-jump-to-attached-frame ()
|
|
|
|
|
"Jump to the attached frame ONLY if this was not a mouse event."
|
|
|
|
|
(if (or (not (speedbar-mouse-event-p last-input-event))
|
|
|
|
|
speedbar-activity-change-focus-flag)
|
|
|
|
|
(progn
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(other-frame 0))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-find-file (text token indent)
|
|
|
|
|
"Speedbar click handler for filenames.
|
|
|
|
|
TEXT, the file will be displayed in the attached frame.
|
|
|
|
|
TOKEN is unused, but required by the click handler. INDENT is the
|
|
|
|
|
current indentation level."
|
|
|
|
|
(let ((cdd (speedbar-line-path indent)))
|
|
|
|
|
(speedbar-find-file-in-frame (concat cdd text))
|
|
|
|
|
(speedbar-stealthy-updates)
|
|
|
|
|
(run-hooks 'speedbar-visiting-file-hook)
|
|
|
|
|
;; Reset the timer with a new timeout when cliking a file
|
|
|
|
|
;; in case the user was navigating directories, we can cancel
|
|
|
|
|
;; that other timer.
|
|
|
|
|
(speedbar-set-timer speedbar-update-speed))
|
|
|
|
|
(speedbar-maybee-jump-to-attached-frame))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-dir-follow (text token indent)
|
|
|
|
|
"Speedbar click handler for directory names.
|
2002-07-10 08:21:49 +00:00
|
|
|
|
Clicking a directory will cause the speedbar to list files in
|
1998-04-18 19:28:13 +00:00
|
|
|
|
the subdirectory TEXT. TOKEN is an unused requirement. The
|
|
|
|
|
subdirectory chosen will be at INDENT level."
|
|
|
|
|
(setq default-directory
|
|
|
|
|
(concat (expand-file-name (concat (speedbar-line-path indent) text))
|
|
|
|
|
"/"))
|
|
|
|
|
;; Because we leave speedbar as the current buffer,
|
|
|
|
|
;; update contents will change directory without
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
;; having to touch the attached frame. Turn off smart expand just
|
|
|
|
|
;; in case.
|
|
|
|
|
(let ((speedbar-smart-directory-expand-flag nil))
|
|
|
|
|
(speedbar-update-contents))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-set-timer speedbar-navigating-speed)
|
|
|
|
|
(setq speedbar-last-selected-file nil)
|
|
|
|
|
(speedbar-stealthy-updates))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-delete-subblock (indent)
|
|
|
|
|
"Delete text from point to indentation level INDENT or greater.
|
|
|
|
|
Handles end-of-sublist smartly."
|
|
|
|
|
(speedbar-with-writable
|
1998-12-19 14:01:53 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line) (forward-char 1)
|
|
|
|
|
(let ((start (point)))
|
|
|
|
|
(while (and (looking-at "^\\([0-9]+\\):")
|
|
|
|
|
(> (string-to-int (match-string 1)) indent)
|
|
|
|
|
(not (eobp)))
|
|
|
|
|
(forward-line 1)
|
|
|
|
|
(beginning-of-line))
|
|
|
|
|
(delete-region start (point))))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-dired (text token indent)
|
|
|
|
|
"Speedbar click handler for directory expand button.
|
|
|
|
|
Clicking this button expands or contracts a directory. TEXT is the
|
|
|
|
|
button clicked which has either a + or -. TOKEN is the directory to be
|
|
|
|
|
expanded. INDENT is the current indentation level."
|
|
|
|
|
(cond ((string-match "+" text) ;we have to expand this dir
|
|
|
|
|
(setq speedbar-shown-directories
|
|
|
|
|
(cons (expand-file-name
|
|
|
|
|
(concat (speedbar-line-path indent) token "/"))
|
|
|
|
|
speedbar-shown-directories))
|
|
|
|
|
(speedbar-change-expand-button-char ?-)
|
|
|
|
|
(speedbar-reset-scanners)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line) (forward-char 1)
|
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(speedbar-default-directory-list
|
|
|
|
|
(concat (speedbar-line-path indent) token "/")
|
|
|
|
|
(1+ indent)))))
|
|
|
|
|
((string-match "-" text) ;we have to contract this node
|
|
|
|
|
(speedbar-reset-scanners)
|
|
|
|
|
(let ((oldl speedbar-shown-directories)
|
|
|
|
|
(newl nil)
|
|
|
|
|
(td (expand-file-name
|
|
|
|
|
(concat (speedbar-line-path indent) token))))
|
|
|
|
|
(while oldl
|
|
|
|
|
(if (not (string-match (concat "^" (regexp-quote td)) (car oldl)))
|
|
|
|
|
(setq newl (cons (car oldl) newl)))
|
|
|
|
|
(setq oldl (cdr oldl)))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(setq speedbar-shown-directories (nreverse newl)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-change-expand-button-char ?+)
|
|
|
|
|
(speedbar-delete-subblock indent)
|
|
|
|
|
)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(t (error "Ooops... not sure what to do")))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-center-buffer-smartly)
|
|
|
|
|
(setq speedbar-last-selected-file nil)
|
|
|
|
|
(save-excursion (speedbar-stealthy-updates)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-directory-buttons-follow (text token indent)
|
|
|
|
|
"Speedbar click handler for default directory buttons.
|
|
|
|
|
TEXT is the button clicked on. TOKEN is the directory to follow.
|
|
|
|
|
INDENT is the current indentation level and is unused."
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(if (string-match "^[A-z]:$" token)
|
2002-12-07 21:30:22 +00:00
|
|
|
|
(setq default-directory (concat token "/"))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(setq default-directory token))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; Because we leave speedbar as the current buffer,
|
|
|
|
|
;; update contents will change directory without
|
|
|
|
|
;; having to touch the attached frame.
|
|
|
|
|
(speedbar-update-contents)
|
|
|
|
|
(speedbar-set-timer speedbar-navigating-speed))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-tag-file (text token indent)
|
|
|
|
|
"The cursor is on a selected line. Expand the tags in the specified file.
|
|
|
|
|
The parameter TEXT and TOKEN are required, where TEXT is the button
|
|
|
|
|
clicked, and TOKEN is the file to expand. INDENT is the current
|
|
|
|
|
indentation level."
|
|
|
|
|
(cond ((string-match "+" text) ;we have to expand this file
|
|
|
|
|
(let* ((fn (expand-file-name (concat (speedbar-line-path indent)
|
|
|
|
|
token)))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(mode nil)
|
|
|
|
|
(lst (speedbar-fetch-dynamic-tags fn)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; if no list, then remove expando button
|
|
|
|
|
(if (not lst)
|
|
|
|
|
(speedbar-change-expand-button-char ??)
|
|
|
|
|
(speedbar-change-expand-button-char ?-)
|
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line) (forward-char 1)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(funcall (car lst) indent (cdr lst)))))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
((string-match "-" text) ;we have to contract this node
|
|
|
|
|
(speedbar-change-expand-button-char ?+)
|
|
|
|
|
(speedbar-delete-subblock indent))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(t (error "Ooops... not sure what to do")))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-center-buffer-smartly))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-tag-find (text token indent)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"For the tag TEXT in a file TOKEN, go to that position.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
INDENT is the current indentation level."
|
|
|
|
|
(let ((file (speedbar-line-path indent)))
|
|
|
|
|
(speedbar-find-file-in-frame file)
|
|
|
|
|
(save-excursion (speedbar-stealthy-updates))
|
|
|
|
|
;; Reset the timer with a new timeout when cliking a file
|
|
|
|
|
;; in case the user was navigating directories, we can cancel
|
|
|
|
|
;; that other timer.
|
|
|
|
|
(speedbar-set-timer speedbar-update-speed)
|
|
|
|
|
(goto-char token)
|
|
|
|
|
(run-hooks 'speedbar-visiting-tag-hook)
|
|
|
|
|
;;(recenter)
|
|
|
|
|
(speedbar-maybee-jump-to-attached-frame)
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-tag-expand (text token indent)
|
|
|
|
|
"Expand a tag sublist. Imenu will return sub-lists of specialized tag types.
|
|
|
|
|
Etags does not support this feature. TEXT will be the button
|
|
|
|
|
string. TOKEN will be the list, and INDENT is the current indentation
|
|
|
|
|
level."
|
|
|
|
|
(cond ((string-match "+" text) ;we have to expand this file
|
|
|
|
|
(speedbar-change-expand-button-char ?-)
|
|
|
|
|
(speedbar-with-writable
|
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line) (forward-char 1)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(speedbar-insert-generic-list indent token 'speedbar-tag-expand
|
1998-04-18 19:28:13 +00:00
|
|
|
|
'speedbar-tag-find))))
|
|
|
|
|
((string-match "-" text) ;we have to contract this node
|
|
|
|
|
(speedbar-change-expand-button-char ?+)
|
|
|
|
|
(speedbar-delete-subblock indent))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(t (error "Ooops... not sure what to do")))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(speedbar-center-buffer-smartly))
|
|
|
|
|
|
|
|
|
|
;;; Loading files into the attached frame.
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-find-file-in-frame (file)
|
|
|
|
|
"This will load FILE into the speedbar attached frame.
|
|
|
|
|
If the file is being displayed in a different frame already, then raise that
|
|
|
|
|
frame instead."
|
|
|
|
|
(let* ((buff (find-file-noselect file))
|
|
|
|
|
(bwin (get-buffer-window buff 0)))
|
|
|
|
|
(if bwin
|
|
|
|
|
(progn
|
|
|
|
|
(select-window bwin)
|
|
|
|
|
(raise-frame (window-frame bwin)))
|
|
|
|
|
(if speedbar-power-click
|
|
|
|
|
(let ((pop-up-frames t)) (select-window (display-buffer buff)))
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(switch-to-buffer buff))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
;;; Centering Utility
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-center-buffer-smartly ()
|
|
|
|
|
"Recenter a speedbar buffer so the current indentation level is all visible.
|
|
|
|
|
This assumes that the cursor is on a file, or tag of a file which the user is
|
|
|
|
|
interested in."
|
|
|
|
|
(if (<= (count-lines (point-min) (point-max))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(1- (window-height (selected-window))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; whole buffer fits
|
|
|
|
|
(let ((cp (point)))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(recenter 0)
|
|
|
|
|
(goto-char cp))
|
|
|
|
|
;; too big
|
|
|
|
|
(let (depth start end exp p)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(setq depth (if (looking-at "[0-9]+")
|
|
|
|
|
(string-to-int (buffer-substring-no-properties
|
|
|
|
|
(match-beginning 0) (match-end 0)))
|
|
|
|
|
0))
|
|
|
|
|
(setq exp (format "^%d:\\s-*[[{<]\\([?+-]\\)[]>}]" depth)))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(if (re-search-backward exp nil t)
|
|
|
|
|
(setq start (point))
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(setq start (point-min)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion ;Not sure about this part.
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(setq p (point))
|
|
|
|
|
(while (and (not (re-search-forward exp nil t))
|
|
|
|
|
(>= depth 0))
|
|
|
|
|
(setq depth (1- depth))
|
|
|
|
|
(setq exp (format "^%d:\\s-*[[{<]\\([?+-]\\)[]>}]" depth)))
|
|
|
|
|
(if (/= (point) p)
|
|
|
|
|
(setq end (point))
|
|
|
|
|
(setq end (point-max)))))
|
|
|
|
|
;; Now work out the details of centering
|
|
|
|
|
(let ((nl (count-lines start end))
|
|
|
|
|
(cp (point)))
|
|
|
|
|
(if (> nl (window-height (selected-window)))
|
|
|
|
|
;; We can't fit it all, so just center on cursor
|
|
|
|
|
(progn (goto-char start)
|
|
|
|
|
(recenter 1))
|
|
|
|
|
;; we can fit everything on the screen, but...
|
|
|
|
|
(if (and (pos-visible-in-window-p start (selected-window))
|
|
|
|
|
(pos-visible-in-window-p end (selected-window)))
|
|
|
|
|
;; we are all set!
|
|
|
|
|
nil
|
|
|
|
|
;; we need to do something...
|
|
|
|
|
(goto-char start)
|
|
|
|
|
(let ((newcent (/ (- (window-height (selected-window)) nl) 2))
|
|
|
|
|
(lte (count-lines start (point-max))))
|
|
|
|
|
(if (and (< (+ newcent lte) (window-height (selected-window)))
|
|
|
|
|
(> (- (window-height (selected-window)) lte 1)
|
|
|
|
|
newcent))
|
|
|
|
|
(setq newcent (- (window-height (selected-window))
|
|
|
|
|
lte 1)))
|
|
|
|
|
(recenter newcent))))
|
|
|
|
|
(goto-char cp)))))
|
|
|
|
|
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
;;; Tag Management -- List of expanders:
|
|
|
|
|
;;
|
|
|
|
|
(defun speedbar-fetch-dynamic-tags (file)
|
|
|
|
|
"Return a list of tags generated dynamically from FILE.
|
|
|
|
|
This uses the entries in `speedbar-dynamic-tags-function-list'
|
|
|
|
|
to find the proper tags. It is up to each of those individual
|
|
|
|
|
functions to do caching and flushing if appropriate."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(set-buffer (find-file-noselect file))
|
|
|
|
|
;; If there is a buffer-local value of
|
|
|
|
|
;; speedbar-dynamic-tags-function-list, it will now be available.
|
|
|
|
|
(let ((dtf speedbar-dynamic-tags-function-list)
|
|
|
|
|
(ret t))
|
|
|
|
|
(while (and (eq ret t) dtf)
|
|
|
|
|
(setq ret
|
|
|
|
|
(if (fboundp (car (car dtf)))
|
|
|
|
|
(funcall (car (car dtf)) (buffer-file-name))
|
|
|
|
|
t))
|
|
|
|
|
(if (eq ret t)
|
|
|
|
|
(setq dtf (cdr dtf))))
|
|
|
|
|
(if (eq ret t)
|
|
|
|
|
;; No valid tag list, return nil
|
|
|
|
|
nil
|
|
|
|
|
;; We have some tags. Return the list with the insert fn
|
|
|
|
|
;; prepended
|
|
|
|
|
(cons (cdr (car dtf)) ret)))))
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;; Tag Management -- Imenu
|
|
|
|
|
;;
|
|
|
|
|
(if (not speedbar-use-imenu-flag)
|
|
|
|
|
|
|
|
|
|
nil
|
|
|
|
|
|
|
|
|
|
(eval-when-compile (if (locate-library "imenu") (require 'imenu)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-fetch-dynamic-imenu (file)
|
|
|
|
|
"Load FILE into a buffer, and generate tags using Imenu.
|
|
|
|
|
Returns the tag list, or t for an error."
|
|
|
|
|
;; Load this AND compile it in
|
|
|
|
|
(require 'imenu)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if speedbar-power-click (setq imenu--index-alist nil))
|
|
|
|
|
(condition-case nil
|
|
|
|
|
(let ((index-alist (imenu--make-index-alist t)))
|
|
|
|
|
(if speedbar-sort-tags
|
|
|
|
|
(sort (copy-alist index-alist)
|
|
|
|
|
(lambda (a b) (string< (car a) (car b))))
|
|
|
|
|
index-alist))
|
|
|
|
|
(error t)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
;;; Tag Management -- etags (old XEmacs compatibility part)
|
|
|
|
|
;;
|
|
|
|
|
(defvar speedbar-fetch-etags-parse-list
|
|
|
|
|
'(;; Note that java has the same parse-group as c
|
|
|
|
|
("\\.\\([cChH]\\|c\\+\\+\\|cpp\\|cc\\|hh\\|java\\)\\'" .
|
|
|
|
|
speedbar-parse-c-or-c++tag)
|
|
|
|
|
("^\\.emacs$\\|.\\(el\\|l\\|lsp\\)\\'" .
|
|
|
|
|
"def[^i]+\\s-+\\(\\(\\w\\|[-_]\\)+\\)\\s-*\C-?")
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
; ("\\.\\([fF]\\|for\\|FOR\\|77\\|90\\)\\'" .
|
|
|
|
|
; speedbar-parse-fortran77-tag)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
("\\.tex\\'" . speedbar-parse-tex-string)
|
|
|
|
|
("\\.p\\'" .
|
|
|
|
|
"\\(\\(FUNCTION\\|function\\|PROCEDURE\\|procedure\\)\\s-+\\([a-zA-Z0-9_.:]+\\)\\)\\s-*(?^?")
|
|
|
|
|
)
|
|
|
|
|
"Associations of file extensions and expressions for extracting tags.
|
|
|
|
|
To add a new file type, you would want to add a new association to the
|
|
|
|
|
list, where the car is the file match, and the cdr is the way to
|
|
|
|
|
extract an element from the tags output. If the output is complex,
|
|
|
|
|
use a function symbol instead of regexp. The function should expect
|
|
|
|
|
to be at the beginning of a line in the etags buffer.
|
|
|
|
|
|
|
|
|
|
This variable is ignored if `speedbar-use-imenu-flag' is non-nil.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-fetch-etags-command "etags"
|
|
|
|
|
"*Command used to create an etags file.
|
|
|
|
|
|
2002-07-10 08:21:49 +00:00
|
|
|
|
This variable is ignored if `speedbar-use-imenu-flag' is t.")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defvar speedbar-fetch-etags-arguments '("-D" "-I" "-o" "-")
|
|
|
|
|
"*List of arguments to use with `speedbar-fetch-etags-command'.
|
|
|
|
|
This creates an etags output buffer. Use `speedbar-toggle-etags' to
|
|
|
|
|
modify this list conveniently.
|
|
|
|
|
|
2002-07-10 08:21:49 +00:00
|
|
|
|
This variable is ignored if `speedbar-use-imenu-flag' is t.")
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-toggle-etags (flag)
|
|
|
|
|
"Toggle FLAG in `speedbar-fetch-etags-arguments'.
|
|
|
|
|
FLAG then becomes a member of etags command line arguments. If flag
|
|
|
|
|
is \"sort\", then toggle the value of `speedbar-sort-tags'. If its
|
|
|
|
|
value is \"show\" then toggle the value of
|
|
|
|
|
`speedbar-show-unknown-files'.
|
|
|
|
|
|
|
|
|
|
This function is a convenience function for XEmacs menu created by
|
2002-07-10 08:21:49 +00:00
|
|
|
|
Farzin Guilak <farzin@protocol.com>."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(interactive)
|
|
|
|
|
(cond
|
|
|
|
|
((equal flag "sort")
|
|
|
|
|
(setq speedbar-sort-tags (not speedbar-sort-tags)))
|
|
|
|
|
((equal flag "show")
|
|
|
|
|
(setq speedbar-show-unknown-files (not speedbar-show-unknown-files)))
|
|
|
|
|
((or (equal flag "-C")
|
|
|
|
|
(equal flag "-S")
|
|
|
|
|
(equal flag "-D"))
|
|
|
|
|
(if (member flag speedbar-fetch-etags-arguments)
|
|
|
|
|
(setq speedbar-fetch-etags-arguments
|
|
|
|
|
(delete flag speedbar-fetch-etags-arguments))
|
|
|
|
|
(add-to-list 'speedbar-fetch-etags-arguments flag)))
|
|
|
|
|
(t nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-fetch-dynamic-etags (file)
|
|
|
|
|
"For FILE, run etags and create a list of symbols extracted.
|
|
|
|
|
Each symbol will be associated with its line position in FILE."
|
|
|
|
|
(let ((newlist nil))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(save-excursion
|
|
|
|
|
(if (get-buffer "*etags tmp*")
|
|
|
|
|
(kill-buffer "*etags tmp*")) ;kill to clean it up
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(if (<= 1 speedbar-verbosity-level)
|
|
|
|
|
(speedbar-message "Fetching etags..."))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(set-buffer (get-buffer-create "*etags tmp*"))
|
|
|
|
|
(apply 'call-process speedbar-fetch-etags-command nil
|
|
|
|
|
(current-buffer) nil
|
|
|
|
|
(append speedbar-fetch-etags-arguments (list file)))
|
|
|
|
|
(goto-char (point-min))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(if (<= 1 speedbar-verbosity-level)
|
|
|
|
|
(speedbar-message "Fetching etags..."))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let ((expr
|
|
|
|
|
(let ((exprlst speedbar-fetch-etags-parse-list)
|
|
|
|
|
(ans nil))
|
|
|
|
|
(while (and (not ans) exprlst)
|
|
|
|
|
(if (string-match (car (car exprlst)) file)
|
|
|
|
|
(setq ans (car exprlst)))
|
|
|
|
|
(setq exprlst (cdr exprlst)))
|
|
|
|
|
(cdr ans))))
|
|
|
|
|
(if expr
|
|
|
|
|
(let (tnl)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(set-buffer (get-buffer-create "*etags tmp*"))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(while (not (save-excursion (end-of-line) (eobp)))
|
|
|
|
|
(save-excursion
|
|
|
|
|
(setq tnl (speedbar-extract-one-symbol expr)))
|
|
|
|
|
(if tnl (setq newlist (cons tnl newlist)))
|
|
|
|
|
(forward-line 1)))
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message
|
|
|
|
|
"Sorry, no support for a file of that extension"))))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
)
|
|
|
|
|
(if speedbar-sort-tags
|
|
|
|
|
(sort newlist (lambda (a b) (string< (car a) (car b))))
|
|
|
|
|
(reverse newlist))))
|
|
|
|
|
|
|
|
|
|
;; This bit donated by Farzin Guilak <farzin@protocol.com> but I'm not
|
|
|
|
|
;; sure it's needed with the different sorting method.
|
|
|
|
|
;;
|
|
|
|
|
;(defun speedbar-clean-etags()
|
|
|
|
|
; "Removes spaces before the ^? character, and removes `#define',
|
|
|
|
|
;return types, etc. preceding tags. This ensures that the sort operation
|
|
|
|
|
;works on the tags, not the return types."
|
|
|
|
|
; (save-excursion
|
|
|
|
|
; (goto-char (point-min))
|
|
|
|
|
; (while
|
|
|
|
|
; (re-search-forward "(?[ \t](?\C-?" nil t)
|
|
|
|
|
; (replace-match "\C-?" nil nil))
|
|
|
|
|
; (goto-char (point-min))
|
|
|
|
|
; (while
|
|
|
|
|
; (re-search-forward "\\(.*[ \t]+\\)\\([^ \t\n]+.*\C-?\\)" nil t)
|
|
|
|
|
; (delete-region (match-beginning 1) (match-end 1)))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-extract-one-symbol (expr)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
"At point, return nil, or one alist in the form: (SYMBOL . POSITION)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
The line should contain output from etags. Parse the output using the
|
2002-07-10 08:21:49 +00:00
|
|
|
|
regular expression EXPR."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(let* ((sym (if (stringp expr)
|
|
|
|
|
(if (save-excursion
|
|
|
|
|
(re-search-forward expr (save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(point)) t))
|
|
|
|
|
(buffer-substring-no-properties (match-beginning 1)
|
|
|
|
|
(match-end 1)))
|
|
|
|
|
(funcall expr)))
|
|
|
|
|
(pos (let ((j (re-search-forward "[\C-?\C-a]\\([0-9]+\\),\\([0-9]+\\)"
|
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(point))
|
|
|
|
|
t)))
|
|
|
|
|
(if (and j sym)
|
|
|
|
|
(1+ (string-to-int (buffer-substring-no-properties
|
|
|
|
|
(match-beginning 2)
|
|
|
|
|
(match-end 2))))
|
|
|
|
|
0))))
|
|
|
|
|
(if (/= pos 0)
|
|
|
|
|
(cons sym pos)
|
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-parse-c-or-c++tag ()
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Parse a C or C++ tag, which tends to be a little complex."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(let ((bound (save-excursion (end-of-line) (point))))
|
|
|
|
|
(cond ((re-search-forward "\C-?\\([^\C-a]+\\)\C-a" bound t)
|
|
|
|
|
(buffer-substring-no-properties (match-beginning 1)
|
|
|
|
|
(match-end 1)))
|
|
|
|
|
((re-search-forward "\\<\\([^ \t]+\\)\\s-+new(" bound t)
|
|
|
|
|
(buffer-substring-no-properties (match-beginning 1)
|
|
|
|
|
(match-end 1)))
|
|
|
|
|
((re-search-forward "\\<\\([^ \t(]+\\)\\s-*(\C-?" bound t)
|
|
|
|
|
(buffer-substring-no-properties (match-beginning 1)
|
|
|
|
|
(match-end 1)))
|
|
|
|
|
(t nil))
|
|
|
|
|
)))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-parse-tex-string ()
|
|
|
|
|
"Parse a Tex string. Only find data which is relevant."
|
|
|
|
|
(save-excursion
|
|
|
|
|
(let ((bound (save-excursion (end-of-line) (point))))
|
|
|
|
|
(cond ((re-search-forward "\\(\\(sub\\)*section\\|chapter\\|cite\\)\\s-*{[^\C-?}]*}?" bound t)
|
|
|
|
|
(buffer-substring-no-properties (match-beginning 0)
|
|
|
|
|
(match-end 0)))
|
|
|
|
|
(t nil)))))
|
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
;;; BUFFER DISPLAY mode.
|
|
|
|
|
;;
|
|
|
|
|
(defvar speedbar-buffers-key-map nil
|
|
|
|
|
"Keymap used when in the buffers display mode.")
|
|
|
|
|
|
|
|
|
|
(if speedbar-buffers-key-map
|
|
|
|
|
nil
|
|
|
|
|
(setq speedbar-buffers-key-map (speedbar-make-specialized-keymap))
|
|
|
|
|
|
|
|
|
|
;; Basic tree features
|
|
|
|
|
(define-key speedbar-buffers-key-map "e" 'speedbar-edit-line)
|
|
|
|
|
(define-key speedbar-buffers-key-map "\C-m" 'speedbar-edit-line)
|
|
|
|
|
(define-key speedbar-buffers-key-map "+" 'speedbar-expand-line)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(define-key speedbar-buffers-key-map "=" 'speedbar-expand-line)
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(define-key speedbar-buffers-key-map "-" 'speedbar-contract-line)
|
|
|
|
|
|
|
|
|
|
;; Buffer specific keybindings
|
|
|
|
|
(define-key speedbar-buffers-key-map "k" 'speedbar-buffer-kill-buffer)
|
|
|
|
|
(define-key speedbar-buffers-key-map "r" 'speedbar-buffer-revert-buffer)
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-buffer-easymenu-definition
|
|
|
|
|
'(["Jump to buffer" speedbar-edit-line t]
|
|
|
|
|
["Expand File Tags" speedbar-expand-line
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.\\+. "))]
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
["Flush Cache & Expand" speedbar-flush-expand-line
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.\\+. "))]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
["Contract File Tags" speedbar-contract-line
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.-. "))]
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
["Kill Buffer" speedbar-buffer-kill-buffer
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.-. "))]
|
|
|
|
|
["Revert Buffer" speedbar-buffer-revert-buffer
|
|
|
|
|
(save-excursion (beginning-of-line)
|
|
|
|
|
(looking-at "[0-9]+: *.-. "))]
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
)
|
|
|
|
|
"Menu item elements shown when displaying a buffer list.")
|
|
|
|
|
|
|
|
|
|
(defun speedbar-buffer-buttons (directory zero)
|
|
|
|
|
"Create speedbar buttons based on the buffers currently loaded.
|
|
|
|
|
DIRECTORY is the path to the currently active buffer, and ZERO is 0."
|
|
|
|
|
(speedbar-buffer-buttons-engine nil))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-buffer-buttons-temp (directory zero)
|
|
|
|
|
"Create speedbar buttons based on the buffers currently loaded.
|
|
|
|
|
DIRECTORY is the path to the currently active buffer, and ZERO is 0."
|
|
|
|
|
(speedbar-buffer-buttons-engine t))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-buffer-buttons-engine (temp)
|
|
|
|
|
"Create speedbar buffer buttons.
|
|
|
|
|
If TEMP is non-nil, then clicking on a buffer restores the previous display."
|
|
|
|
|
(insert "Active Buffers:\n")
|
|
|
|
|
(let ((bl (buffer-list)))
|
|
|
|
|
(while bl
|
|
|
|
|
(if (string-match "^[ *]" (buffer-name (car bl)))
|
|
|
|
|
nil
|
|
|
|
|
(let* ((known (string-match speedbar-file-regexp
|
|
|
|
|
(buffer-name (car bl))))
|
|
|
|
|
(expchar (if known ?+ ??))
|
|
|
|
|
(fn (if known 'speedbar-tag-file nil))
|
|
|
|
|
(fname (save-excursion (set-buffer (car bl))
|
|
|
|
|
(buffer-file-name))))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(speedbar-make-tag-line 'bracket expchar fn
|
|
|
|
|
(if fname (file-name-nondirectory fname))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(buffer-name (car bl))
|
|
|
|
|
'speedbar-buffer-click temp
|
|
|
|
|
'speedbar-file-face 0)))
|
|
|
|
|
(setq bl (cdr bl)))
|
|
|
|
|
(setq bl (buffer-list))
|
|
|
|
|
(insert "Scratch Buffers:\n")
|
|
|
|
|
(while bl
|
|
|
|
|
(if (not (string-match "^\\*" (buffer-name (car bl))))
|
|
|
|
|
nil
|
|
|
|
|
(if (eq (car bl) speedbar-buffer)
|
|
|
|
|
nil
|
|
|
|
|
(speedbar-make-tag-line 'bracket ?? nil nil
|
|
|
|
|
(buffer-name (car bl))
|
|
|
|
|
'speedbar-buffer-click temp
|
|
|
|
|
'speedbar-file-face 0)))
|
|
|
|
|
(setq bl (cdr bl)))
|
|
|
|
|
(setq bl (buffer-list))
|
|
|
|
|
(insert "Hidden Buffers:\n")
|
|
|
|
|
(while bl
|
|
|
|
|
(if (not (string-match "^ " (buffer-name (car bl))))
|
|
|
|
|
nil
|
|
|
|
|
(if (eq (car bl) speedbar-buffer)
|
|
|
|
|
nil
|
|
|
|
|
(speedbar-make-tag-line 'bracket ?? nil nil
|
|
|
|
|
(buffer-name (car bl))
|
|
|
|
|
'speedbar-buffer-click temp
|
|
|
|
|
'speedbar-file-face 0)))
|
|
|
|
|
(setq bl (cdr bl)))))
|
|
|
|
|
|
1999-01-23 13:23:26 +00:00
|
|
|
|
(defun speedbar-buffers-item-info ()
|
|
|
|
|
"Display information about the current buffer on the current line."
|
|
|
|
|
(or (speedbar-item-info-tag-helper)
|
|
|
|
|
(let* ((item (speedbar-line-text))
|
|
|
|
|
(buffer (if item (get-buffer item) nil)))
|
|
|
|
|
(and buffer
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-message "%s%s %S %d %s"
|
|
|
|
|
(if (buffer-modified-p buffer) "* " "")
|
|
|
|
|
item
|
|
|
|
|
(save-excursion (set-buffer buffer) major-mode)
|
|
|
|
|
(save-excursion (set-buffer buffer)
|
|
|
|
|
(buffer-size))
|
|
|
|
|
(or (buffer-file-name buffer) "<No file>"))))))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-buffers-line-path (&optional depth)
|
|
|
|
|
"Fetch the full path to the file (buffer) specified on the current line.
|
|
|
|
|
Optional argument DEPTH specifies the current depth of the back search."
|
2001-02-12 16:33:03 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(let ((start (point)))
|
|
|
|
|
;; Buffers are always at level 0
|
|
|
|
|
(if (not (re-search-backward "^0:" nil t))
|
|
|
|
|
nil
|
|
|
|
|
(let* ((bn (speedbar-line-text))
|
|
|
|
|
(buffer (if bn (get-buffer bn))))
|
|
|
|
|
(if buffer
|
|
|
|
|
(if (save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(eq start (point)))
|
|
|
|
|
(file-name-directory (buffer-file-name buffer))
|
|
|
|
|
(buffer-file-name buffer))))))))
|
1999-01-23 13:23:26 +00:00
|
|
|
|
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(defun speedbar-buffer-click (text token indent)
|
|
|
|
|
"When the users clicks on a buffer-button in speedbar.
|
|
|
|
|
TEXT is the buffer's name, TOKEN and INDENT are unused."
|
|
|
|
|
(if speedbar-power-click
|
|
|
|
|
(let ((pop-up-frames t)) (select-window (display-buffer text)))
|
|
|
|
|
(select-frame speedbar-attached-frame)
|
|
|
|
|
(switch-to-buffer text)
|
|
|
|
|
(if token (speedbar-change-initial-expansion-list
|
|
|
|
|
speedbar-previously-used-expansion-list-name))))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-buffer-kill-buffer ()
|
|
|
|
|
"Kill the buffer the cursor is on in the speedbar buffer."
|
|
|
|
|
(interactive)
|
|
|
|
|
(or (save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; If this fails, then it is a non-standard click, and as such,
|
|
|
|
|
;; perfectly allowed.
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(if (re-search-forward "[]>?}] [^ ]"
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(save-excursion (end-of-line) (point))
|
|
|
|
|
t)
|
|
|
|
|
(let ((text (progn
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
(buffer-substring (point) (save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(point))))))
|
|
|
|
|
(if (and (get-buffer text)
|
Added commentary about stealthy functions.
(speedbar-message) new function.
(speedbar-y-or-n-p): New function
(speedbar-with-attached-buffer) Moved macro before reference.
Now uses `save-selected-window'.
(speedbar-mouse-hscroll, speedbar-track-mouse, speedbar-refresh,
speedbar-generic-item-info, speedbar-item-info-file-helper,
speedbar-item-delete, speedbar-insert-generic-list,
speedbar-timer-fn, speedbar-check-vc-this-line,
speedbar-check-obj-this-line, speedbar-fetch-dynaic-etags,
speedbar-buffers-item-info) Use speedbar-message.
(speedbar-item-info) Limit `message-log-max'.
(speedbar-item-load, speedbar-item-copy, speedbar-item-rename,
speedbar-item-delete, speedbar-item-object-delete,
speedbar-buffer-kill-buffer) Use speedbar-y-or-n-p.
1999-03-13 04:52:25 +00:00
|
|
|
|
(speedbar-y-or-n-p (format "Kill buffer %s? " text)))
|
1998-08-03 17:47:39 +00:00
|
|
|
|
(kill-buffer text))
|
|
|
|
|
(speedbar-refresh))))))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
|
|
|
|
(defun speedbar-buffer-revert-buffer ()
|
|
|
|
|
"Revert the buffer the cursor is on in the speedbar buffer."
|
|
|
|
|
(interactive)
|
|
|
|
|
(save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; If this fails, then it is a non-standard click, and as such,
|
|
|
|
|
;; perfectly allowed
|
1998-08-08 21:20:51 +00:00
|
|
|
|
(if (re-search-forward "[]>?}] [^ ]"
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
(save-excursion (end-of-line) (point))
|
|
|
|
|
t)
|
|
|
|
|
(let ((text (progn
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
(buffer-substring (point) (save-excursion
|
|
|
|
|
(end-of-line)
|
|
|
|
|
(point))))))
|
|
|
|
|
(if (get-buffer text)
|
|
|
|
|
(progn
|
|
|
|
|
(set-buffer text)
|
|
|
|
|
(revert-buffer t)))))))
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
|
|
|
|
|
;;; Useful hook values and such.
|
|
|
|
|
;;
|
|
|
|
|
(defvar speedbar-highlight-one-tag-line nil
|
|
|
|
|
"Overlay used for highlighting the most recently jumped to tag line.")
|
|
|
|
|
|
|
|
|
|
(defun speedbar-highlight-one-tag-line ()
|
|
|
|
|
"Highlight the current line, unhighlighting a previously jumped to line."
|
|
|
|
|
(speedbar-unhighlight-one-tag-line)
|
|
|
|
|
(setq speedbar-highlight-one-tag-line
|
|
|
|
|
(speedbar-make-overlay (save-excursion (beginning-of-line) (point))
|
|
|
|
|
(save-excursion (end-of-line)
|
|
|
|
|
(forward-char 1)
|
|
|
|
|
(point))))
|
|
|
|
|
(speedbar-overlay-put speedbar-highlight-one-tag-line 'face
|
|
|
|
|
'speedbar-highlight-face)
|
|
|
|
|
(add-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(defun speedbar-unhighlight-one-tag-line ()
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Unhighlight the currently highlighted line."
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(if speedbar-highlight-one-tag-line
|
|
|
|
|
(progn
|
|
|
|
|
(speedbar-delete-overlay speedbar-highlight-one-tag-line)
|
|
|
|
|
(setq speedbar-highlight-one-tag-line nil)))
|
|
|
|
|
(remove-hook 'pre-command-hook 'speedbar-unhighlight-one-tag-line))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-recenter-to-top ()
|
|
|
|
|
"Recenter the current buffer so POINT is on the top of the window."
|
|
|
|
|
(recenter 1))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-recenter ()
|
|
|
|
|
"Recenter the current buffer so POINT is in the center of the window."
|
2000-05-15 22:17:24 +00:00
|
|
|
|
(recenter (/ (window-height (selected-window)) 2)))
|
More commentary.
(speedbar-xemacsp) Moved definition.
(speedbar-initial-expansion-mode-list) was
`speedbar-initial-expansion-list' and now has multiple modes.
(speedbar-stealthy-function-list) now has mode labels.
(speedbar-initial-expansion-list-name,
speedbar-previously-used-expansion-list-name,
speedbar-special-mode-key-map, speedbar-track-mouse-flag,
speedbar-tag-hierarchy-method, speedbar-tag-split-minimum-length,
speedbar-tag-regroup-maximum-length,
speedbar-hide-button-brackets-flag) New variables
(speedbar-special-mode-expansion-list) updated documentation.
(speedbar-navigating-speed, speedbar-update-speed) phasing out.
(speedbar-vc-indicator) removed space from this var.
(speedbar-indicator-separator, speedbar-obj-do-check,
speedbar-obj-to-do-point, speedbar-obj-indicator, speedbar-obj-alist,
speedbar-indicator-regex) new variables.
(speedbar-directory-unshown-regexp) New variable.
(speedbar-supported-extension-expressions) Added more extensions.
(speedbar-add-supported-extension,
speedbar-add-ignored-path-regexp) Made interactive.
(speedbar-update-flag) nil w/ no window system.
(speedbar-file-key-map) Moved some key bindings from
`speedbar-key-map' to this map.
(speedbar-make-specialized-keymap) New function.
(speedbar-file-key-map) New key map.
(speedbar-easymenu-definition-special) Updated to new functions.
(speedbar-easymenu-definition-trailer) Changed conditional part.
(speedbar-frame-mode) Removed commented code, fixed W32 cursor
bug, Updated to better handle terminal frames.
(speedbar-switch-buffer-attached-frame) New function.
(speedbar-mode) Updated documentation, no local keymap,
correct `temp-buffer-show-function' use, enable mouse-tracking.
(speedbar-show-info-under-mouse) New function.
(speedbar-reconfigure-keymaps) Was `speedbar-reconfigure-menubar'.
Enable major display mode specific menus & key maps.
(speedbar-temp-buffer-show-function) Fix use of `temp-buffer-show-hook'
(speedbar-track-mouse, speedbar-track-mouse-xemacs) New functions.
(speedbar-restricted-move, speedbar-restricted-next,
speedbar-restricted-prev, speedbar-navigate-list,
speedbar-forward-list, speedbar-backward-list) New commands.
(speedbar-refresh) Updated message printing & verbosity.
(speedbar-item-load) Updated message.
(speedbar-item-byte-compile) Updated doc & reset scanners.
(speedbar-item-info) Overhauled with more details.
(speedbar-item-copy) Update messages.
(speedbar-generic-item-info) New function
(speedbar-item-delete) Update messages.
(speedbar-item-object-delete) New function.
(speedbar-select-window) Update doc. Use `show-buffer'.
(speedbar-make-button) Update doc.
(speedbar-initial-expansion-list, speedbar-initial-menu,
speedbar-initial-keymap, speedbar-initial-stealthy-functions,
speedbar-add-expansion-list,
speedbar-change-initial-expansion-list) New functions.
(speedbar-maybe-add-localized-support,
speedbar-add-localized-speedbar-support,
speedbar-remove-localized-speedbar-support) Imported from speedbspec
(speedbar-file-lists) Filter out some directories.
(speedbar-make-tag-line) Can hide brackets.
(speedbar-change-expand-button-char) Protect invisible text prop.
(speedbar-insert-files-at-point) Ignore case during comares.
(speedbar-apply-one-tag-hierarchy-method,
speedbar-create-tag-hierarchy) New functions.
(speedbar-insert-generic-list) Now calls hierarchy functions on tags.
(speedbar-update-contents) Handles localized support.
(speedbar-update-directory-contents) Uses fn for expansion list,
Fixed directory cacheing bug.
(speedbar-timer-fn) Calls localized support function.
(speedbar-stealthy-update-recurse) New variable
(speedbar-stealthy-updates) Handle new stealth function format.
(speedbar-clear-current-file) Handle indicator regex.
(speedbar-update-current-file) Ignores case, update handle
indicator regex, Fix line positioning.
(speedbar-add-indicator) Handles obj indicators now.
(speedbar-check-objects, speedbar-check-obj-this-line) New functions.
(speedbar-double-click) Fix tripple click error.
(speedbar-line-file, speedbar-goto-this-file) Handle indicator regex.
(speedbar-line-path) Only try to get a file when in "files" display.
(speedbar-line-depth) Handle indicator regex.
(speedbar-dir-follow) Turn of smart-adjust to disable cache use.
(speedbar-directory-buttons-follow) Hack for W32 emacs directories.
(speedbar-buffers-key-map) New key map.
(speedbar-buffer-easymenu-definition) New meny items.
(speedbar-buffer-buttons, speedbar-buffer-buttons-temp,
speedbar-buffer-buttons-engine, speedbar-buffer-click,
speedbar-buffer-kill-buffer, speedbar-buffer-revert-buffer)
New functions.
1998-07-10 16:48:06 +00:00
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
;;; Color loading section.
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;;
|
|
|
|
|
(defface speedbar-button-face '((((class color) (background light))
|
|
|
|
|
(:foreground "green4"))
|
|
|
|
|
(((class color) (background dark))
|
|
|
|
|
(:foreground "green3")))
|
|
|
|
|
"Face used for +/- buttons."
|
|
|
|
|
:group 'speedbar-faces)
|
|
|
|
|
|
|
|
|
|
(defface speedbar-file-face '((((class color) (background light))
|
|
|
|
|
(:foreground "cyan4"))
|
|
|
|
|
(((class color) (background dark))
|
|
|
|
|
(:foreground "cyan"))
|
2001-12-31 20:44:44 +00:00
|
|
|
|
(t (:weight bold)))
|
1998-04-18 19:28:13 +00:00
|
|
|
|
"Face used for file names."
|
|
|
|
|
:group 'speedbar-faces)
|
|
|
|
|
|
|
|
|
|
(defface speedbar-directory-face '((((class color) (background light))
|
|
|
|
|
(:foreground "blue4"))
|
|
|
|
|
(((class color) (background dark))
|
|
|
|
|
(:foreground "light blue")))
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Face used for directory names."
|
1998-04-18 19:28:13 +00:00
|
|
|
|
:group 'speedbar-faces)
|
|
|
|
|
(defface speedbar-tag-face '((((class color) (background light))
|
|
|
|
|
(:foreground "brown"))
|
|
|
|
|
(((class color) (background dark))
|
|
|
|
|
(:foreground "yellow")))
|
|
|
|
|
"Face used for displaying tags."
|
|
|
|
|
:group 'speedbar-faces)
|
|
|
|
|
|
|
|
|
|
(defface speedbar-selected-face '((((class color) (background light))
|
|
|
|
|
(:foreground "red" :underline t))
|
|
|
|
|
(((class color) (background dark))
|
|
|
|
|
(:foreground "red" :underline t))
|
|
|
|
|
(t (:underline t)))
|
|
|
|
|
"Face used to underline the file in the active window."
|
|
|
|
|
:group 'speedbar-faces)
|
|
|
|
|
|
|
|
|
|
(defface speedbar-highlight-face '((((class color) (background light))
|
|
|
|
|
(:background "green"))
|
|
|
|
|
(((class color) (background dark))
|
|
|
|
|
(:background "sea green"))
|
2002-12-05 23:02:40 +00:00
|
|
|
|
(((class grayscale mono)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(background light))
|
|
|
|
|
(:background "black"))
|
2002-12-05 23:02:40 +00:00
|
|
|
|
(((class grayscale mono)
|
1998-04-18 19:28:13 +00:00
|
|
|
|
(background dark))
|
|
|
|
|
(:background "white")))
|
|
|
|
|
"Face used for highlighting buttons with the mouse."
|
|
|
|
|
:group 'speedbar-faces)
|
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
|
|
|
|
|
;;; Image loading and inlining
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
;;; Some images if defimage is available:
|
|
|
|
|
(eval-when-compile
|
|
|
|
|
|
|
|
|
|
(if (fboundp 'defimage)
|
|
|
|
|
(defalias 'defimage-speedbar 'defimage)
|
|
|
|
|
|
|
|
|
|
(if (not (fboundp 'make-glyph))
|
2003-02-04 12:29:42 +00:00
|
|
|
|
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(defmacro defimage-speedbar (variable imagespec docstring)
|
|
|
|
|
"Don't bother loading up an image...
|
2002-07-10 08:21:49 +00:00
|
|
|
|
Argument VARIABLE is the variable to define.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
Argument IMAGESPEC is the list defining the image to create.
|
|
|
|
|
Argument DOCSTRING is the documentation for VARIABLE."
|
|
|
|
|
`(defvar ,variable nil ,docstring))
|
|
|
|
|
|
|
|
|
|
;; ELSE
|
|
|
|
|
(defun speedbar-find-image-on-load-path (image)
|
|
|
|
|
"Find the image file IMAGE on the load path."
|
|
|
|
|
(let ((l load-path)
|
|
|
|
|
(r nil))
|
|
|
|
|
(while (and l (not r))
|
|
|
|
|
(if (file-exists-p (concat (car l) "/" image))
|
|
|
|
|
(setq r (concat (car l) "/" image)))
|
|
|
|
|
(setq l (cdr l)))
|
|
|
|
|
r))
|
|
|
|
|
|
|
|
|
|
(defun speedbar-convert-emacs21-imagespec-to-xemacs (spec)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Convert the Emacs21 image SPEC into an XEmacs image spec."
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(let* ((sl (car spec))
|
|
|
|
|
(itype (nth 1 sl))
|
|
|
|
|
(ifile (nth 3 sl)))
|
|
|
|
|
(vector itype ':file (speedbar-find-image-on-load-path ifile))))
|
|
|
|
|
|
|
|
|
|
(defmacro defimage-speedbar (variable imagespec docstring)
|
2002-07-10 08:21:49 +00:00
|
|
|
|
"Define VARIABLE as an image if `defimage' is not available.
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
IMAGESPEC is the image data, and DOCSTRING is documentation for the image."
|
|
|
|
|
`(defvar ,variable
|
|
|
|
|
;; The Emacs21 version of defimage looks just like the XEmacs image
|
|
|
|
|
;; specifier, except that it needs a :type keyword. If we line
|
|
|
|
|
;; stuff up right, we can use this cheat to support XEmacs specifiers.
|
|
|
|
|
(condition-case nil
|
|
|
|
|
(make-glyph
|
|
|
|
|
(make-image-specifier
|
|
|
|
|
(speedbar-convert-emacs21-imagespec-to-xemacs (quote ,imagespec)))
|
|
|
|
|
'buffer)
|
|
|
|
|
(error nil))
|
|
|
|
|
,docstring))
|
|
|
|
|
|
|
|
|
|
)))
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-directory-plus
|
|
|
|
|
((:type xpm :file "sb-dir-plus.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for closed directories with stuff in them.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-directory-minus
|
|
|
|
|
((:type xpm :file "sb-dir-minus.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for open directories with stuff in them.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-page-plus
|
|
|
|
|
((:type xpm :file "sb-pg-plus.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for closed files with stuff in them.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-page-minus
|
|
|
|
|
((:type xpm :file "sb-pg-minus.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for open files with stuff in them.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-page
|
|
|
|
|
((:type xpm :file "sb-pg.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for files that can't be opened.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-tag
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
((:type xpm :file "sb-tag.xpm" :ascent center))
|
|
|
|
|
"Image used for tags.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-tag-plus
|
|
|
|
|
((:type xpm :file "sb-tag-plus.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for closed tag groups.")
|
|
|
|
|
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(defimage-speedbar speedbar-tag-minus
|
|
|
|
|
((:type xpm :file "sb-tag-minus.xpm" :ascent center))
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
"Image used for open tag groups.")
|
|
|
|
|
|
|
|
|
|
(defimage-speedbar speedbar-tag-gt
|
|
|
|
|
((:type xpm :file "sb-tag-gt.xpm" :ascent center))
|
|
|
|
|
"Image used for open tag groups.")
|
|
|
|
|
|
|
|
|
|
(defimage-speedbar speedbar-tag-v
|
|
|
|
|
((:type xpm :file "sb-tag-v.xpm" :ascent center))
|
|
|
|
|
"Image used for open tag groups.")
|
|
|
|
|
|
|
|
|
|
(defimage-speedbar speedbar-tag-type
|
|
|
|
|
((:type xpm :file "sb-tag-type.xpm" :ascent center))
|
|
|
|
|
"Image used for open tag groups.")
|
|
|
|
|
|
|
|
|
|
(defimage-speedbar speedbar-mail
|
|
|
|
|
((:type xpm :file "sb-mail.xpm" :ascent center))
|
|
|
|
|
"Image used for open tag groups.")
|
|
|
|
|
|
|
|
|
|
(defvar speedbar-expand-image-button-alist
|
2000-05-24 00:53:43 +00:00
|
|
|
|
'(("<+>" . speedbar-directory-plus)
|
|
|
|
|
("<->" . speedbar-directory-minus)
|
|
|
|
|
("[+]" . speedbar-page-plus)
|
|
|
|
|
("[-]" . speedbar-page-minus)
|
|
|
|
|
("[?]" . speedbar-page)
|
|
|
|
|
("{+}" . speedbar-tag-plus)
|
|
|
|
|
("{-}" . speedbar-tag-minus)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
("<M>" . speedbar-mail)
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(" =>" . speedbar-tag)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(" +>" . speedbar-tag-gt)
|
|
|
|
|
(" ->" . speedbar-tag-v)
|
2000-05-24 00:53:43 +00:00
|
|
|
|
(">" . speedbar-tag)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
("@" . speedbar-tag-type)
|
|
|
|
|
(" @" . speedbar-tag-type)
|
|
|
|
|
)
|
|
|
|
|
"List of text and image associations.")
|
|
|
|
|
|
|
|
|
|
(defun speedbar-insert-image-button-maybe (start length)
|
|
|
|
|
"Insert an image button based on text starting at START for LENGTH chars.
|
|
|
|
|
If buttontext is unknown, just insert that text.
|
|
|
|
|
If we have an image associated with it, use that image."
|
|
|
|
|
(if speedbar-use-images
|
|
|
|
|
(let* ((bt (buffer-substring start (+ length start)))
|
|
|
|
|
(a (assoc bt speedbar-expand-image-button-alist)))
|
|
|
|
|
;; Regular images (created with `insert-image' are intangible
|
|
|
|
|
;; which (I suppose) make them more compatible with XEmacs 21.
|
|
|
|
|
;; Unfortunatly, there is a giant pile o code dependent on the
|
|
|
|
|
;; underlying text. This means if we leave it tangible, then I
|
|
|
|
|
;; don't have to change said giant piles o code.
|
|
|
|
|
(if (and a (symbol-value (cdr a)))
|
2001-04-04 00:51:48 +00:00
|
|
|
|
(if (featurep 'xemacs)
|
Updated the commentary section.
xemacs20p now uses >= when detecting.
require `defimage' safely.
(speedbar-easymenu-definition-base): Add toggle for images.
(speedbar-easymenu-definition-special): Add flush cache & expand.
(speedbar-visiting-tag-hook): Set new defaults. Added options.
(speedbar-reconfigure-keymaps-hook): New variable.
(speedbar-frame-parameters): Updated documentation.
(speedbar-use-imenu-flag): Updated custom tag
(speedbar-dynamic-tags-function-list): New variable.
(speedbar-tag-hierarchy-method): Updated doc & custom.
(speedbar-indentation-width, speedbar-indentation-width)
new variables.
(speedbar-hide-button-brackets-flag): customizable.
(speedbar-vc-indicator): Doc update.
(speedbar-ignored-path-expressions): Updated default value.
(speedbar-supported-extension-expressions): Updated default value.
(speedbar-syntax-table): Remove {} paren status.
(speedbar-file-key-map, speedbar-buffers-key-map):
Add "=" to act as "+".
Added overlay aliases.
(speedbar-mode):
Use `speedbar-mode-line-update' instead of `force-mode-line-update'.
(speedbar-mode, speedbar-quick-mouse, speedbar-click,
speedbar-double-click):
Use `speedbar-mouse-set-point' instead of `mouse-set-point'
(speedbar-reconfigure-keymaps): Run configure keymap hooks.
(speedbar-item-info-tag-helper): Revamped to handle a wider
range of arbitrary text, and new helper functions.
(speedbar-item-copy, speedbar-item-rename):
Fixed trailing \ in filename finder.
(speedbar-make-button): Call `speedbar-insert-image-button-maybe'.
(speedbar-directory-buttons): Update path search/expansion.
(speedbar-make-tag-line): Pay attention to
`speedbar-indentation-width'. Use more care w/ invisible properties.
(speedbar-change-expand-button-char): Call
`speedbar-insert-image-button-maybe'.
(speedbar-apply-one-tag-hierarchy-method): Deleted (and replaced).
(speedbar-sort-tag-hierarchy,
speedbar-prefix-group-tag-hierarchy,
speedbar-trim-words-tag-hierarchy,
speedbar-simple-group-tag-hierarchy): New functions
(speedbar-create-tag-hierarchy): Update doc, use new tag hooks.
(speedbar-insert-imenu-list, speedbar-insert-etags-list):
New functions.
(speedbar-mouse-set-point): New function
(speedbar-power-click): Updated documentation.
(speedbar-line-token, speedbar-goto-this-file):
Handle more types of tag prefix text.
(speedbar-expand-line, speedbar-contract-line):
Make more robust to strange text.
(speedbar-expand-line): Takes universal argument to flush the cache.
(speedbar-flush-expand-line): New function.
(speedbar-tag-file): Use new `speedbar-fetch-dynamic-tags' fn.
Use new generator insertion method.
(speedbar-fetch-dynamic-tags): New function.
(speedbar-fetch-dynamic-imenu): Removed code now handled in
`speedbar-fetch-dynamic-imenu'.
(speedbar-fetch-dynamic-etags): Fix current buffer problem.
(speedbar-buffer-easymenu-definition): Added "Kill Buffer", and
"Revert Buffer" menu items.
(speedbar-buffer-buttons-engine): Be smarter when creating a
filename tag (for expansion purposes.).
(speedbar-highlight-one-tag-line, speedbar-unhighlight-one-tag-line,
speedbar-recenter-to-top, speedbar-recenter): New functions.
(defimage-speedbar): Image loading abstraction.
(speedbar-directory-+, speedbar-directory--,
speedbar-file-+, speedbar-file--, speedbar-file-,
speedbar-tag-, speedbar-tag-+, speedbar-tag--, speedbar-tag-gt,
speedbar-tag-v, speedbar-tag-type, speedbar-tag-mail):
New images.
(speedbar-expand-image-button-alist): New variable.
(speedbar-insert-image-button-maybe): Insert an image over some
buttons.
2000-05-13 23:13:25 +00:00
|
|
|
|
(add-text-properties (+ start (length bt)) start
|
|
|
|
|
(list 'end-glyph (symbol-value (cdr a))
|
|
|
|
|
'rear-nonsticky (list 'display)
|
|
|
|
|
'invisible t
|
|
|
|
|
'detachable t))
|
|
|
|
|
(add-text-properties start (+ start (length bt))
|
|
|
|
|
(list 'display (symbol-value (cdr a))
|
|
|
|
|
'rear-nonsticky (list 'display))))
|
|
|
|
|
;(message "Bad text [%s]" (buffer-substring start (+ start length)))
|
|
|
|
|
))))
|
|
|
|
|
|
|
|
|
|
|
1998-04-18 19:28:13 +00:00
|
|
|
|
;; some edebug hooks
|
|
|
|
|
(add-hook 'edebug-setup-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(def-edebug-spec speedbar-with-writable def-body)))
|
|
|
|
|
|
|
|
|
|
(provide 'speedbar)
|
|
|
|
|
|
|
|
|
|
;; run load-time hooks
|
|
|
|
|
(run-hooks 'speedbar-load-hook)
|
2001-07-16 12:23:00 +00:00
|
|
|
|
|
|
|
|
|
;;; speedbar.el ends here
|