⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xcscope.el

📁 tvapp用于播放tv程序
💻 EL
📖 第 1 页 / 共 3 页
字号:
(defcustom cscope-database-regexps nil  "*List to force directory-to-cscope-database mappings.This is a list of `(REGEXP DBLIST [ DBLIST ... ])', where:REGEXP is a regular expression matched against the current buffer'scurrent directory.  The current buffer is typically some source file,and you're probably searching for some symbol in or related to thisfile.  Basically, this regexp is used to relate the current directoryto a cscope database.  You need to start REGEXP with \"^\" if you wantto match from the beginning of the current directory.DBLIST is a list that contains one or more of:    ( DBDIR )    ( DBDIR ( OPTIONS ) )    ( t )    tHere, DBDIR is a directory (or a file) that contains a cscope database.If DBDIR is a directory, then it is expected that the cscope database,if present, has the filename given by the variable,`cscope-database-file'; if DBDIR is a file, then DBDIR is the path nameto a cscope database file (which does not have to be the same as thatgiven by `cscope-database-file').  If only DBDIR is specified, then thatcscope database will be searched without any additional cscopecommand-line options.  If OPTIONS is given, then OPTIONS is a list ofstrings, where each string is a separate cscope command-line option.In the case of \"( t )\", this specifies that the search is to use thenormal hierarchical database search.  This option is used toexplicitly search using the hierarchical database search either beforeor after other cscope database directories.If \"t\" is specified (not inside a list), this tells the searchingmechanism to stop searching if a match has been found (at the pointwhere \"t\" is encountered).  This is useful for those projects thatconsist of many subprojects.  You can specify the most-usedsubprojects first, followed by a \"t\", and then followed by a mastercscope database directory that covers all subprojects.  This willcause the most-used subprojects to be searched first (hopefullyquickly), and the search will then stop if a match was found.  If not,the search will continue using the master cscope database directory.Here, `cscope-database-regexps' is generally not used, as the normalhierarchical database search is sufficient for placing and/or locatingthe cscope databases.  However, there may be cases where it makessense to place the cscope databases away from where the source filesare kept; in this case, this variable is used to determine themapping.This module searches for the cscope databases by first using thisvariable; if a database location cannot be found using this variable,then the current directory is searched, then the parent, then theparent's parent, until a cscope database directory is found, or theroot directory is reached.  If the root directory is reached, thecurrent directory will be used.A cscope database directory is one in which EITHER a cscope databasefile (e.g., \"cscope.out\") OR a cscope file list (e.g.,\"cscope.files\") exists.  If only \"cscope.files\" exists, thecorresponding \"cscope.out\" will be automatically created by cscopewhen a search is done.  By default, the cscope database file is called\"cscope.out\", but this can be changed (on a global basis) via thevariable, `cscope-database-file'.  There is limited support for cscopedatabases that are named differently than that given by`cscope-database-file', using the variable, `cscope-database-regexps'.Here is an example of `cscope-database-regexps':        (setq cscope-database-regexps              '(                ( \"^/users/jdoe/sources/proj1\"                  ( t )                  ( \"/users/jdoe/sources/proj2\")                  ( \"/users/jdoe/sources/proj3/mycscope.out\")                  ( \"/users/jdoe/sources/proj4\")                  t                  ( \"/some/master/directory\" (\"-d\" \"-I/usr/local/include\") )                  )                ( \"^/users/jdoe/sources/gnome/\"                  ( \"/master/gnome/database\" (\"-d\") )                  )                ))If the current buffer's directory matches the regexp,\"^/users/jdoe/sources/proj1\", then the following search will bedone:    1. First, the normal hierarchical database search will be used to       locate a cscope database.    2. Next, searches will be done using the cscope database       directories, \"/users/jdoe/sources/proj2\",       \"/users/jdoe/sources/proj3/mycscope.out\", and       \"/users/jdoe/sources/proj4\".  Note that, instead of the file,       \"cscope.out\", the file, \"mycscope.out\", will be used in the       directory \"/users/jdoe/sources/proj3\".    3. If a match was found, searching will stop.    4. If a match was not found, searching will be done using       \"/some/master/directory\", and the command-line options \"-d\"       and \"-I/usr/local/include\" will be passed to cscope.If the current buffer's directory matches the regexp,\"^/users/jdoe/sources/gnome\", then the following search will bedone:    The search will be done only using the directory,    \"/master/gnome/database\".  The \"-d\" option will be passed to    cscope.If the current buffer's directory does not match any of the aboveregexps, then only the normal hierarchical database search will bedone."  :type '(repeat (list :format "%v"		       (choice :value ""			       (regexp :tag "Buffer regexp")			       string)		       (choice :value ""			       (directory :tag "Cscope database directory")			       string)		       (string :value ""			       :tag "Optional cscope command-line arguments")		       ))  :group 'cscope)(defcustom cscope-name-line-width -30  "*The width of the combined \"function name:line number\" field in thecscope results buffer.  If negative, the field is left-justified."  :type 'integer  :group 'cscope)(defcustom cscope-truncate-lines truncate-lines  "*The value of `truncate-lines' to use in cscope buffers.This variable exists because it can be easier to read cscope bufferswith truncated lines, while other buffers do not have truncated lines."  :type 'boolean  :group 'cscope)(defcustom cscope-display-times t  "*If non-nil, display how long each search took.The elasped times are in seconds.  Floating-point support is requiredfor this to work."  :type 'boolean  :group 'cscope)(defcustom cscope-program "cscope"  "*The pathname of the cscope executable to use."  :type 'string  :group 'cscope)(defcustom cscope-index-file "cscope.files"  "*The name of the cscope file list file."  :type 'string  :group 'cscope)(defcustom cscope-database-file "cscope.out"  "*The name of the cscope database file."  :type 'string  :group 'cscope)(defcustom cscope-edit-single-match t  "*If non-nil and only one match is output, edit the matched location."  :type 'boolean  :group 'cscope)(defcustom cscope-display-cscope-buffer t  "*If non-nil automatically display the *cscope* buffer after each search."  :type 'boolean  :group 'cscope)(defcustom cscope-stop-at-first-match-dir nil  "*If non-nil, stop searching through multiple databases if a match is found.This option is useful only if multiple cscope database directories are beingused.  When multiple databases are searched, setting this variable to non-nilwill cause searches to stop when a search outputs anything; no databases afterthis one will be searched."  :type 'boolean  :group 'cscope)(defcustom cscope-use-relative-paths t  "*If non-nil, use relative paths when creating the list of files to index.The path is relative to the directory in which the cscope databasewill be created.  If nil, absolute paths will be used.  Absolute pathsare good if you plan on moving the database to some other directory(if you do so, you'll probably also have to modify\`cscope-database-regexps\').  Absolute paths  may also be good if youshare the database file with other users (you\'ll probably want tospecify some automounted network path for this)."  :type 'boolean  :group 'cscope)(defcustom cscope-index-recursively t  "*If non-nil, index files in the current directory and all subdirectories.If nil, only files in the current directory are indexed.  Thisvariable is only used when creating the list of files to index, orwhen creating the list of files and the corresponding cscope database."  :type 'boolean  :group 'cscope)(defcustom cscope-no-mouse-prompts nil  "*If non-nil, use the symbol under the cursor instead of prompting.Do not prompt for a value, except for when seaching for a egrep patternor a file."  :type 'boolean  :group 'cscope)(defcustom cscope-suppress-empty-matches t  "*If non-nil, delete empty matches.")(defcustom cscope-indexing-script "cscope-indexer"  "*The shell script used to create cscope indices."  :type 'string  :group 'cscope)(defcustom cscope-symbol-chars "A-Za-z0-9_"  "*A string containing legal characters in a symbol.The current syntax table should really be used for this."  :type 'string  :group 'cscope)(defcustom cscope-filename-chars "-.,/A-Za-z0-9_~!@#$%&+=\\\\"  "*A string containing legal characters in a symbol.The current syntax table should really be used for this."  :type 'string  :group 'cscope)(defcustom cscope-allow-arrow-overlays t  "*If non-nil, use an arrow overlay to show target lines.Arrow overlays are only used when the following functions are used:    cscope-show-entry-other-window    cscope-show-next-entry-other-window    cscope-show-prev-entry-other-windowThe arrow overlay is removed when other cscope functions are used.Note that the arrow overlay is not an actual part of the text, and canbe removed by quitting the cscope buffer."  :type 'boolean  :group 'cscope)(defcustom cscope-overlay-arrow-string "=>"  "*The overlay string to use when displaying arrow overlays."  :type 'string  :group 'cscope)(defvar cscope-minor-mode-hooks nil  "List of hooks to call when entering cscope-minor-mode.")(defconst cscope-separator-line  "-------------------------------------------------------------------------------\n"  "Line of text to use as a visual separator.Must end with a newline.");;;;;;;; Faces for fontification;;;;(defcustom cscope-use-face t  "*Whether to use text highlighting (

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -