comparison lisp/speedbar.el @ 46286:6117ca314143

(speedbar-tag-hierarchy-method): Fix typos. (speedbar-vc-do-check): Likewise. (speedbar-obj-do-check): Likewise. (speedbar-mouse-hscroll): Likewise. (speedbar-file-lists): Likewise.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 10 Jul 2002 09:26:03 +0000
parents 015a7038f5db
children 1b1c4b4ef8d4
comparison
equal deleted inserted replaced
46285:3f111801efb4 46286:6117ca314143
405 '(speedbar-prefix-group-tag-hierarchy 405 '(speedbar-prefix-group-tag-hierarchy
406 speedbar-trim-words-tag-hierarchy) 406 speedbar-trim-words-tag-hierarchy)
407 "*List of hooks which speedbar will use to organize tags into groups. 407 "*List of hooks which speedbar will use to organize tags into groups.
408 Groups are defined as expandable meta-tags. Imenu supports 408 Groups are defined as expandable meta-tags. Imenu supports
409 such things in some languages, such as separating variables from 409 such things in some languages, such as separating variables from
410 functions. Each hook takes one argument LST, and may destructivly 410 functions. Each hook takes one argument LST, and may destructively
411 create a new list of the same form. LST is a list of elements of the 411 create a new list of the same form. LST is a list of elements of the
412 form: 412 form:
413 (ELT1 ELT2 ... ELTn) 413 (ELT1 ELT2 ... ELTn)
414 where each ELT is of the form 414 where each ELT is of the form
415 (TAG-NAME-STRING . NUMBER-OR-MARKER) 415 (TAG-NAME-STRING . NUMBER-OR-MARKER)
416 or 416 or
417 (GROUP-NAME-STRING ELT1 ELR2... ELTn)" 417 (GROUP-NAME-STRING ELT1 ELT2... ELTn)"
418 :group 'speedbar 418 :group 'speedbar
419 :type 'hook 419 :type 'hook
420 :options '(speedbar-sort-tag-hierarchy 420 :options '(speedbar-sort-tag-hierarchy
421 speedbar-trim-words-tag-hierarchy 421 speedbar-trim-words-tag-hierarchy
422 speedbar-prefix-group-tag-hierarchy 422 speedbar-prefix-group-tag-hierarchy
532 (defvar speedbar-indicator-separator " " 532 (defvar speedbar-indicator-separator " "
533 "String separating file text from indicator characters.") 533 "String separating file text from indicator characters.")
534 534
535 (defcustom speedbar-vc-do-check t 535 (defcustom speedbar-vc-do-check t
536 "*Non-nil check all files in speedbar to see if they have been checked out. 536 "*Non-nil check all files in speedbar to see if they have been checked out.
537 Any file checked out is marked with `speedbar-vc-indicator'" 537 Any file checked out is marked with `speedbar-vc-indicator'."
538 :group 'speedbar-vc 538 :group 'speedbar-vc
539 :type 'boolean) 539 :type 'boolean)
540 540
541 (defvar speedbar-vc-indicator "*" 541 (defvar speedbar-vc-indicator "*"
542 "Text used to mark files which are currently checked out. 542 "Text used to mark files which are currently checked out.
561 "Local variable maintaining the current version control check position.") 561 "Local variable maintaining the current version control check position.")
562 562
563 (defcustom speedbar-obj-do-check t 563 (defcustom speedbar-obj-do-check t
564 "*Non-nil check all files in speedbar to see if they have an object file. 564 "*Non-nil check all files in speedbar to see if they have an object file.
565 Any file checked out is marked with `speedbar-obj-indicator', and the 565 Any file checked out is marked with `speedbar-obj-indicator', and the
566 marking is based on `speedbar-obj-alist'" 566 marking is based on `speedbar-obj-alist'."
567 :group 'speedbar-vc 567 :group 'speedbar-vc
568 :type 'boolean) 568 :type 'boolean)
569 569
570 (defvar speedbar-obj-to-do-point nil 570 (defvar speedbar-obj-to-do-point nil
571 "Local variable maintaining the current version control check position.") 571 "Local variable maintaining the current version control check position.")
1452 ;; is no use, as we have horizontal scrollbar (as the docstring 1452 ;; is no use, as we have horizontal scrollbar (as the docstring
1453 ;; hints.) 1453 ;; hints.)
1454 (defun speedbar-mouse-hscroll (e) 1454 (defun speedbar-mouse-hscroll (e)
1455 "Read a mouse event E from the mode line, and horizontally scroll. 1455 "Read a mouse event E from the mode line, and horizontally scroll.
1456 If the mouse is being clicked on the far left, or far right of the 1456 If the mouse is being clicked on the far left, or far right of the
1457 mode-line. This is only useful for non-XEmacs" 1457 mode-line. This is only useful for non-XEmacs."
1458 (interactive "e") 1458 (interactive "e")
1459 (let* ((xp (car (nth 2 (car (cdr e))))) 1459 (let* ((xp (car (nth 2 (car (cdr e)))))
1460 (cpw (/ (frame-pixel-width) 1460 (cpw (/ (frame-pixel-width)
1461 (frame-width))) 1461 (frame-width)))
1462 (oc (1+ (/ xp cpw))) 1462 (oc (1+ (/ xp cpw)))
2175 (defun speedbar-file-lists (directory) 2175 (defun speedbar-file-lists (directory)
2176 "Create file lists for DIRECTORY. 2176 "Create file lists for DIRECTORY.
2177 The car is the list of directories, the cdr is list of files not 2177 The car is the list of directories, the cdr is list of files not
2178 matching ignored headers. Cache any directory files found in 2178 matching ignored headers. Cache any directory files found in
2179 `speedbar-directory-contents-alist' and use that cache before scanning 2179 `speedbar-directory-contents-alist' and use that cache before scanning
2180 the file-system" 2180 the file-system."
2181 (setq directory (expand-file-name directory)) 2181 (setq directory (expand-file-name directory))
2182 ;; If in powerclick mode, then the directory we are getting 2182 ;; If in powerclick mode, then the directory we are getting
2183 ;; should be rescanned. 2183 ;; should be rescanned.
2184 (if speedbar-power-click 2184 (if speedbar-power-click
2185 (adelete 'speedbar-directory-contents-alist directory)) 2185 (adelete 'speedbar-directory-contents-alist directory))