bf72a06
--- /dev/null	2007-05-12 17:40:21.471089444 -0400
bf72a06
+++ cscope-15.6/doc/xcscope.1	2007-05-25 09:45:31.000000000 -0400
b9252d5
@@ -0,0 +1,577 @@
b9252d5
+'\" t
b9252d5
+.\" The xcscope.el man page
b9252d5
+.\" Origionally written by Darryl Okahata, Apr 2000
b9252d5
+.\" 
b9252d5
+.\" Converted to a man page July 20, 2004 by Neil Horman <nhorman@redhat.com>
b9252d5
+.\"
b9252d5
+
b9252d5
+.PU
b9252d5
+.TH XCSCOPE.EL "1" "April 2000" "Darryl Okahata"
b9252d5
+.SH NAME
b9252d5
+xcscope.el - xemacs cscope lisp support package
b9252d5
+.SH DESCRIPTION
b9252d5
+xcscope is a lisp package for use in integrating cscope 
b9252d5
+functionality into xemacs
b9252d5
+.SH INSTALLATION
b9252d5
+.P
b9252d5
+ Installation steps:
b9252d5
+
b9252d5
+.P
b9252d5
+ 0. (It is, of course, assumed that cscope is already properly
b9252d5
+    installed on the current system.)
b9252d5
+.P
b9252d5
+ 1. Ensure that the location of cscope-indexer is located in your path
b9252d5
+
b9252d5
+.P
b9252d5
+ 2. Ensure that the location of xcscope.el is in the xemacs module load path
b9252d5
+
b9252d5
+.P
b9252d5
+ 3. Edit your ~/.emacs file to add the line:
b9252d5
+.P
b9252d5
+.BI      (require 'xcscope)
b9252d5
+
b9252d5
+.P
b9252d5
+5. If you intend to use xcscope.el often you can optionally edit your
b9252d5
+~/.emacs file to add keybindings that reduce the number of keystrokes
b9252d5
+required.  For example, the following will add "C-f#" keybindings,
b9252d5
+which are easier to type than the usual "C-c s" prefixed keybindings.
b9252d5
+Note that specifying "global-map" instead of "cscope:map" makes the
b9252d5
+keybindings available in all buffers:
b9252d5
+.nf
b9252d5
+	(define-key global-map [(ctrl f3)]  'cscope-set-initial-directory)
b9252d5
+	(define-key global-map [(ctrl f4)]  'cscope-unset-initial-directory)
b9252d5
+	(define-key global-map [(ctrl f5)]  'cscope-find-this-symbol)
b9252d5
+	(define-key global-map [(ctrl f6)]  'cscope-find-global-definition)
b9252d5
+	(define-key global-map [(ctrl f7)]
b9252d5
+		cscope-find-global-definition-no-prompting)
b9252d5
+	(define-key global-map [(ctrl f8)]  'cscope-pop-mark)
b9252d5
+	(define-key global-map [(ctrl f9)]  'cscope-next-symbol)
b9252d5
+	(define-key global-map [(ctrl f10)] 'cscope-next-file)
b9252d5
+	(define-key global-map [(ctrl f11)] 'cscope-prev-symbol)
b9252d5
+	(define-key global-map [(ctrl f12)] 'cscope-prev-file)
b9252d5
+	(define-key global-map [(meta f9)]  'cscope-display-buffer)
b9252d5
+	(define-key global-map [(meta f10)] 'cscope-display-buffer-toggle)
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+ 6. Restart (X)Emacs.  That's it.
b9252d5
+
b9252d5
+
b9252d5
+.SH USING THIS MODULE
b9252d5
+
b9252d5
+.SS * Basic usage:
b9252d5
+
b9252d5
+.P
b9252d5
+ If all of your C/C++/lex/yacc source files are in the same
b9252d5
+ directory, you can just start using this module.  If your files are
b9252d5
+ spread out over multiple directories, see "Advanced usage", below.
b9252d5
+
b9252d5
+.P
b9252d5
+ Just edit a source file, and use the pull-down or pop-up (button 3)
b9252d5
+ menus to select one of:
b9252d5
+
b9252d5
+.nf
b9252d5
+	Find symbol
b9252d5
+	Find global definition
b9252d5
+	Find called functions
b9252d5
+	Find functions calling a function
b9252d5
+	Find text string
b9252d5
+	Find egrep pattern
b9252d5
+	Find a file
b9252d5
+	Find files #including a file
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+The cscope database will be automatically created in the same directory 
b9252d5
+as the source files (assuming that you've never used cscope before), and
b9252d5
+a buffer will pop-up displaying the results.  You can then use button 2
b9252d5
+(the middle button) on the mouse to edit the selected file, or you can
b9252d5
+move the text cursor over a selection and press [Enter].
b9252d5
+
b9252d5
+.P
b9252d5
+Hopefully, the interface should be fairly intuitive.
b9252d5
+
b9252d5
+.SS * Locating the cscope databases:
b9252d5
+
b9252d5
+.P
b9252d5
+This module will first use the variable, `cscope-database-regexps',
b9252d5
+to search for a suitable database directory.  If a database location
b9252d5
+cannot be found using this variable then a search is begun at the
b9252d5
+variable, `cscope-initial-directory', if set, or the current
b9252d5
+directory otherwise.  If the directory is not a cscope database
b9252d5
+directory then the directory's parent, parent's parent, etc. is
b9252d5
+searched until a cscope database directory is found, or the root
b9252d5
+directory is reached.  If the root directory is reached, the current
b9252d5
+directory will be used.
b9252d5
+
b9252d5
+.P
b9252d5
+A cscope database directory is one in which EITHER a cscope database
b9252d5
+file (e.g., "cscope.out") OR a cscope file list (e.g.,
b9252d5
+"cscope.files") exists.  If only "cscope.files" exists, the
b9252d5
+corresponding "cscope.out" will be automatically created by cscope
b9252d5
+when a search is done.  By default, the cscope database file is called
b9252d5
+"cscope.out", but this can be changed (on a global basis) via the
b9252d5
+variable, `cscope-database-file'.  There is limited support for cscope
b9252d5
+databases that are named differently than that given by
b9252d5
+`cscope-database-file', using the variable, `cscope-database-regexps'.
b9252d5
+
b9252d5
+.P
b9252d5
+Note that the variable, `cscope-database-regexps', is generally not
b9252d5
+needed, as the normal hierarchical database search is sufficient
b9252d5
+for placing and/or locating the cscope databases.  However, there
b9252d5
+may be cases where it makes sense to place the cscope databases
b9252d5
+away from where the source files are kept; in this case, this
b9252d5
+variable is used to determine the mapping.  One use for this
b9252d5
+variable is when you want to share the database file with other
b9252d5
+users; in this case, the database may be located in a directory
b9252d5
+separate from the source files.  
b9252d5
+
b9252d5
+.P
b9252d5
+Setting the variable, `cscope-initial-directory', is useful when a
b9252d5
+search is to be expanded by specifying a cscope database directory
b9252d5
+that is a parent of the directory that this module would otherwise
b9252d5
+use.  For example, consider a project that contains the following
b9252d5
+cscope database directories:
b9252d5
+
b9252d5
+.nf
b9252d5
+	/users/jdoe/sources
b9252d5
+	/users/jdoe/sources/proj1
b9252d5
+	/users/jdoe/sources/proj2
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+If a search is initiated from a .c file in /users/jdoe/sources/proj1
b9252d5
+then (assuming the variable, `cscope-database-regexps', is not set)
b9252d5
+/users/jdoe/sources/proj1 will be used as the cscope data base directory.
b9252d5
+Only matches in files in /users/jdoe/sources/proj1 will be found.  This
b9252d5
+can be remedied by typing "C-c s a" and then "M-del" to remove single
b9252d5
+path element in order to use a cscope database directory of
b9252d5
+/users/jdoe/sources.  Normal searching can be restored by typing "C-c s A".
b9252d5
+
b9252d5
+
b9252d5
+
b9252d5
+.SS * Keybindings:
b9252d5
+
b9252d5
+.P
b9252d5
+All keybindings use the "C-c s" prefix, but are usable only while
b9252d5
+editing a source file, or in the cscope results buffer:
b9252d5
+
b9252d5
+.BI     "C-c s s         Find symbol."
b9252d5
+.TP
b9252d5
+.BI     "C-c s d         Find global definition."
b9252d5
+.TP
b9252d5
+.BI     "C-c s g         Find global definition (alternate binding)."
b9252d5
+.TP
b9252d5
+.BI     "C-c s G         Find global definition without prompting."
b9252d5
+.TP
b9252d5
+.BI     "C-c s c         Find functions calling a function."
b9252d5
+.TP
b9252d5
+.BI     "C-c s C         Find called functions (list functions called"
b9252d5
+.BI     "                from a function)."
b9252d5
+.TP
b9252d5
+.BI     "C-c s t         Find text string."
b9252d5
+.TP
b9252d5
+.BI     "C-c s e         Find egrep pattern."
b9252d5
+.TP
b9252d5
+.BI     "C-c s f         Find a file."
b9252d5
+.TP
b9252d5
+.BI     "C-c s i         Find files #including a file."
b9252d5
+
b9252d5
+.P
b9252d5
+These pertain to navigation through the search results:
b9252d5
+
b9252d5
+.P
b9252d5
+.BI     "C-c s b         Display *cscope* buffer."
b9252d5
+.TP
b9252d5
+.BI     "C-c s B         Auto display *cscope* buffer toggle."
b9252d5
+.TP
b9252d5
+.BI     "C-c s n         Next symbol."
b9252d5
+.TP
b9252d5
+.BI     "C-c s N         Next file."
b9252d5
+.TP
b9252d5
+.BI     "C-c s p         Previous symbol."
b9252d5
+.TP
b9252d5
+.BI     "C-c s P         Previous file."
b9252d5
+.TP
b9252d5
+.BI     "C-c s u         Pop mark."
b9252d5
+
b9252d5
+.P
b9252d5
+These pertain to setting and unsetting the variable,
b9252d5
+`cscope-initial-directory', (location searched for the cscope database
b9252d5
+directory):
b9252d5
+
b9252d5
+.P
b9252d5
+.BI     "C-c s a         Set initial directory."
b9252d5
+.TP
b9252d5
+.BI     "C-c s A         Unset initial directory."
b9252d5
+
b9252d5
+.P
b9252d5
+These pertain to cscope database maintenance:
b9252d5
+.P
b9252d5
+.BI     "C-c s L         Create list of files to index."
b9252d5
+.TP
b9252d5
+.BI     "C-c s I         Create list and index."
b9252d5
+.TP
b9252d5
+.BI     "C-c s E         Edit list of files to index."
b9252d5
+.TP
b9252d5
+.BI     "C-c s W          Locate this buffer's cscope directory"
b9252d5
+.BI     "                 ("
b9252d5
+"W" --> "where"
b9252d5
+.BI ")."
b9252d5
+.TP
b9252d5
+.BI     "C-c s S         Locate this buffer's cscope directory."
b9252d5
+.BI     "                 (alternate binding: "
b9252d5
+"S" --> "show"
b9252d5
+.BI ")."
b9252d5
+.TP
b9252d5
+.BI     "C-c s T         Locate this buffer's cscope directory."
b9252d5
+.BI     "                 (alternate binding: "
b9252d5
+"T" --> "tell"
b9252d5
+.BI ")."
b9252d5
+.TP
b9252d5
+.BI     "C-c s D         Dired this buffer's directory."
b9252d5
+
b9252d5
+.P
b9252d5
+.SS * Advanced usage:
b9252d5
+
b9252d5
+.P
b9252d5
+If the source files are spread out over multiple directories,
b9252d5
+you've got a few choices:
b9252d5
+
b9252d5
+.P
b9252d5
+[ NOTE: you will need to have the script, "cscope-indexer",
b9252d5
+properly installed in order for the following to work.  ]
b9252d5
+
b9252d5
+.P
b9252d5
+1. If all of the directories exist below a common directory
b9252d5
+(without any extraneous, unrelated subdirectories), you can tell
b9252d5
+this module to place the cscope database into the top-level,
b9252d5
+common directory.  This assumes that you do not have any cscope
b9252d5
+databases in any of the subdirectories.  If you do, you should
b9252d5
+delete them; otherwise, they will take precedence over the
b9252d5
+top-level database.
b9252d5
+
b9252d5
+.P
b9252d5
+If you do have cscope databases in any subdirectory, the
b9252d5
+following instructions may not work right.
b9252d5
+
b9252d5
+.P
b9252d5
+It's pretty easy to tell this module to use a top-level, common
b9252d5
+directory:
b9252d5
+
b9252d5
+.HP
b9252d5
+a. Make sure that the menu pick, "Cscope/Index recursively", is
b9252d5
+checked (the default value).
b9252d5
+
b9252d5
+.HP
b9252d5
+b. Select the menu pick, "Cscope/Create list and index", and
b9252d5
+specify the top-level directory.  This will run the script,
b9252d5
+"cscope-indexer", in the background, so you can do other
b9252d5
+things if indexing takes a long time.  A list of files to
b9252d5
+index will be created in "cscope.files", and the cscope
b9252d5
+database will be created in "cscope.out".
b9252d5
+
b9252d5
+.HP
b9252d5
+Once this has been done, you can then use the menu picks
b9252d5
+(described in "Basic usage", above) to search for symbols.
b9252d5
+
b9252d5
+.HP
b9252d5
+Note, however, that, if you add or delete source files, you'll
b9252d5
+have to either rebuild the database using the above procedure,
b9252d5
+or edit the file, "cscope.files" to add/delete the names of the
b9252d5
+source files.  To edit this file, you can use the menu pick,
b9252d5
+"Cscope/Edit list of files to index".
b9252d5
+
b9252d5
+.P
b9252d5
+2. If most of the files exist below a common directory, but a few
b9252d5
+are outside, you can use the menu pick, "Cscope/Create list of
b9252d5
+files to index", and specify the top-level directory.  Make sure
b9252d5
+that "Cscope/Index recursively", is checked before you do so,
b9252d5
+though.  You can then edit the list of files to index using the
b9252d5
+menu pick, "Cscope/Edit list of files to index".  Just edit the
b9252d5
+list to include any additional source files not already listed.
b9252d5
+
b9252d5
+.P
b9252d5
+Once you've created, edited, and saved the list, you can then
b9252d5
+use the menu picks described under "Basic usage", above, to
b9252d5
+search for symbols.  The first time you search, you will have to
b9252d5
+wait a while for cscope to fully index the source files, though.
b9252d5
+If you have a lot of source files, you may want to manually run
b9252d5
+cscope to build the database:
b9252d5
+
b9252d5
+.nf
b9252d5
+	cd top-level-directory    # or wherever
b9252d5
+	rm -f cscope.out          # not always necessary
b9252d5
+	cscope -b
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+ 3. If the source files are scattered in many different, unrelated
b9252d5
+    places, you'll have to manually create cscope.files and put a
b9252d5
+    list of all pathnames into it.  Then build the database using:
b9252d5
+
b9252d5
+.nf
b9252d5
+	cd some-directory         # wherever cscope.files exists
b9252d5
+	rm -f cscope.out          # not always necessary
b9252d5
+	cscope -b
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+Next, read the documentation for the variable,
b9252d5
+"cscope-database-regexps", and set it appropriately, such that
b9252d5
+the above-created cscope database will be referenced when you
b9252d5
+edit a related source file.
b9252d5
+
b9252d5
+.P
b9252d5
+Once this has been done, you can then use the menu picks
b9252d5
+described under "Basic usage", above, to search for symbols.
b9252d5
+
b9252d5
+.SS * Interesting configuration variables:
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-truncate-lines"
b9252d5
+.P
b9252d5
+This is the value of `truncate-lines' to use in cscope
b9252d5
+buffers; the default is the current setting of
b9252d5
+`truncate-lines'.  This variable exists because it can be
b9252d5
+easier to read cscope buffers with truncated lines, while
b9252d5
+other buffers do not have truncated lines.
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-use-relative-paths"
b9252d5
+.P
b9252d5
+If non-nil, use relative paths when creating the list of files
b9252d5
+to index.  The path is relative to the directory in which the
b9252d5
+cscope database will be created.  If nil, absolute paths will
b9252d5
+be used.  Absolute paths are good if you plan on moving the
b9252d5
+database to some other directory (if you do so, you'll
b9252d5
+probably also have to modify `cscope-database-regexps').
b9252d5
+Absolute paths may also be good if you share the database file
b9252d5
+with other users (you'll probably want to specify some
b9252d5
+automounted network path for this).
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-index-recursively"
b9252d5
+.P
b9252d5
+If non-nil, index files in the current directory and all
b9252d5
+subdirectories.  If nil, only files in the current directory
b9252d5
+are indexed.  This variable is only used when creating the
b9252d5
+list of files to index, or when creating the list of files and
b9252d5
+the corresponding cscope database.
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-name-line-width"
b9252d5
+.P
b9252d5
+The width of the combined "function name:line number" field in
b9252d5
+the cscope results buffer.  If negative, the field is
b9252d5
+left-justified.
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-do-not-update-database"
b9252d5
+.P
b9252d5
+If non-nil, never check and/or update the cscope database when
b9252d5
+searching.  Beware of setting this to non-nil, as this will
b9252d5
+disable automatic database creation, updating, and
b9252d5
+maintenance.
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-display-cscope-buffer" 
b9252d5
+.P
b9252d5
+If non-nil, display the *cscope* buffer after each search
b9252d5
+(default).  This variable can be set in order to reduce the
b9252d5
+number of keystrokes required to navigate through the matches.
b9252d5
+
b9252d5
+.P
b9252d5
+.B "cscope-database-regexps"
b9252d5
+.P
b9252d5
+List to force directory-to-cscope-database mappings.
b9252d5
+This is a list of `(REGEXP DBLIST [ DBLIST ... ])', where:
b9252d5
+
b9252d5
+.P
b9252d5
+.B "REGEXP" 
b9252d5
+is a regular expression matched against the current buffer's
b9252d5
+current directory.  The current buffer is typically some source file,
b9252d5
+and you're probably searching for some symbol in or related to this
b9252d5
+file.  Basically, this regexp is used to relate the current directory
b9252d5
+to a cscope database.  You need to start REGEXP with "^" if you want
b9252d5
+to match from the beginning of the current directory.
b9252d5
+
b9252d5
+.P
b9252d5
+.B "DBLIST" 
b9252d5
+is a list that contains one or more of:
b9252d5
+
b9252d5
+.nf
b9252d5
+	( DBDIR )
b9252d5
+	( DBDIR ( OPTIONS ) )
b9252d5
+	( t )
b9252d5
+	t
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+Here, 
b9252d5
+.B DBDIR 
b9252d5
+is a directory (or a file) that contains a cscope
b9252d5
+database.  If DBDIR is a directory, then it is expected that the
b9252d5
+cscope database, if present, has the filename given by the variable,
b9252d5
+`cscope-database-file'; if DBDIR is a file, then DBDIR is the path
b9252d5
+name to a cscope database file (which does not have to be the same as
b9252d5
+that given by `cscope-database-file').  If only DBDIR is specified,
b9252d5
+then that cscope database will be searched without any additional
b9252d5
+cscope command-line options.  If OPTIONS is given, then OPTIONS is a
b9252d5
+list of strings, where each string is a separate cscope command-line
b9252d5
+option.
b9252d5
+
b9252d5
+.P
b9252d5
+ In the case of "( t )", this specifies that the search is to use the
b9252d5
+ normal hierarchical database search.  This option is used to
b9252d5
+ explicitly search using the hierarchical database search either before
b9252d5
+ or after other cscope database directories.
b9252d5
+
b9252d5
+.P
b9252d5
+ If "t" is specified (not inside a list), this tells the searching
b9252d5
+ mechanism to stop searching if a match has been found (at the point
b9252d5
+ where "t" is encountered).  This is useful for those projects that
b9252d5
+ consist of many subprojects.  You can specify the most-used
b9252d5
+ subprojects first, followed by a "t", and then followed by a master
b9252d5
+ cscope database directory that covers all subprojects.  This will
b9252d5
+ cause the most-used subprojects to be searched first (hopefully
b9252d5
+ quickly), and the search will then stop if a match was found.  If not,
b9252d5
+ the search will continue using the master cscope database directory.
b9252d5
+
b9252d5
+.P
b9252d5
+ Here, `cscope-database-regexps' is generally not used, as the normal
b9252d5
+ hierarchical database search is sufficient for placing and/or locating
b9252d5
+ the cscope databases.  However, there may be cases where it makes
b9252d5
+ sense to place the cscope databases away from where the source files
b9252d5
+ are kept; in this case, this variable is used to determine the
b9252d5
+ mapping.
b9252d5
+
b9252d5
+.P
b9252d5
+ This module searches for the cscope databases by first using this
b9252d5
+ variable; if a database location cannot be found using this variable,
b9252d5
+ then the current directory is searched, then the parent, then the
b9252d5
+ parent's parent, until a cscope database directory is found, or the
b9252d5
+ root directory is reached.  If the root directory is reached, the
b9252d5
+ current directory will be used.
b9252d5
+
b9252d5
+.P
b9252d5
+A cscope database directory is one in which EITHER a cscope database
b9252d5
+file (e.g., "cscope.out") OR a cscope file list (e.g.,
b9252d5
+"cscope.files") exists.  If only "cscope.files" exists, the
b9252d5
+corresponding "cscope.out" will be automatically created by cscope
b9252d5
+when a search is done.  By default, the cscope database file is called
b9252d5
+"cscope.out", but this can be changed (on a global basis) via the
b9252d5
+variable, `cscope-database-file'.  There is limited support for cscope
b9252d5
+databases that are named differently than that given by
b9252d5
+`cscope-database-file', using the variable, `cscope-database-regexps'.
b9252d5
+
b9252d5
+.P
b9252d5
+Here is an example of `cscope-database-regexps':
b9252d5
+
b9252d5
+.nf
b9252d5
+	(setq cscope-database-regexps
b9252d5
+	      '(
b9252d5
+		( "^/users/jdoe/sources/proj1"
b9252d5
+		  ( t )
b9252d5
+		  ( "/users/jdoe/sources/proj2")
b9252d5
+		  ( "/users/jdoe/sources/proj3/mycscope.out")
b9252d5
+		  ( "/users/jdoe/sources/proj4")
b9252d5
+		  t
b9252d5
+		  ( "/some/master/directory" ("-d" "-I/usr/local/include") )
b9252d5
+		  )
b9252d5
+		( "^/users/jdoe/sources/gnome/"
b9252d5
+		  ( "/master/gnome/database" ("-d") )
b9252d5
+		  )
b9252d5
+		))
b9252d5
+.fi
b9252d5
+
b9252d5
+.P
b9252d5
+If the current buffer's directory matches the regexp,
b9252d5
+"^/users/jdoe/sources/proj1", then the following search will be
b9252d5
+done:
b9252d5
+
b9252d5
+.TP
b9252d5
+1. First, the normal hierarchical database search will be used to
b9252d5
+locate a cscope database.
b9252d5
+
b9252d5
+.TP
b9252d5
+2. Next, searches will be done using the cscope database
b9252d5
+directories, "/users/jdoe/sources/proj2",
b9252d5
+"/users/jdoe/sources/proj3/mycscope.out", and
b9252d5
+"/users/jdoe/sources/proj4".  Note that, instead of the file,
b9252d5
+"cscope.out", the file, "mycscope.out", will be used in the
b9252d5
+directory "/users/jdoe/sources/proj3".
b9252d5
+
b9252d5
+.TP
b9252d5
+3. If a match was found, searching will stop.
b9252d5
+
b9252d5
+.TP
b9252d5
+4. If a match was not found, searching will be done using
b9252d5
+"/some/master/directory", and the command-line options "-d"
b9252d5
+and "-I/usr/local/include" will be passed to cscope.
b9252d5
+
b9252d5
+.TP
b9252d5
+If the current buffer's directory matches the regexp,
b9252d5
+"^/users/jdoe/sources/gnome", then the following search will be
b9252d5
+done:
b9252d5
+
b9252d5
+.TP
b9252d5
+The search will be done only using the directory,
b9252d5
+"/master/gnome/database".  The "-d" option will be passed to
b9252d5
+cscope.
b9252d5
+
b9252d5
+.TP
b9252d5
+If the current buffer's directory does not match any of the above
b9252d5
+regexps, then only the normal hierarchical database search will be
b9252d5
+done.
b9252d5
+
b9252d5
+.P
b9252d5
+.SS * Other notes:
b9252d5
+
b9252d5
+.P
b9252d5
+1. The script, "cscope-indexer", uses a sed command to determine
b9252d5
+what is and is not a C/C++/lex/yacc source file.  It's idea of a
b9252d5
+source file may not correspond to yours.
b9252d5
+
b9252d5
+.P
b9252d5
+2. This module is called, "xcscope", because someone else has
b9252d5
+already written a "cscope.el" (although it's quite old).
b9252d5
+
b9252d5
+.SH KNOWN BUGS:
b9252d5
+
b9252d5
+.P
b9252d5
+1. Cannot handle whitespace in directory or file names.
b9252d5
+
b9252d5
+.P
b9252d5
+2. By default, colored faces are used to display results.  If you happen
b9252d5
+to use a black background, part of the results may be invisible
b9252d5
+(because the foreground color may be black, too).  There are at least
b9252d5
+two solutions for this:
b9252d5
+
b9252d5
+.TP
b9252d5
+.BI    "2a. Turn off colored faces, by setting `cscope-use-face' to `nil', eg:"
b9252d5
+.TP
b9252d5
+.BI            "(setq cscope-use-face nil)"
b9252d5
+
b9252d5
+.TP
b9252d5
+.BI   " 2b. Explicitly set colors for the faces used by cscope.  The faces are"
b9252d5
+
b9252d5
+.nf
b9252d5
+	cscope-file-face
b9252d5
+	cscope-function-face
b9252d5
+	cscope-line-number-face
b9252d5
+	cscope-line-face
b9252d5
+	cscope-mouse-face
b9252d5
+.fi
b9252d5
+
b9252d5
+.TP
b9252d5
+The face most likely to cause problems (e.g., black-on-black
b9252d5
+color) is `cscope-line-face'.
b9252d5
+
b9252d5
+.P
b9252d5
+3. The support for cscope databases different from that specified by
b9252d5
+`cscope-database-file' is quirky.  If the file does not exist, it
b9252d5
+will not be auto-created (unlike files names by
b9252d5
+`cscope-database-file').  You can manually force the file to be
b9252d5
+created by using touch(1) to create a zero-length file; the
b9252d5
+database will be created the next time a search is done.
bf72a06
--- cscope-15.6/doc/Makefile.in.orig	2006-09-30 11:14:57.000000000 -0400
bf72a06
+++ cscope-15.6/doc/Makefile.in	2007-05-25 09:46:04.000000000 -0400
bf72a06
@@ -148,7 +148,7 @@
bf72a06
 sharedstatedir = @sharedstatedir@
bf72a06
 sysconfdir = @sysconfdir@
bf72a06
 target_alias = @target_alias@
bf72a06
-man_MANS = cscope.1
bf72a06
+man_MANS = cscope.1 xcscope.1
bf72a06
 EXTRA_DIST = $(man_MANS)
bf72a06
 all: all-am
bf72a06