Mercurial > emacs
comparison lisp/speedbar.el @ 44578:9c2b72b4b303
(speedbar-generic-item-info)
(speedbar-sort-tags): Doc fix.
(speedbar-add-supported-extension): Fix typo in interactive spec.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Sun, 14 Apr 2002 08:11:22 +0000 |
parents | e47fc6bb028d |
children | 7329202ae660 |
comparison
equal
deleted
inserted
replaced
44577:ffb634bccc64 | 44578:9c2b72b4b303 |
---|---|
395 "*Non-nil means to display info about the line under the mouse." | 395 "*Non-nil means to display info about the line under the mouse." |
396 :group 'speedbar | 396 :group 'speedbar |
397 :type 'boolean) | 397 :type 'boolean) |
398 | 398 |
399 (defcustom speedbar-sort-tags nil | 399 (defcustom speedbar-sort-tags nil |
400 "*If Non-nil, sort tags in the speedbar display. *Obsolete*." | 400 "*If non-nil, sort tags in the speedbar display. *Obsolete*." |
401 :group 'speedbar | 401 :group 'speedbar |
402 :type 'boolean) | 402 :type 'boolean) |
403 | 403 |
404 (defcustom speedbar-tag-hierarchy-method | 404 (defcustom speedbar-tag-hierarchy-method |
405 '(speedbar-prefix-group-tag-hierarchy | 405 '(speedbar-prefix-group-tag-hierarchy |
702 "Add EXTENSION as a new supported extension for speedbar tagging. | 702 "Add EXTENSION as a new supported extension for speedbar tagging. |
703 This should start with a `.' if it is not a complete file name, and | 703 This should start with a `.' if it is not a complete file name, and |
704 the dot should NOT be quoted in with \\. Other regular expression | 704 the dot should NOT be quoted in with \\. Other regular expression |
705 matchers are allowed however. EXTENSION may be a single string or a | 705 matchers are allowed however. EXTENSION may be a single string or a |
706 list of strings." | 706 list of strings." |
707 (interactive "sExtionsion: ") | 707 (interactive "sExtension: ") |
708 (if (not (listp extension)) (setq extension (list extension))) | 708 (if (not (listp extension)) (setq extension (list extension))) |
709 (while extension | 709 (while extension |
710 (if (member (car extension) speedbar-supported-extension-expressions) | 710 (if (member (car extension) speedbar-supported-extension-expressions) |
711 nil | 711 nil |
712 (setq speedbar-supported-extension-expressions | 712 (setq speedbar-supported-extension-expressions |
1721 (interactive "e") | 1721 (interactive "e") |
1722 (mouse-set-point event) | 1722 (mouse-set-point event) |
1723 (speedbar-item-info)) | 1723 (speedbar-item-info)) |
1724 | 1724 |
1725 (defun speedbar-generic-item-info () | 1725 (defun speedbar-generic-item-info () |
1726 "Attempt to derive, and then display information about thils line item. | 1726 "Attempt to derive, and then display information about this line item. |
1727 File style information is displayed with `speedbar-item-info'." | 1727 File style information is displayed with `speedbar-item-info'." |
1728 (save-excursion | 1728 (save-excursion |
1729 (beginning-of-line) | 1729 (beginning-of-line) |
1730 ;; Skip invisible number info. | 1730 ;; Skip invisible number info. |
1731 (if (looking-at "\\([0-9]+\\):") (goto-char (match-end 0))) | 1731 (if (looking-at "\\([0-9]+\\):") (goto-char (match-end 0))) |