comparison lisp/progmodes/ebrowse.el @ 28816:03f206c5d91b

Change file name `EBROWSE' to `BROWSE'.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 04 May 2000 21:51:29 +0000
parents 7c903a96e495
children e56649429a8b
comparison
equal deleted inserted replaced
28815:58f8c0da3eb3 28816:03f206c5d91b
51 51
52 52
53 (defcustom ebrowse-search-path nil 53 (defcustom ebrowse-search-path nil
54 "*List of directories to search for source files in a class tree. 54 "*List of directories to search for source files in a class tree.
55 Elements should be directory names; nil as an element means to try 55 Elements should be directory names; nil as an element means to try
56 to find source files relative to the location of the EBROWSE file loaded." 56 to find source files relative to the location of the BROWSE file loaded."
57 :group 'ebrowse 57 :group 'ebrowse
58 :type '(repeat (choice (const :tag "Default" nil) 58 :type '(repeat (choice (const :tag "Default" nil)
59 (string :tag "Directory")))) 59 (string :tag "Directory"))))
60 60
61 61
362 362
363 363
364 ;;; Structure definitions 364 ;;; Structure definitions
365 365
366 (defstruct (ebrowse-hs (:type vector) :named) 366 (defstruct (ebrowse-hs (:type vector) :named)
367 "Header structure found at the head of EBROWSE files." 367 "Header structure found at the head of BROWSE files."
368 ;; A version string that is compared against the version number of 368 ;; A version string that is compared against the version number of
369 ;; the Lisp package when the file is loaded. This is done to 369 ;; the Lisp package when the file is loaded. This is done to
370 ;; detect file format changes. 370 ;; detect file format changes.
371 version 371 version
372 ;; Command line options used for producing the EBROWSE file. 372 ;; Command line options used for producing the BROWSE file.
373 command-line-options 373 command-line-options
374 ;; The following slot is currently not used. It's kept to keep 374 ;; The following slot is currently not used. It's kept to keep
375 ;; the file format compatible. 375 ;; the file format compatible.
376 unused 376 unused
377 ;; A slot that is filled out after the tree is loaded. This slot is 377 ;; A slot that is filled out after the tree is loaded. This slot is
380 member-table) 380 member-table)
381 381
382 382
383 (defstruct (ebrowse-ts (:type vector) :named) 383 (defstruct (ebrowse-ts (:type vector) :named)
384 "Tree structure. 384 "Tree structure.
385 Following the header structure, an EBROWSE file contains a number 385 Following the header structure, an BROWSE file contains a number
386 of `ebrowse-ts' structures, each one describing one root class of 386 of `ebrowse-ts' structures, each one describing one root class of
387 the class hierarchy with all its subclasses." 387 the class hierarchy with all its subclasses."
388 ;; A `ebrowse-cs' structure describing the root class. 388 ;; A `ebrowse-cs' structure describing the root class.
389 class 389 class
390 ;; A list of `ebrowse-ts' structures for all subclasses. 390 ;; A list of `ebrowse-ts' structures for all subclasses.
506 "Value is non-nil if MEMBER is a define." 506 "Value is non-nil if MEMBER is a define."
507 (ebrowse-member-bit-set-p member 512)) 507 (ebrowse-member-bit-set-p member 512))
508 508
509 509
510 (defconst ebrowse-version-string "ebrowse 5.0" 510 (defconst ebrowse-version-string "ebrowse 5.0"
511 "Version string expected in EBROWSE files.") 511 "Version string expected in BROWSE files.")
512 512
513 513
514 (defconst ebrowse-globals-name "*Globals*" 514 (defconst ebrowse-globals-name "*Globals*"
515 "The name used for the surrogate class.containing global entities. 515 "The name used for the surrogate class.containing global entities.
516 This must be the same that `ebrowse' uses.") 516 This must be the same that `ebrowse' uses.")
542 "Obarray holding all `ebrowse-ts' structures of a class tree. 542 "Obarray holding all `ebrowse-ts' structures of a class tree.
543 Buffer-local in Ebrowse buffers.") 543 Buffer-local in Ebrowse buffers.")
544 544
545 545
546 (defvar ebrowse--tags-file-name nil 546 (defvar ebrowse--tags-file-name nil
547 "File from which EBROWSE file was loaded. 547 "File from which BROWSE file was loaded.
548 Buffer-local in Ebrowse buffers.") 548 Buffer-local in Ebrowse buffers.")
549 549
550 550
551 (defvar ebrowse--header nil 551 (defvar ebrowse--header nil
552 "Header structure of type `ebrowse-hs' of a class tree. 552 "Header structure of type `ebrowse-hs' of a class tree.
1661 ACCESSOR is an accessor function for the member list of an member 1661 ACCESSOR is an accessor function for the member list of an member
1662 if MEMBER-OR-CLASS is an `ebrowse-ms'. 1662 if MEMBER-OR-CLASS is an `ebrowse-ms'.
1663 FILE is the file to search the member in. 1663 FILE is the file to search the member in.
1664 FILE is not taken out of STRUC here because the filename in STRUC 1664 FILE is not taken out of STRUC here because the filename in STRUC
1665 may be nil in which case the filename of the class description is used. 1665 may be nil in which case the filename of the class description is used.
1666 TAGS-FILE-NAME is the name of the EBROWSE file from which the 1666 TAGS-FILE-NAME is the name of the BROWSE file from which the
1667 tree was loaded. 1667 tree was loaded.
1668 If VIEW is non-nil, view file else find the file. 1668 If VIEW is non-nil, view file else find the file.
1669 WHERE is either `other-window', `other-frame' or `this-window' and 1669 WHERE is either `other-window', `other-frame' or `this-window' and
1670 specifies where to find/view the result." 1670 specifies where to find/view the result."
1671 (unless file 1671 (unless file
1696 1696
1697 (defun ebrowse-symbol-regexp (name) 1697 (defun ebrowse-symbol-regexp (name)
1698 "Generate a suitable regular expression for a member or class NAME. 1698 "Generate a suitable regular expression for a member or class NAME.
1699 This is `regexp-quote' for most symbols, except for operator names 1699 This is `regexp-quote' for most symbols, except for operator names
1700 which may contain whitespace. For these symbols, replace white 1700 which may contain whitespace. For these symbols, replace white
1701 space in the symbol name (generated by EBROWSE) with a regular 1701 space in the symbol name (generated by BROWSE) with a regular
1702 expression matching any number of whitespace characters." 1702 expression matching any number of whitespace characters."
1703 (loop with regexp = (regexp-quote name) 1703 (loop with regexp = (regexp-quote name)
1704 with start = 0 1704 with start = 0
1705 finally return regexp 1705 finally return regexp
1706 while (string-match "[ \t]+" regexp start) 1706 while (string-match "[ \t]+" regexp start)
2577 find file in another frame. 2577 find file in another frame.
2578 DEFINITION non-nil means find the definition, otherwise find the 2578 DEFINITION non-nil means find the definition, otherwise find the
2579 declaration. 2579 declaration.
2580 INFO is a list (TREE ACCESSOR MEMBER) describing the member to 2580 INFO is a list (TREE ACCESSOR MEMBER) describing the member to
2581 search. 2581 search.
2582 TAGS-FILE-NAME is the file name of the EBROWSE file." 2582 TAGS-FILE-NAME is the file name of the BROWSE file."
2583 (unless header 2583 (unless header
2584 (setq header ebrowse--header)) 2584 (setq header ebrowse--header))
2585 (unless tags-file-name 2585 (unless tags-file-name
2586 (setq tags-file-name ebrowse--tags-file-name)) 2586 (setq tags-file-name ebrowse--tags-file-name))
2587 (let (tree member accessor file on-class 2587 (let (tree member accessor file on-class