Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
;ELC
;;; Compiled by leavens@LEAVENS on Mon Sep 15 16:19:47 2003
;;; from file d:/emacs/ecb/ecb.el
;;; in Emacs version 21.3.1
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.
;;; This file contains multibyte non-ASCII characters
;;; and therefore cannot be loaded into Emacs 19.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "20")))
(error "`ecb.el' was compiled for Emacs 20 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#@22 Current ECB version.
(defconst ecb-version "1.96" (#$ . 581))
(byte-code "\306\307!\210\306\310!\210\311\312\313\217\311\314\315\217\311\316\317\217?\205 \320 ?\205* ?\205( \321\322P\n?\205; \2038 ?\2059 \321\323PQ\203I \203I \n\204Y \324 \203V \325\326\"\210\202Y \327 \210,\330\331\f\332\305!\203g
\206h \333\332\334!\203s \206t \333\332\335!\203 \206\200 \333%\210\306\336!\210\306\337!\210\306\340!\210\306\341!\210\306\342!\210\306\343!\210\306\344!\210\306\345!\210\306\346!\210\306\347!\210\306\350!\210\306\351!\210\306\352!\210\306\353!\210\306\354!\210\306\355!\210\306\356!\210\306\357!\207" [semantic-load-ok eieio-load-ok speedbar-load-ok missing-msg ecb-version semantic-version require ecb-upgrade ecb-util nil (byte-code "\300\301!\207" [require semantic] 2) ((error)) (byte-code "\300\301!\207" [require eieio] 2) ((error)) (byte-code "\300\301!\207" [require speedbar] 2) ((error)) "the package semantic" " and the " "package eieio" "package speedbar" ecb-noninteractive ecb-error "ECB is missing %s!" ecb-check-requirements message "ECB %s uses semantic %s, eieio %s and speedbar %s." boundp "" eieio-version speedbar-version semantic-load tree-buffer ecb-jde ecb-layout ecb-create-layout ecb-mode-line ecb-help ecb-navigate ecb-eshell ecb-compilation ecb-cycle ecb-face ecb-tod ecb-speedbar ecb-autogen ecb-winman-support easymenu assoc] 7)
#@39 The names of the tree-buffers of ECB.
(defvar ecb-tree-buffers nil (#$ . 1983))
#@32 The currently selected method.
(defvar ecb-selected-method-start 0 (#$ . 2069))
#@39 Path to currently selected directory.
(defvar ecb-path-selected-directory nil (#$ . 2155))
#@36 Path to currently selected source.
(defvar ecb-path-selected-source nil (#$ . 2252))
#@42 Major-mode of currently selected source.
(defvar ecb-major-mode-selected-source nil (#$ . 2343))
#@40 The currently selected Semantic token.
(defvar ecb-selected-token nil (#$ . 2446))
(make-variable-buffer-local 'ecb-selected-token)
#@36 Path to currently selected source.
(defvar ecb-methods-root-node nil (#$ . 2584))
#@79 Only true if any item in any tree-buffer has been selected in recent
command.
(defvar ecb-item-in-tree-buffer-selected nil (#$ . 2672))
(defalias 'ecb-initialize-internal-vars #[nil "\306\307\306\306\306\306\306\211\207" [ecb-tree-buffers ecb-selected-method-start ecb-path-selected-directory ecb-path-selected-source ecb-major-mode-selected-source ecb-selected-token nil 0 ecb-methods-root-node] 2])
#@98 Do not set this variable directly. Use `ecb-activate' and
`ecb-deactivate' or `ecb-minor-mode'.!
(defvar ecb-minor-mode nil (#$ . 3087))
#@55 Window configuration used after the ECB is activated.
(defvar ecb-activated-window-configuration nil (#$ . 3230))
(byte-code "\300\301\302\303\304\305\306\307&\210\300\310\302\311\304\301\306\307&\210\300\312\302\313\304\301\306\307&\210\300\314\302\315\304\301\306\307&\210\300\316\302\317\304\301\306\307&\210\300\320\302\321\304\301\306\307&\210\300\322\302\323\304\301\306\307&\207" [custom-declare-group ecb nil "Emacs code browser." :group tools :prefix "ecb-" ecb-general "General settings for the Emacs code browser." ecb-directories "Settings for the directories buffer in the Emacs code browser." ecb-sources "Settings for the source buffers in the Emacs code browser." ecb-methods "Settings for the methods buffer in the Emacs code browser." ecb-history "Settings for the history buffer in the Emacs code browser." ecb-non-semantic "Settings for parsing and displaying non-semantic files."] 8)
#@104 *Tell ECB to use a recursive edit.
If set then it can easily be deactivated by (keyboard-escape-quit).
(custom-declare-variable 'ecb-use-recursive-edit 'nil '(#$ . -4149) :group 'ecb-general :type 'boolean)
#@117 *Automatically startup ECB when Emacs starts up.
This should only be true if you always want to run `ecb-activate'.
(custom-declare-variable 'ecb-auto-activate 'nil '(#$ . -4363) :group 'ecb-general :type 'boolean)
#@1609 *List of major-modes for which ECB should be activated or shown.
Do not mistake this option with `ecb-auto-activate'. The latter one is for
activating ECB after Emacs-startup (even without opening a buffer) and this
one is for defining for which major-modes ECB should be activated if the mode
goes active!
The behavior is like follows: If a mode is contained in this option ECB is
activated after activating this mode (if ECB was deactivated before) or the
ECB-windows are shown if ECB was already active but its windows were hidden.
In every case ECB is activated with visible ECB-windows afterwards!
For every major mode there can be specified an `ecb-layout-name':
- default: The value customized with `ecb-layout-name' is chosen.
- a string: ECB is activated with this layout-name. This changes the value of
`ecb-layout-name' but only for current emacs-session!
But the layout is only changed if ECB was activated, if just the ECB-windows
were shown, the current layout is used!
There are two additional options:
- none: No major-modes should activate ECB automatically.
- a regexp: This means all major-modes which are not listed in
`ecb-major-modes-deactivate' activate ECB except the `symbol-name' of
`major-mode' matches this regexp. If this option is set then the default
regexp excludes all Info- and customize-buffers because this buffers should
not change anything in the ECB-activation state.
Any auto. activation is only done if the current-frame is unsplitted to avoid
changing unnecessarily or unintentionally the frame-layout if the user just
jumps between different windows.
(custom-declare-variable 'ecb-major-modes-activate ''none '(#$ . -4586) :group 'ecb-general :type '(radio :tag "Modes for activation" (const :tag "None" none) (regexp :tag "All except deactivated but not" :value "\\(Info\\|custom\\)-mode") (repeat :tag "Mode list" (cons (symbol :tag "Major-mode") (choice :tag "Layout" :menu-tag "Layout" :value default (const :tag "Default" default) (string :tag "Layout-name"))))))
#@1863 *List of major-modes for which ECB should be deactivated or hidden.
Specify if ECB should be deactivated or at least hidden if a `major-mode' is
active. For each `major-mode' there must be added an action what should be done:
- hide: ECB just hides all the ECB windows like with `ecb-hide-ecb-windows'.
- deactivate: ECB is completely deactivated after activating the `major-mode'.
There are two additional options:
- none: No major-modes should deactivate/hide ECB automatically.
- A cons for the meaning "All except the activated modes of
`ecb-major-modes-activate'". The car of this cons can be:
+ hide-all-except-activated: All major-modes which are not listed in
`ecb-major-modes-activate' hide the ECB-windows.
+ deactivate-all-except-activated: All major-modes which are not listed in
`ecb-major-modes-activate' deactivate ECB.
The cdr of this cons is a regexp: This means all major-modes which are not
listed in `ecb-major-modes-activate' deactivate/hide ECB except the
`symbol-name' of `major-mode' matches this regexp. If this option is set then
the default regexp excludes all Info- and customize-buffers because this
buffers should not change anything in the ECB-activation state.
If a `major-mode' is listed in `ecb-major-modes-activate' as well as in
`ecb-major-modes-deactivate' then ECB is activated!
Any auto. deactivation/hiding is only done if the edit-window of ECB is
unsplitted and point is in the edit-window to avoid changing unnecessarily or
unintentionally the frame-layout if the user just jumps between different
edit-windows, the tree-windows and the compile-window of ECB.
There is one exception from this rule: If the edit-window is splitted and one
window contains a dired-buffer and a "ECB-deactivating"-file is opened via
dired then opening this file deactivates ECB (rsp. hides the ECB-windows).
(custom-declare-variable 'ecb-major-modes-deactivate ''none '(#$ . -6620) :group 'ecb-general :type '(radio :tag "Modes for deactivation" (const :tag "None" none) (cons :tag "All except activated" (choice :tag "Action" :menu-tag "Action" :value hide-all-except-activated (const :tag "Hide ECB-windows" hide-all-except-activated) (const :tag "Deactivate ECB" deactivate-all-except-activated)) (regexp :tag "But not for these modes" :value "\\(Info\\|custom\\)-mode")) (repeat :tag "Mode list" (cons (symbol :tag "Major-mode") (choice :tag "Action" :menu-tag "Action" :value hide (const :tag "Just Hide" hide) (const :tag "Deactivate" deactivate))))))
#@162 *Paths where to find code sources.
Each path can have an optional alias that is used as it's display name. If no
alias is set, the path is used as display name.
(custom-declare-variable 'ecb-source-path 'nil '(#$ . -9139) :group 'ecb-directories :set #'(lambda (symbol value) (set symbol value) (if (and ecb-minor-mode (functionp 'ecb-update-directories-buffer)) (ecb-update-directories-buffer))) :type '(repeat (choice :tag "Display type" :menu-tag "Display type" (directory :tag "Path") (list :tag "Path with alias" (directory :tag "Path") (string :tag "Alias")))))
#@1018 *Add path of a file to `ecb-source-path' if not already contained.
This is done during the auto. windows synchronization which happens if a file
is opened not via the file/directory-browser of ECB. In such a situation ECB
adds the path of the new file auto. to `ecb-source-path' at least temporally
for the current Emacs session. This option defines two things:
1. Should only the root-part (which means for Unix-like systems always '/'
and for windows-like systems the drive) of the new file be added as
source-path to `ecb-source-path' or the whole directory-part?
2. Should this path be added for future sessions too?
The value of this option is a cons-cell where the car is a boolean for 1. and
the cdr is a boolean for 2.
A value of not nil for the car (1.) is reasonably if a user often opens files
not via the ECB-browser which are not located in any of the paths of
`ecb-source-path' because then only one path for each drive (windows) or the
root-path (unix) is added to the directory buffer of ECB.
(custom-declare-variable 'ecb-add-path-for-not-matching-files ''(t) '(#$ . -9715) :group 'ecb-directories :type '(cons (boolean :tag "Add only root path") (boolean :tag "Ask for saving for future sessions")))
#@253 List of functions to call for finding sources.
Each time the function `ecb-update-directories-buffer' is called, the
functions in this variable will be evaluated. Such a function must return
either nil or a list of strings where each string is a path.
(defvar ecb-source-path-functions nil (#$ . 10948))
#@825 *Automatically display current default-directory after activating ECB.
If a file-buffer is displayed in the edit-window then ECB synchronizes its
tree-buffers to this file-buffer - at least if the option `ecb-window-sync' it
not nil. So for this situation `ecb-display-default-dir-after-start' takes no
effect but this option is for the case if no file-buffer is displayed in the
edit-window after startup:
If true then ECB selects autom. the current default-directory after activation
even if no file-buffer is displayed in the edit-window. This is useful if ECB
is autom. activated after startup of Emacs and Emacs is started without a
file-argument. So the directory from which the startup has performed is auto.
selected in the ECB-directories buffer and the ECB-sources buffer displays the
contents of this directory.
(custom-declare-variable 'ecb-display-default-dir-after-start 't '(#$ . -11259) :group 'ecb-directories :type 'boolean)
#@180 *Show source files in directories buffer.
The value is either 'always or 'never or a list of layout-names for which
layouts sources should be displayed in the directories window.
(custom-declare-variable 'ecb-show-sources-in-directories-buffer ''("left7" "left13" "left14" "left15") '(#$ . -12210) :group 'ecb-directories :type '(radio (const :tag "Always" :value always) (const :tag "Never" :value never) (repeat :tag "With these layouts" (string :tag "Layout name"))))
#@1075 *If true then uses speedbar for directories, sources or methods.
This means that speedbar is integrated in the ECB-frame and is displayed in
that window normally displaying the standard ECB-directories-buffer,
ECB-sources-buffer or ECB-methods-buffer.
This option takes effect in all layouts which contain either a directory
window, a sources window or a method window.
This option can have four valid values:
- nil: Do not use speedbar (default)
- dir: Use speedbar instead of the standard directories-buffer
- source: Use speedbar instead of the standard sources-buffer
- method: Use speedbar instead of the standard methods-buffer
Note: For directories and sources a similar effect and usability is available
by setting this option to nil (or 'method) and setting
`ecb-show-sources-in-directories-buffer' to not nil, because this combination
displays also directories and sources in one window.
`ecb-use-speedbar-instead-native-tree-buffer' is for people who like the
speedbar way handling directories and source-files or methods and want it in
conjunction with ECB.
(custom-declare-variable 'ecb-use-speedbar-instead-native-tree-buffer 'nil '(#$ . -12689) :group 'ecb-general :group 'ecb-directories :group 'ecb-sources :group 'ecb-methods :type '(radio (const :tag "Do not use speedbar" :value nil) (const :tag "For directories" :value dir) (const :tag "For sources" :value source) (const :tag "For methods" :value method)) :set #'(lambda (sym val) (set sym val) (let ((ecb-redraw-layout-quickly nil)) (ecb-redraw-layout-full))))
#@1973 *Update an integrated speedbar after selecting a directory.
If not nil then an integrated speedbar will be updated after selecting a
directory in the ECB-directories-buffer so the speedbar displays the contents
of that directory.
Of course this option makes only sense if the integrated speedbar is displayed
in addition to the ECB-directories-buffer.
This option can have the following values:
- t: Always update speedbar.
- nil: Never update speedbar.
- auto: Update when senseful (see scenarios below)
- : A user-defined function. The function is called after a
directory is selected, gets the selected directory as argument and has to
return nil if the the integrated speedbar should NOT be updated.
Two example-scenarios where different values for this option can be senseful:
If `ecb-show-sources-in-directories-buffer' is not nil or you have a layout
where an ECB-sources-buffer is visible then you probably want to use the
ECB-directories-buffer (and/or the ECB-sources-buffer) for directory- and
file-browsing. If you have in addition an integrated speedbar running then you
probably want to use speedbar instead of the ECB-methods-buffer for
source-content-browsing. In this case you probably want the speedbar not be
updated because you do not need speedbar reflecting the current-directory
contents but only the contents of the currently selected source-file and the
integrated speedbar updates itself autom. for the latter one!
If `ecb-show-sources-in-directories-buffer' is nil and there is also no
ECB-sources-buffer visible in the current layout then you probably want to use
an integrated speedbar for browsing directory-contents (i.e. the files) and
file-contents (instead of the ECB-methods-buffer for example). In this case
you probably want the speedbar updated because you need speedbar reflecting
the current-directory contents so you can select files.
The value 'auto (see above) takes exactly these two scenarios into account.
(custom-declare-variable 'ecb-directories-update-speedbar ''auto '(#$ . -14236) :group 'ecb-directories :type '(radio (const :tag "Always" :value t) (const :tag "Never" :value nil) (const :tag "Automatic" :value auto) (function :tag "Custom function")))
(defalias 'ecb-show-sources-in-directories-buffer-p #[nil "\302\232\203 \303\207\304\232\203 \305\207<\205 \235\207" [ecb-show-sources-in-directories-buffer ecb-layout-name never nil always t] 2])
#@1449 *Cache contents of directories.
This can be useful if `ecb-source-path' contains directories with many files
and subdirs, especially if these directories are mounted net-drives ("many"
means here something > 1000, dependent of the speed of the net-connection and
the machine). For these directories actualizing the sources- and/or directories-
buffer of ECB (if displayed in current layout!) can slow down dramatically so
a caching increases speed a lot.
The value of this option is a list where the each element is a cons-cell and
looks like:
( . )
: Regular expression a directory must match to be cached.
: Number of directory contents must exceed this number.
A directory will we only be cached if and only if the directory-name matches
one regexp of this option and its content-number exceeds the related
threshold.
The cache entry for a certain directory will be refreshed and actualized only
by using the POWER-click (see `ecb-primary-secondary-mouse-buttons') in the
directories-buffer of ECB.
Examples:
A value of ("~/bigdir*" . 1000) means the contents of every subdirectory of
the home-directory will be cached if the directory contains more than 1000
entries and its name begins with "bigdir".
A value of (".*" . 1000) caches every directory which has more than 1000
entries.
A value of (".*" . 0) caches every directory regardless of the number of
entries.
(custom-declare-variable 'ecb-cache-directory-contents 'nil '(#$ . -16675) :group 'ecb-directories :type `(repeat (cons (regexp :tag "Directory-regexp") (integer :tag "Filenumber threshold" :value 1000))))
#@409 *Name of the ECB directory buffer.
Because it is not a normal buffer for editing you should enclose the name with
stars, e.g. "*ECB Directories*".
If it is necessary for you you can get emacs-lisp access to the buffer-object of
the ECB-directory-buffer by this name, e.g. by a call of `set-buffer'.
Changes for this option at runtime will take affect only after deactivating and
then activating ECB again!
(custom-declare-variable 'ecb-directories-buffer-name '" *ECB Directories*" '(#$ . -18336) :group 'ecb-directories :type 'string)
#@126 *Directories that should not be included in the directories list.
The value of this variable should be a regular expression.
(custom-declare-variable 'ecb-excluded-directories-regexp '"^\\(CVS\\|\\..*\\)$" '(#$ . -18881) :group 'ecb-directories :type 'regexp)
#@242 *Automatically expand the directory tree to the current source file.
There are three options:
- best: Expand the best-matching source-path
- first: Expand the first matching source-path
- nil: Do not automatically expand the directory tree.
(custom-declare-variable 'ecb-auto-expand-directory-tree ''best '(#$ . -19148) :group 'ecb-directories :type '(radio (const :tag "Best matching" :value best) (const :tag "First matching" :value first) (const :tag "No auto. expand" :value nil)))
#@1090 *Function used for performing a grep.
The popup-menu of the tree-buffers "Directories", "Sources" and
"History" offer to grep the "current" directory:
- Directory-buffer: The grep is performed in the current popup-directory after
clicking the right mouse-button onto a node.
- Sources-buffer: The grep is performed in the current selected directory.
- History-buffer: The grep is performed in the directory of the current
popup-source after clicking the right mouse-button onto a node.
Conditions for such a function:
- The function is called interactively via `call-interactively'
- During the function-call the `default-directory' is temp. set to that
directory mentioned above with "... is performed in ...", i.e. the
function can use the value of `default-directory' to determine the directory
to grep.
- The function must read all it's arguments itself.
- The function is completely responsible for performing the grep itself and
displaying the results.
Normally one of the standard-grepping functions like `grep' or `igrep' (or
some wrappers around it) should be used!
(custom-declare-variable 'ecb-grep-function '(if (fboundp 'igrep) 'igrep 'grep) '(#$ . -19642) :group 'ecb-directories :type 'function)
#@154 *Function used for performing a recursive grep.
For more Details see option `ecb-grep-function' and replace "grep" with
"recursive grep" or "grep-find".
(custom-declare-variable 'ecb-grep-find-function '(if (fboundp 'igrep-find) 'igrep-find 'grep-find) '(#$ . -20874) :group 'ecb-directories :type 'function)
#@401 *Name of the ECB sources buffer.
Because it is not a normal buffer for editing you should enclose the name with
stars, e.g. "*ECB Sources*".
If it is necessary for you you can get emacs-lisp access to the buffer-object of
the ECB-sources-buffer by this name, e.g. by a call of `set-buffer'.
Changes for this option at runtime will take affect only after deactivating and
then activating ECB again!
(custom-declare-variable 'ecb-sources-buffer-name '" *ECB Sources*" '(#$ . -21190) :group 'ecb-sources :type 'string)
#@517 *Specify if files contained in a .cvsignore should be excluded.
Value is a list of regular expressions or nil. If you want to exclude files
listed in a .cvsignore-file from being displayed in the ecb-sources-buffer
then specify a regexp for such a directory.
If you want to exclude the contents of .cvsignore-files for every directory
then you should add one regexp ".*" which matches every directory.
If you never want to exclude the contents of .cvsignore-files then set this
option to nil. This is the default.
(custom-declare-variable 'ecb-sources-exclude-cvsignore 'nil '(#$ . -21715) :group 'ecb-sources :group 'ecb-directories :type '(repeat (regexp :tag "Directory-regexp")))
#@1709 *Specifies which files are shown as source files.
This is done on directory-base, which means for each directory-regexp the
files to display can be specified. If more than one directory-regexp matches
the current selected directory then always the first one (and its related
file-exclude/include-regexps) is used! If no directory-regexp matches then all
files are displayed for the currently selected directory.
Important note: It is recommended that the *LAST* element of this list should
contain an always matching directory-regexp (".*")!
So the value of this option is a list of cons-cells where the car is a
directory regexp and the cdr is a 2 element list where the first element is a
exclude regexp and the second element is a include regexp. A file is displayed
in the sources-buffer of ECB iff: The file does not match the exclude regexp
OR the file matches the include regexp.
But regardless of the value of this option a file F is never displayed in the
sources-buffer if the directory matches `ecb-sources-exclude-cvsignore'
and the directory contains a file .cvsignore which contains F as an entry!
There are three predefined and useful combinations of an exclude and include
regexp:
- All files
- All, but no backup, object, lib or ini-files (except .emacs and .gnus). This
means all files except those starting with ".", "#" or ending with
"~", ".elc", ".obj", ".o", ".lib", ".dll", ".a", ".so".
(but including .emacs and .gnus)
- Common source file types (.c, .java etc.)
In addition to these predefined values a custom exclude and include
combination can be defined.
Tips for the directory- and file-regexps: "$^" matches no files/directories,
".*" matches all files/directories.
(custom-declare-variable 'ecb-source-file-regexps ''((".*" "\\(^\\(\\.\\|#\\)\\|\\(~$\\|\\.\\(elc\\|obj\\|o\\|class\\|lib\\|dll\\|a\\|so\\|cache\\)$\\)\\)" "^\\.\\(emacs\\|gnus\\)$")) '(#$ . -22409) :group 'ecb-sources :type '(repeat (cons :tag "Directory file-spec" (regexp :tag "Directory regexp") (choice :tag "Files to display" :menu-tag "Files to display" (const :tag "All files" :value ("" "")) (const :tag "All, but no backups, objects, etc..." :value ("\\(^\\(\\.\\|#\\)\\|\\(~$\\|\\.\\(elc\\|obj\\|o\\|class\\|lib\\|dll\\|a\\|so\\|cache\\)$\\)\\)" "^\\.\\(emacs\\|gnus\\)$")) (const :tag "Common source file types" :value ("" "\\(\\(M\\|m\\)akefile\\|.*\\.\\(java\\|el\\|c\\|cc\\|h\\|hh\\|txt\\|html\\|texi\\|info\\|bnf\\)\\)$")) (list :tag "Custom" (regexp :tag "Exclude regexp" :value "") (regexp :tag "Include regexp" :value ""))))))
#@43 *Show the file extension of source files.
(custom-declare-variable 'ecb-show-source-file-extension 't '(#$ . -24969) :group 'ecb-sources :type 'boolean)
#@254 *Defines how the source files are sorted.
- 'name: Sorting by name.
- 'extension: Sorting first by name and then by extension.
- nil: No sorting, means source files are displayed in the sequence returned by
`directory-files' (called without sorting).
(custom-declare-variable 'ecb-sources-sort-method ''name '(#$ . -25129) :group 'ecb-sources :type '(radio (const :tag "By name" :value name) (const :tag "By extension" :value extension) (const :tag "No sorting" :value nil)))
#@401 *Name of the ECB history buffer.
Because it is not a normal buffer for editing you should enclose the name with
stars, e.g. "*ECB History*".
If it is necessary for you you can get emacs-lisp access to the buffer-object of
the ECB-history-buffer by this name, e.g. by a call of `set-buffer'.
Changes for this option at runtime will take affect only after deactivating and
then activating ECB again!
(custom-declare-variable 'ecb-history-buffer-name '" *ECB History*" '(#$ . -25614) :group 'ecb-history :type 'string)
#@41 *Sorts the items in the history buffer.
(custom-declare-variable 'ecb-sort-history-items 'nil '(#$ . -26138) :group 'ecb-history :type 'boolean)
#@360 *The entries of the history buffer to delete with `ecb-clear-history'.
Three options are available:
- not-existing-buffers: All entries which represent a buffer-name not existing
anymore in the bufferlist will be cleared. Probably the most senseful value.
- existing-buffers: The opposite of 'not-existing-buffers.
- all: The whole history will be cleared.
(custom-declare-variable 'ecb-clear-history-behavior ''not-existing-buffers '(#$ . -26290) :group 'ecb-history :type '(radio (const :tag "Not existing buffers" :value not-existing-buffers) (const :tag "Existing buffers" :value existing-buffers) (const :tag "All entries" :value all)))
#@320 *Define if `kill-buffer' should also clear the history.
There are three options:
- auto: Removes automatically the corresponding history-entry after the buffer
has been killed.
- ask: Asks, if the history-entry should be removed after the kill.
- nil: `kill-buffer' does not affect the history (this is the default).
(custom-declare-variable 'ecb-kill-buffer-clears-history 'nil '(#$ . -26941) :group 'ecb-history :type '(radio (const :tag "Remove history entry automatically" :value auto) (const :tag "Ask if history entry should be removed" :value ask) (const :tag "Do not clear the history" :value nil)))
#@51 *The name to use for items in the history buffer.
(custom-declare-variable 'ecb-history-item-name ''buffer-name '(#$ . -27557) :group 'ecb-history :type '(radio (const :tag "Buffer name" :value buffer-name) (const :tag "File name" :value file-name)))
#@401 *Name of the ECB methods buffer.
Because it is not a normal buffer for editing you should enclose the name with
stars, e.g. "*ECB Methods*".
If it is necessary for you you can get emacs-lisp access to the buffer-object of
the ECB-methods-buffer by this name, e.g. by a call of `set-buffer'.
Changes for this option at runtime will take affect only after deactivating and
then activating ECB again!
(custom-declare-variable 'ecb-methods-buffer-name '" *ECB Methods*" '(#$ . -27815) :group 'ecb-methods :type 'string)
#@735 *Expand the methods-token-tree automatically if node invisible.
This option has only an effect if option `ecb-highlight-token-with-point' is
switched on too. There are three possible choices:
- nil: No auto. expanding of the method buffer.
- expand-spec: Auto expand the method-buffer nodes if the node belonging to
current token under point is invisible because its parent-node is collapsed.
But expanding is only done if the type of the token under point in the
edit-buffer is contained in `ecb-methods-nodes-expand-spec'.
- all: Like expand-spec but expands all tokens regardless of the setting in
`ecb-methods-nodes-expand-spec'.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-auto-expand-token-tree ''expand-spec '(#$ . -28340) :group 'ecb-methods :type '(radio (const :tag "No auto. expand" :value nil) (const :tag "Expand as specified" :value expand-spec) (const :tag "Expand all" :value all)))
#@657 *Switch off auto expanding in the ECB-method buffer.
If on then auto expanding is switched off after explicit expanding or
collapsing by `ecb-expand-methods-nodes'.
This is done with `ecb-toggle-auto-expand-token-tree' so after the switch off
the auto expanding feature can again switched on quickly.
But after explicitly expanding/collapsing the methods-buffer to a certain
level the auto. expanding could undo this when the node belonging to current
token under point in the edit-window is invisible after
`ecb-expand-methods-nodes' - then the auto. expand feature would make this
node immediately visible and destroys the explicitly set expand-level.
(custom-declare-variable 'ecb-expand-methods-switch-off-auto-expand 't '(#$ . -29332) :group 'ecb-methods :type 'boolean)
#@174 Only set by customizing `ecb-tree-RET-selects-edit-window' or calling
`ecb-toggle-RET-selects-edit-window'!
Do not set this variable directly, it is only for internal uses!
(defvar ecb-tree-RET-selects-edit-window--internal nil (#$ . 30117))
#@901 *In which tree-buffers RET should finally select an edit-window.
If a name of an ECB tree-buffer is contained in this list then hitting RET in
this tree-buffer selects as last action the right edit-window otherwise only
the right action is performed (opening a new source, selecting a method etc.)
but point stays in the tree-buffer.
A special remark for the `ecb-directories-buffer-name': Of course here the
edit-window is only selected if the name of the current layout is contained in
`ecb-show-sources-in-directories-buffer' or if the value of
`ecb-show-sources-in-directories-buffer' is 'always (otherwise this would not
make any sense)!
The setting in this option is only the default for each tree-buffer. With
`ecb-toggle-RET-selects-edit-window' the behavior of RET can be changed fast
and easy in a tree-buffer without customizing this option, but of course not
for future Emacs sessions!
(custom-declare-variable 'ecb-tree-RET-selects-edit-window '(list ecb-directories-buffer-name ecb-sources-buffer-name ecb-methods-buffer-name ecb-history-buffer-name) '(#$ . -30366) :group 'ecb-general :set #'(lambda (sym val) (set sym val) (setq ecb-tree-RET-selects-edit-window--internal (ecb-copy-list val))) :type `(set (const :tag ,ecb-directories-buffer-name :value ,ecb-directories-buffer-name) (const :tag ,ecb-sources-buffer-name :value ,ecb-sources-buffer-name) (const :tag ,ecb-methods-buffer-name :value ,ecb-methods-buffer-name) (const :tag ,ecb-history-buffer-name :value ,ecb-history-buffer-name)))
#@70 *Automatically updating the ECB method buffer after saving a source.
(custom-declare-variable 'ecb-auto-update-methods-after-save 't '(#$ . -31886) :group 'ecb-methods :type 'boolean)
#@158 *Adds font-locking (means highlighting) to the ECB-method buffer.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-font-lock-tokens 't '(#$ . -32077) :group 'ecb-methods :set #'(lambda (symbol value) (set symbol value) (ecb-clear-token-tree-cache)) :type 'boolean :initialize 'custom-initialize-default)
#@106 *Set the mark after jumping to a token from the ECB-method buffer.
If set the user can easily jump back.
(custom-declare-variable 'ecb-token-jump-sets-mark 't '(#$ . -32460) :group 'ecb-methods :type 'boolean)
#@219 Alist containing one element for every member of
`semantic-token->text-functions' where the value is the member of
`semantic-token->text-functions' with name "semantic-XYZ" and the key is a
symbol with name "ecb-XYZ".
(defconst ecb-token->text-functions (mapcar #[(fkt) "\301\302\303\304\305\306!\307\"A\307#P!B\207" [fkt intern "ecb-" mapconcat identity split-string symbol-name "-"] 7] semantic-token->text-functions) (#$ . 32677))
#@548 *How ECB displays bucket tokens in the ECB methods buffer.
Bucket tokens are tokens like "[+] Variables", "[+] Dependencies" etc. The
name of the bucket-token comes from semantic but you can define a prefix, a
suffix and a special face for the bucket token.
The default are empty prefix/suffix-strings and 'ecb-bucket-token-face'. But
an alternative can be for example '("[" "]" nil) which means no special
face and a display like "[+] []".
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-bucket-token-display ''("" "" ecb-bucket-token-face) '(#$ . -33120) :group 'ecb-methods :set #'(lambda (symbol value) (set symbol value) (ecb-clear-token-tree-cache)) :type '(list (string :tag "Bucket-prefix" :value "[") (string :tag "Bucket-suffix" :value "]") (choice :tag "Bucket-face" :menu-tag "Bucket-face" (const :tag "No special face" :value nil) (face :tag "Face" :value ecb-bucket-token-face))) :initialize 'custom-initialize-default)
#@2194 *Function to use for displaying tokens in the methods buffer.
This functionality is set on major-mode base, i.e. for every major-mode a
different function can be used. The value of this option is a list of
cons-cells:
- The car is either a major-mode symbol or the special symbol 'default which
means if no function for a certain major-mode is defined then the cdr of
the 'default cons-cell is used.
- The cdr is the function used for displaying a token in the related
major-mode.
Every function is called with 3 arguments:
1. The token
2. The parent-token of token (can be nil)
3. The value of `ecb-font-lock-tokens'.
Every function must return the display of the token as string, colorized if
the third argument is not nil.
The following functions are predefined:
- All functions of `semantic-token->text-functions'.
- For every function in `semantic-token->text-functions' with name
"semantic-XYZ" a function with name "ecb-XYC" is predefined. The
differences between the semantic- and the ECB-version are:
+ The ECB-version displays for type tokens only the type-name and nothing
else (exception: In c++-mode a template specifier is appended to the
type-name if a template instead a normal class).
+ The ECB-version displays type-tokens according to the setting in
`ecb-type-token-display'. This is useful for better recognizing
different classes, structs etc. in the ECB-method window.
For all tokens which are not types the display of the ECB-version is
identical to the semantic version. Example: For `semantic-name-nonterminal'
the pendant is `ecb-name-nonterminal'.
This functionality also allows the user to display tokens as UML. To enable
this functionality set the function for a major-mode (e.g. `jde-mode') to
`semantic-uml-concise-prototype-nonterminal',
`semantic-uml-prototype-nonterminal', or
`semantic-uml-abbreviate-nonterminal' or the ECB-versions of these functions.
If the value is nil, i.e. neither a function for a major-mode is defined nor
the special 'default, then `semantic-prototype-nonterminal' is used for
displaying the tokens.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-token-display-function ''((default . ecb-prototype-nonterminal)) '(#$ . -34150) :group 'ecb-methods :set #'(lambda (symbol value) (set symbol value) (ecb-clear-token-tree-cache)) :type (list 'repeat ':tag "Display functions per mode" (list 'cons ':tag "Mode token display" '(symbol :tag "Major mode") (nconc (list 'choice ':tag "Display function" ':menu-tag '"Display function") (append (mapcar (lambda (f) (list 'const ':tag (symbol-name (car f)) (car f))) ecb-token->text-functions) (mapcar (lambda (f) (list 'const ':tag (symbol-name (cdr f)) (cdr f))) ecb-token->text-functions) (list '(function :tag "Function")))))) :initialize 'custom-initialize-default)
#@3112 *How to display semantic type-tokens in the methods buffer.
Normally all token displaying, colorizing and facing is done by semantic
according to the value of `semantic-face-alist' and the semantic
display-function (e.g. one from `semantic-token->text-functions'). But
sometimes a finer distinction in displaying the different type specifiers of
type-tokens can be useful. For a description when this option is evaluated
look at `ecb-token-display-function'!
This functionality is set on a major-mode base, i.e. for every major-mode a
different setting can be used. The value of this option is a list of
cons-cells:
- The car is either a major-mode symbol or the special symbol 'default which
means if no setting for a certain major-mode is defined then the cdr of
the 'default cons-cell is used.
- The cdr is a list of 3-element-lists:
1. First entry is a semantic type specifier in string-form. Current
available type specifiers are for example "class", "interface",
"struct", "typedef" and "enum". In addition to these ones there is
also a special ECB type specifier "group" which is related to grouping
tokens (see `ecb-post-process-semantic-tokenlist' and
`ecb-group-function-tokens-with-parents'). Any arbitrary specifier can be
set here but if it is not "group" or not known by semantic it will be
useless.
2. Second entry is a flag which indicates if the type-specifier string from
(1.) itself should be removed (if there is any) from the display.
3. Third entry is the face which is used in the ECB-method window to display
type-tokens with this specifier. ECB has some predefined faces for this
(`ecb-type-token-class-face', `ecb-type-token-struct-face',
`ecb-type-token-typedef-face', `ecb-type-token-enum-face' and
`ecb-type-token-group-face') but any arbitrary face can be set here. This
face is merged with the faces semantic already uses to display a token,
i.e. the result is a display where all face-attributes of the ECB-face
take effect plus all face-attributes of the semantic-faces which are not
set in the ECB-face (with XEmacs this merge doesn't work so here the
ECB-face replaces the semantic-faces; this may be fixed in future
versions).
The default value is nil means there is no special ECB-displaying of
type-tokens in addition to the displaying and colorizing semantic does. But a
value like the following could be a useful setting:
((default
("class" t ecb-type-token-class-face)
("group" nil ecb-type-token-group-face))
(c-mode
("struct" nil ecb-type-token-struct-face)
("typedef" nil ecb-type-token-typedef-face)))
This means that in `c-mode' only "struct"s and "typedef"s are displayed
with special faces (the specifiers itself are not removed) and in all other
modes "class"es and grouping-tokens (see `ecb-token-display-function',
`ecb-group-function-tokens-with-parents') have special faces and the "class"
specifier-string is removed from the display.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-type-token-display 'nil '(#$ . -37043) :group 'ecb-methods :set #'(lambda (symbol value) (set symbol value) (ecb-clear-token-tree-cache)) :type '(repeat (cons (symbol :tag "Major-mode") (repeat :tag "Display of type specifiers" (list (choice :tag "Specifier list" :menu-tag "Specifier list" (const :tag "class" :value "class") (const :tag "interface" :value "interface") (const :tag "struct" :value "struct") (const :tag "typedef" :value "typedef") (const :tag "enum" :value "enum") (const :tag "group" :value "group") (string :tag "Any specifier")) (boolean :tag "Remove the type-specifier" t) (face :tag "Any face" :value ecb-type-token-class-face))))) :initialize 'custom-initialize-default)
#@99 Return the face set in `ecb-type-token-display' for current major-mode and
TYPE-SPECIFIER or nil.
(defalias 'ecb-get-face-for-type-token #[(type-specifier) "\305 \"A\305\306 \"A\307\305\f\"8\206 \307\305\f\n\"8*\207" [major-mode ecb-type-token-display default-display mode-display type-specifier assoc default 2] 4 (#$ . 40885)])
#@116 Return the remove-specifier-flag set in `ecb-type-token-display' for
current major-mode and TYPE-SPECIFIER or nil.
(defalias 'ecb-get-remove-specifier-flag-for-type-token #[(type-specifier) "\305 \"A\305\306 \"A\305\f\"A@\206 \305\f\n\"A@*\207" [major-mode ecb-type-token-display default-display mode-display type-specifier assoc default] 4 (#$ . 41227)])
#@285 Merge FACE to the already precolored TEXT so the values of all
face-attributes of FACE take effect and but the values of all face-attributes
of TEXT which are not set by FACE are preserved.
For XEmacs this merge does currently not work therefore here FACE replaces all
faces of TEXT!
(defalias 'ecb-merge-face-into-text #[(text face) "\204 \207 \260\203 \304\305\nG\300D\n$\210\202$ \306\305\nG\300\307\n%\210\n)\207" [face text newtext ecb-running-xemacs add-text-properties 0 alter-text-property #[(current-face) "\304!\203 C\202 <\203 \202 \305\304 !\203 C\202* <\203) \202* \305\306\n\"*\207" [current-face face nf cf facep nil append] 3]] 6 (#$ . 41595)])
(byte-code "\303\211\203= \n@\211@\304\305\306\307\310\311\312\306\313\314\315\316 @DDE\317BB\320BBD\321B\322BB\312\316 AD\323BBFEM\210\nA\211\204 *\303\207" [ecb-token->text-functions elem #:--dolist-temp--47351 nil lambda (token &optional parent-token colorize) if (eq 'type (semantic-token-token token)) let* text funcall string-match "-uml-" symbol-name quote ('semantic-uml-abbreviate-nonterminal 'semantic-name-nonterminal) (token parent-token colorize) ((type-specifier (if (or (semantic-token-get token 'ecb-group-token) (semantic-token-get token 'faux)) "group" (semantic-token-type token))) (face (ecb-get-face-for-type-token type-specifier)) (remove-flag (ecb-get-remove-specifier-flag-for-type-token type-specifier))) ((save-match-data (when (or (semantic-token-get token 'ecb-group-token) (semantic-token-get token 'faux)) (if (string-match (concat "^\\(.+" semantic-uml-colon-string "\\)\\(" (if (semantic-token-get token 'faux) semantic-orphaned-member-metaparent-type "struct") "\\)") text) (let ((type-spec-text "group")) (put-text-property 0 (length type-spec-text) 'face (get-text-property 0 'face (match-string 2 text)) type-spec-text) (setq text (concat (match-string 1 text) type-spec-text))))) (let (col-type-name col-type-spec template-text) (if (string-match (concat "^\\(.+\\)\\(" semantic-uml-colon-string type-specifier "\\)") text) (setq col-type-name (match-string 1 text) col-type-spec (if (not remove-flag) (match-string 2 text))) (setq col-type-name text)) (when (and (equal major-mode 'c++-mode) (fboundp 'semantic-c-template-string)) (setq template-text (semantic-c-template-string token parent-token colorize)) (put-text-property 0 (length template-text) 'face (get-text-property (1- (length col-type-name)) 'face col-type-name) template-text)) (setq text (concat col-type-name template-text col-type-spec)))) (if face (setq text (ecb-merge-face-into-text text face))) text) (token parent-token colorize)] 15)
#@830 *Define mode-dependent post-processing for the semantic-tokenlist.
This is an alist where the car is a major-mode symbol and the cdr is a
function-symbol of a function which should be used for post-processing the
tokenlist (returned by `semantic-bovinate-toplevel') for a buffer in this
major-mode. Such a function is called with current semantic tokenlist of
current buffer and must return a valid tokenlist again.
For oo-programming languages where the methods of a class can be defined
outside the class-definition (e.g. C++, Eieio) the function
`ecb-group-function-tokens-with-parents' can be used to get a much better
method-display in the methods-window of ECB, because all method
implementations of a class are grouped together.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-post-process-semantic-tokenlist ''((c++-mode . ecb-group-function-tokens-with-parents) (emacs-lisp-mode . ecb-group-function-tokens-with-parents)) '(#$ . -44238) :group 'ecb-methods :type '(repeat (cons (symbol :tag "Major-mode") (function :tag "Post-process function"))))
#@596 *Show only nodes in the method-buffer which are "jump-able".
If not nil then ECB displays in the method-buffer only nodes which are
"jump-able", i.e. after selecting it by clicking or with RET then ECB jumps
to the corresponding location in the edit-window.
Example: With CLOS or Eieio source-code there can exist some position-less
nodes like variable-attributes in a `defclass' form which are only displayed
if this option is nil. Displaying such nodes can be senseful even if they can
not be jumped.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-show-only-positioned-tokens 't '(#$ . -45377) :group 'ecb-methods :type 'boolean)
#@1334 *How to show tokens in the methods buffer first time after find-file.
This variable is a list where each element represents a type of tokens:
( )
The tokens in the methods buffer are displayed in the order as they appear in
this list.
Token Type
----------
A Semantic token type symbol (for all possible type symbols see documentation
of semantic):
- include
- type
- variable
- function
- rule
- section (chapters and sections in `info-mode')
- def (definitions in `info-mode')
or one of the following:
- t: All token types not specified anywhere else in the list.
- parent: The parents of a type.
Display Type
------------
A symbol which describes how the tokens of this type shall be shown:
- expanded: The tokens are shown in an expanded node.
- collapsed: The tokens are shown in a collapsed node.
- flattened: The tokens are added to the parent node.
- hidden: The tokens are not shown.
Sort Method
-----------
A symbol describing how to sort the tokens of this type:
- name: Sort by the token name.
- access: Sort by token access (public, protected, private) and then by name.
- nil: Don't sort tokens. They appear in the same order as in the source
buffer.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-show-tokens ''((include collapsed nil) (parent collapsed nil) (type flattened nil) (variable collapsed access) (function flattened access) (rule flattened name) (section flattened nil) (def collapsed name) (t collapsed name)) '(#$ . -46092) :group 'ecb-methods :set #'(lambda (symbol value) (set symbol value) (ecb-clear-token-tree-cache)) :type '(repeat (list (symbol :tag "Token symbol") (choice :tag "Display type" :value collapsed (const :tag "Expanded" expanded) (const :tag "Collapsed" collapsed) (const :tag "Flattened" flattened) (const :tag "Hidden" hidden)) (choice :tag "Sort by" :value nil (const :tag "Name" name) (const :tag "Access then name" access) (const :tag "No sort" nil)))) :initialize 'custom-initialize-default)
#@990 *Semantic token-types expanded by `ecb-expand-methods-nodes'.
The value of this option is either the symbol 'all (all tokens are expanded
regardless of their type) or a list of symbols where each symbol is a valid
semantic token-type. For a description of semantic token types see option
`ecb-show-tokens'.
But this option also defines if bucket-nodes in the ECB-method-buffer (e.g.
"[Variables]") should be expanded. Therefore valid symbols for this list
are also all cars of the variable `semantic-symbol->name-assoc-list'.
If there is a bucket-name (the node-name stripped of the settings in
`ecb-bucket-token-display') which is not contained as cdr in
`semantic-symbol->name-assoc-list' then the symbol with this bucket-name as
name is also a valid symbol for this list. Example: In ECB there are buckets
"[Parents]". The bucket-name is "Parents" and the valid symbol-name is
then 'Parents.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-methods-nodes-expand-spec ''(type variable function section) '(#$ . -48198) :group 'ecb-methods :type '(radio (const :tag "All node-types" :value all) (repeat :tag "Node-type list" (symbol :tag "Node-type"))))
#@225 *Semantic token-types collapsed by `ecb-expand-methods-nodes'.
For valid values of this option see `ecb-methods-nodes-expand-spec'!
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-methods-nodes-collapse-spec ''all '(#$ . -49434) :group 'ecb-methods :type '(radio (const :tag "All node-types" :value all) (repeat :tag "Node-type list" (symbol :tag "Node-type"))))
#@237 *Regexp which parent classes should not be shown in the methods buffer.
If nil then all parents will be shown if `ecb-show-parents' is not nil.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-exclude-parents-regexp 'nil '(#$ . -49878) :group 'ecb-methods :set #'(lambda (symbol value) (set symbol value) (ecb-clear-token-tree-cache)) :type '(radio (const :tag "Do not exclude any parents" :value nil) (regexp :tag "Parents-regexp to exclude")) :initialize 'custom-initialize-default)
#@502 *How to highlight the method or variable under the cursor.
- highlight-scroll: Always scroll the method buffer, so the current method of the
edit-window is highlighted in the method-window.
- highlight: Only highlight the current method of the edit window in the
method window if the method is visible in the method-window.
- nil: No highlighting is done.
See also `ecb-highlight-token-with-point-delay'.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-highlight-token-with-point ''highlight-scroll '(#$ . -50443) :group 'ecb-methods :type '(radio (const :tag "Highlight and scroll window" :value highlight-scroll) (const :tag "Just highlight" :value highlight) (const :tag "Do not highlight" :value nil)))
#@574 *Time Emacs must be idle before current token is highlighted.
If nil then there is no delay, means current token is highlighted immediately.
A small value of about 0.25 seconds saves CPU resources and you get even
though almost the same effect as if you set no delay. But such a delay
prevents also "jumping backward/forward" during scrolling within
java-classes if point goes out of method-definition into class-definition.
Therefore the default value is a delay of 0.25 seconds.
This options takes only effect for semantic-sources - means sources supported
by semantic!
(custom-declare-variable 'ecb-highlight-token-with-point-delay '0.25 '(#$ . -51235) :group 'ecb-methods :type '(radio (const :tag "No highlighting delay" :value nil) (number :tag "Idle time before highlighting" :value 0.25)) :set #'(lambda (symbol value) (set symbol value) (if ecb-minor-mode (ecb-activate-ecb-sync-functions value 'ecb-token-sync))) :initialize 'custom-initialize-default)
#@55 Internal overlay used for the first line of a method.
(defvar ecb-method-overlay (byte-code "\300\301\211\"\207" [make-overlay 1] 3) (#$ . 52205))
(overlay-put ecb-method-overlay 'face ecb-token-header-face)
#@1174 *Actions to perform after visiting a token from the Method-buffer.
With this option actions can be added which will be performed after visiting
the start of the token in the source-buffer.
This functionality is set on a `major-mode' base, i.e. for every `major-mode' a
different setting can be used. The value of this option is a list of
cons-cells:
- The car is either a `major-mode' symbol or the special symbol 'default.
- The cdr is a list of action-functions or nil.
ECB first performs all actions defined for the special symbol 'default (if
any) and then all actions defined for current `major-mode' (if any).
ECB offers some predefined senseful action-functions. Currently there are:
- `ecb-token-visit-highlight-token-header'
- `ecb-token-visit-smart-token-start'
- `ecb-token-visit-recenter'
- `ecb-token-visit-recenter-top'
- `ecb-token-visit-goto-doc-start'
- `ecb-token-visit-narrow-token'
See the documentation of these function for details what they do.
But you can add any arbitrary function if the following conditions are
fulfilled:
- The function gets the semantic token as argument and
- the function returns the (new) point after finishing its job.
(custom-declare-variable 'ecb-token-visit-post-actions ''((default ecb-token-visit-smart-token-start ecb-token-visit-highlight-token-header) (java-mode ecb-token-visit-goto-doc-start) (jde-mode ecb-token-visit-goto-doc-start)) '(#$ . -52421) :group 'ecb-methods :type '(repeat (cons :value (nil ecb-token-visit-recenter) (symbol :tag "Major-mode or default") (repeat (choice :tag "Post action" :menu-tag "Post action" (const :tag "ecb-token-visit-smart-token-start" :value ecb-token-visit-smart-token-start) (const :tag "ecb-token-visit-highlight-token-header" :value ecb-token-visit-highlight-token-header) (const :tag "ecb-token-visit-goto-doc-start" :value ecb-token-visit-goto-doc-start) (const :tag "ecb-token-visit-narrow-token" :value ecb-token-visit-narrow-token) (const :tag "ecb-token-visit-recenter-top" :value ecb-token-visit-recenter-top) (const :tag "ecb-token-visit-recenter" :value ecb-token-visit-recenter) (function :tag "Function"))))))
(defalias 'ecb-token-visit-function-member-p #[(fnc) "\303\304 \"A\235\206 \303\n \"A\235\207" [fnc ecb-token-visit-post-actions major-mode assoc default] 4])
#@133 *Indent size for tree buffer.
If you change this during ECB is activated you must deactivate and activate
ECB again to take effect.
(custom-declare-variable 'ecb-tree-indent '2 '(#$ . -54719) :group 'ecb-general :type 'integer)
#@53 *Show the expand symbol before the items in a tree.
(custom-declare-variable 'ecb-tree-expand-symbol-before 'nil '(#$ . -54953) :group 'ecb-general :type 'boolean)
#@216 *Use icons for expand/collapse tokens instead of the ascii-strings.
If true the ECB displays in its tree-buffers the expand- and collapse symbols
with appropriate icons - the icons are the same as used by speedbar.
(custom-declare-variable 'ecb-tree-use-image-icons 't '(#$ . -55124) :group 'ecb-general :type 'boolean)
#@135 *Truncate lines in ECB buffers.
If you change this during ECB is activated you must deactivate and activate
ECB again to take effect.
(custom-declare-variable 'ecb-truncate-lines ''(t t t t) '(#$ . -55451) :group 'ecb-general :type '(list (boolean :tag "Directories buffer") (boolean :tag "Sources buffer") (boolean :tag "Methods buffer") (boolean :tag "History buffer")))
#@1025 *Scroll step for easy hor. scrolling via mouse-click in tree-buffers.
XEmacs has horizontal scroll-bars so invisible parts beyond the right
window-border of a tree-buffer can always made visible very easy.
GNU Emacs does not have hor. scroll-bars so especially with the mouse it is
quite impossible to scroll smoothly right and left. The functions
`scroll-left' and `scroll-right' can be annoying and are also not bound to
mouse-buttons.
If this option is a positive integer S then in all ECB-tree-buffers the keys
[M-mouse-1] and [M-mouse-3] are bound to scrolling left rsp. right with
scroll-step S - clicking with mouse-1 or mouse-2 onto the edge of the modeline
has the same effect, i.e. if you click with mouse-1 onto the left (rsp.
right) edge of the modeline you will scroll left (rsp. right). Additionally
[C-M-mouse-1] and [C-M-mouse-3] are bound to scrolling left rsp. right with
scroll-step `window-width' - 2. Default is a scroll-step of 5. If the value is
nil then no keys for horizontal scrolling are bound.
(custom-declare-variable 'ecb-tree-easy-hor-scroll '5 '(#$ . -55832) :group 'ecb-general :type '(radio :value 5 (const :tag "No hor. mouse scrolling" :value nil) (integer :tag "Scroll step")))
#@172 *Truncate long names that don't fit in the width of the ECB windows.
If you change this during ECB is activated you must deactivate and activate
ECB again to take effect.
(custom-declare-variable 'ecb-truncate-long-names 't '(#$ . -57056) :group 'ecb-general :type 'boolean)
#@1111 *Synchronize the ECB-windows automatically with current edit window.
If 'always then the synchronization takes place always a buffer changes in the
edit window, if nil then never. If a list of major-modes then only if the
`major-mode' of the new buffer belongs NOT to this list.
But in every case the synchronization takes only place if the current-buffer
in the edit-window has a relation to files or directories. Examples for the
former one are all programming-language-modes, `Info-mode' too, an example for
the latter one is `dired-mode'. For all major-modes related to
non-file/directory-buffers like `help-mode', `customize-mode' and others never
an autom. synchronization will be done!
It's recommended to exclude at least `Info-mode' because it makes no sense to
synchronize the ECB-windows after calling the Info help. Per default also
`dired-mode' is excluded but it can also making sense to synchronize the
ECB-directories/sources windows with the current directory in the
dired-buffer.
IMPORTANT NOTE: Every time the synchronization is done the hook
`ecb-current-buffer-sync-hook' is evaluated.
(custom-declare-variable 'ecb-window-sync ''(Info-mode dired-mode) '(#$ . -57339) :group 'ecb-general :type '(radio :tag "Synchronize ECB windows" (const :tag "Always" :value always) (const :tag "Never" nil) (repeat :tag "Not with these modes" (symbol :tag "mode"))))
#@348 *Time Emacs must be idle before the ECB-windows are synchronized.
Synchronizing is done with the current source displayed in the edit window. If
nil then there is no delay, means synchronization takes place immediately. A
small value of about 0.25 seconds saves CPU resources and you get even though
almost the same effect as if you set no delay.
(custom-declare-variable 'ecb-window-sync-delay '0.25 '(#$ . -58724) :group 'ecb-general :type '(radio (const :tag "No synchronizing delay" :value nil) (number :tag "Idle time before synchronizing" :value 0.25)) :set #'(lambda (symbol value) (set symbol value) (if ecb-minor-mode (ecb-activate-ecb-sync-functions value 'ecb-window-sync-function))) :initialize 'custom-initialize-default)
#@258 *Enable incremental search in the ECB-tree-buffers.
For a detailed explanation see the online help section "Working with the
keyboard in the ECB buffers". If you change this during ECB is activated you
must deactivate and activate ECB again to take effect.
(custom-declare-variable 'ecb-tree-incremental-search ''prefix '(#$ . -59466) :group 'ecb-general :type '(radio (const :tag "Match only prefix" :value prefix) (const :tag "Match every substring" :value substring) (const :tag "No incremental search" :value nil)))
#@742 *Enable smart navigation in the tree-windows by horizontal arrow-keys.
If not nil then the left- and right-arrow keys work in the ECB tree-window in
the following smart way if onto an expandable node:
+ Left-arrow: If node is expanded then it will be collapsed otherwise point
jumps to the next "higher" node in the hierarchical tree (higher means
the next higher tree-level or - if no higher level available - the next
higher node on the same level).
+ Right-arrow: If node is not expanded then it will be expanded.
Onto a not expandable node the horizontal arrow-keys go one character in the
senseful correct direction.
If this option is changed the new value takes first effect after deactivating
ECB and then activating it again!
(custom-declare-variable 'ecb-tree-navigation-by-arrow 't '(#$ . -59993) :group 'ecb-general :type 'boolean)
#@1394 *Node info to display in a tree-buffer.
Define which node info should displayed in a tree-buffer after
mouse moving over the node or after a shift click onto the node.
For every tree-buffer you can define "when" node info should be displayed:
- always: Node info is displayed by moving with the mouse over a node.
- if-too-long: Node info is only displayed by moving with the mouse over a
node does not fit into the window-width of the tree-buffer window.
In the ECB directories buffer this means also if a node is shortend or if
the node has an alias (see `ecb-source-path').
- shift-click: Node info is only displayed after a shift click with the
primary mouse button onto the node.
- never: Node info is never displayed.
For every tree-buffer you can define what info should be displayed:
+ Directory-buffer:
- name: Only the full node-name is displayed.
- path: The full-path of the node is displayed.
+ Sources-buffer:
- name: Only the full node-name is displayed.
- file-info: File infos for this file are displayed.
- file-info-full: Fill infos incl. full path for this file are displayed.
+ History-buffer:
see Directories-buffer.
+ Methods-buffer:
- name: Only the full node name is displayed.
- name+type: The full name + the type of the node (function, class,
variable) is displayed.
Do NOT set this option directly via setq but use always customize!
(custom-declare-variable 'ecb-show-node-info-in-minibuffer ''((if-too-long . path) (if-too-long . name) (always . path) (if-too-long . name+type)) '(#$ . -60851) :group 'ecb-general :set #'(lambda (symbol value) (set symbol value) (if (and (boundp 'ecb-minor-mode) ecb-minor-mode) (let ((when-list (mapcar (lambda (elem) (car elem)) value))) (if (or (member 'if-too-long when-list) (member 'always when-list)) (tree-buffer-activate-follow-mouse) (tree-buffer-deactivate-follow-mouse) (tree-buffer-deactivate-mouse-tracking))))) :type '(list (cons :tag "* Directories-buffer" (choice :tag "When" (const :tag "Always" :value always) (const :tag "If too long" :value if-too-long) (const :tag "After shift click" :value shift-click) (const :tag "Never" :value never)) (choice :tag "What" (const :tag "Node-name" :value name) (const :tag "Full path" :value path))) (cons :tag "* Sources-buffer" (choice :tag "When" (const :tag "Always" :value always) (const :tag "If too long" :value if-too-long) (const :tag "After shift click" :value shift-click) (const :tag "Never" :value never)) (choice :tag "What" (const :tag "Node-name" :value name) (const :tag "File info" :value file-info) (const :tag "File info (full path)" :value file-info-full))) (cons :tag "* History-buffer" (choice :tag "When" (const :tag "Always" :value always) (const :tag "If too long" :value if-too-long) (const :tag "After shift click" :value shift-click) (const :tag "Never" :value never)) (choice :tag "What" (const :tag "Node-name" :value name) (const :tag "Full path" :value path))) (cons :tag "* Method-buffer" (choice :tag "When" (const :tag "Always" :value always) (const :tag "If too long" :value if-too-long) (const :tag "After shift click" :value shift-click) (const :tag "Never" :value never)) (choice :tag "What" (const :tag "Node-name" :value name) (const :tag "Node-name + type" :value name+type)))))
#@1695 *Primary- and secondary mouse button for using the ECB-buffers.
A click with the primary button causes the main effect in each ECB-buffer:
- ECB Directories: Expanding/collapsing nodes and displaying files in the ECB
Sources buffer.
- ECB sources/history: Opening the file in that edit-window specified by the
option `ecb-primary-mouse-jump-destination'.
- ECB Methods: Jumping to the method in that edit-window specified by the
option `ecb-primary-mouse-jump-destination'.
A click with the primary mouse-button while the SHIFT-key is pressed called
the POWER-click and does the following (depending on the ECB-buffer where the
POWER-click occurs):
+ Directory-buffer: Refreshing the directory-contents-cache (see
`ecb-cache-directory-contents').
+ Sources- and History-buffer: Only displaying the source-contents in the
method-buffer but not displaying the source-file in the edit-window.
+ Methods-buffer: Narrowing to the clicked method/variable/ect... (see
`ecb-token-visit-post-actions'). This works only for sources supported by
semantic!
In addition always the whole node-name is displayed in the minibuffer after a
POWER-click (for this see also `ecb-show-node-info-in-minibuffer').
The secondary mouse-button is for opening (jumping to) the file in the other
window (see the documentation `ecb-primary-mouse-jump-destination').
The following combinations are possible:
- primary: mouse-2, secondary: C-mouse-2 (means mouse-2 while CTRL-key is
pressed). This is the default setting.
- primary: mouse-1, secondary: C-mouse-1
- primary: mouse-1, secondary: mouse-2
If you change this during ECB is activated you must deactivate and activate
ECB again to take effect!
(custom-declare-variable 'ecb-primary-secondary-mouse-buttons ''mouse-2--C-mouse-2 '(#$ . -64134) :group 'ecb-general :type '(radio (const :tag "Primary: mouse-2, secondary: Ctrl-mouse-2" :value mouse-2--C-mouse-2) (const :tag "Primary: mouse-1, secondary: Ctrl-mouse-1" :value mouse-1--C-mouse-1) (const :tag "Primary: mouse-1, secondary: mouse-2" :value mouse-1--mouse-2)))
#@733 *Jump-destination of a primary mouse-button click.
Defines in which edit-window (if splitted) ECB does the "right" action
(opening the source, jumping to a method/variable) after clicking with the
primary mouse-button (see `ecb-primary-secondary-mouse-buttons') onto a node.
There are two possible choices:
- left-top: Does the "right" action always in the left/topmost edit-window.
- last-point: Does the "right" action always in that edit-window which had
the point before.
If the edit-window is not splitted this setting doesn´t matter.
Note: A click with the secondary mouse-button (see again
`ecb-primary-secondary-mouse-buttons' does the "right" action always in the
"other" window related to the setting in this option.
(custom-declare-variable 'ecb-primary-mouse-jump-destination ''left-top '(#$ . -66211) :group 'ecb-general :type '(radio (const :tag "Left/topmost edit-window" :value left-top) (const :tag "Last edit-window with point" :value last-point)))
#@139 *String to display in the mode line when ECB minor mode is active.
(When the string is not empty, make sure that it has a leading space.)
(custom-declare-variable 'ecb-minor-mode-text '" ECB" '(#$ . -67190) :group 'ecb-general :type 'string)
#@730 *Check at ECB-startup if all ECB-options have correct values.
If not nil then all ECB-options are checked if their current value have the
correct type. It the type is incorrect the option is either auto. upgraded to
the new type or reset to the default-value of current ECB if no upgrade is
possible. This feature can also upgrade options which are renamed in current
ECB and try to transform the old-value to the new named option. After startup
all upgraded or reset options are displayed with their old (before
upgrade/reset) and new values. See also the commands `ecb-upgrade-options' and
`ecb-display-upgraded-options'. If this option is off then the user can
perform the check and reset manually with `ecb-upgrade-options'.
(custom-declare-variable 'ecb-auto-compatibility-check 't '(#$ . -67439) :group 'ecb-general :type 'boolean)
#@235 *Checks at start-time if the requirements are fulfilled.
It checks if the required versions of the libraries semantic, eieio and
speedbar are installed and loaded into Emacs.
It is strongly recommended to set this option to not nil!
(custom-declare-variable 'ecb-version-check 't '(#$ . -68284) :group 'ecb-general :type 'boolean)
#@495 *If not nil ECB displays debug-information in the Messages-buffer.
This is done for some critical situations concerning semantic-tokens and their
overlays (or extends for XEmacs). Normally you should not need this switched
on! But if you get errors like "destroyed extend" for XEmacs or
"wrong-argument-type" concerning overlays for GNU Emacs then you should
switch on this option and submitting a bug-report to the ecb-mailing-list
(`ecb-submit-problem-report') after getting the error again!
(custom-declare-variable 'ecb-debug-mode 'nil '(#$ . -68623) :group 'ecb-general :type 'boolean)
#@1356 *User extensions for the popup-menu of the directories buffer.
Value is a list of elements of the following type: Each element defines a new
menu-entry and is a list containing two sub-elements, whereas the first is the
name of the menu-entry and the second the function (a function symbol or a
lambda-expression) being called if the menu-entry is selected. If there is no
second sub-element and the first one is the string "---" then a
non-selectable menu-separator is displayed.
The function must follow the following guidelines:
It takes one argument which is the tree-buffer-node of the selected node (means
the node for which the popup-menu has been opened). With the function
`tree-node-get-data' the related data of this node is accessible and returns
in case of the directories buffer the directory for which the popup-menu has
been opened. The function can do any arbitrary things with this directory.
Example for such a menu-function:
(defun ecb-my-special-dir-popup-function (node)
(let ((node-data=dir (tree-node-get-data node)))
(message "Dir under node: %s" node-data=dir)))
Per default the user-extensions are added at the beginning of the built-in
menu-entries of `ecb-directories-menu' but the whole menu can be re-arranged
with `ecb-directories-menu-sorter'.
If you change this option you have to restart ECB to take effect.
(custom-declare-variable 'ecb-directories-menu-user-extension 'nil '(#$ . -69222) :group 'ecb-directories :type '(repeat (choice :tag "Menu-entry" :menu-tag "Menu-entry" :value ("" ignore) (const :tag "Separator" :value ("---")) (list :tag "Menu-entry" (string :tag "Entry-name") (function :tag "Function" :value ignore)))))
#@500 *User extensions for the popup-menu of the sources buffer.
For further explanations see `ecb-directories-menu-user-extension'.
The node-argument of a menu-function contains as data the filename of the
source for which the popup-menu has been opened.
Per default the user-extensions are added at the beginning of the built-in
menu-entries of `ecb-sources-menu' but the whole menu can be re-arranged
with `ecb-sources-menu-sorter'.
If you change this option you have to restart ECB to take effect.
(custom-declare-variable 'ecb-sources-menu-user-extension 'nil '(#$ . -70909) :group 'ecb-sources :type '(repeat (choice :tag "Menu-entry" :menu-tag "Menu-entry" :value ("" ignore) (const :tag "Separator" :value ("---")) (list :tag "Menu-entry" (string :tag "Entry-name") (function :tag "Function" :value ignore)))))
#@521 *User extensions for the popup-menu of the methods buffer.
For further explanations see `ecb-directories-menu-user-extension'.
The node-argument of a menu-function contains as data the semantic-token of
the method/variable/token for which the popup-menu has been opened.
Per default the user-extensions are added at the beginning of the built-in
menu-entries of `ecb-methods-menu' but the whole menu can be re-arranged
with `ecb-methods-menu-sorter'.
If you change this option you have to restart ECB to take effect.
(custom-declare-variable 'ecb-methods-menu-user-extension 'nil '(#$ . -71732) :group 'ecb-methods :type '(repeat (choice :tag "Menu-entry" :menu-tag "Menu-entry" :value ("" ignore) (const :tag "Separator" :value ("---")) (list :tag "Menu-entry" (string :tag "Entry-name") (function :tag "Function" :value ignore)))))
#@500 *User extensions for the popup-menu of the history buffer.
For further explanations see `ecb-directories-menu-user-extension'.
The node-argument of a menu-function contains as data the filename of the
source for which the popup-menu has been opened.
Per default the user-extensions are added at the beginning of the built-in
menu-entries of `ecb-history-menu' but the whole menu can be re-arranged
with `ecb-history-menu-sorter'.
If you change this option you have to restart ECB to take effect.
(custom-declare-variable 'ecb-history-menu-user-extension 'nil '(#$ . -72576) :group 'ecb-history :type '(repeat (choice :tag "Menu-entry" :menu-tag "Menu-entry" :value ("" ignore) (const :tag "Separator" :value ("---")) (list :tag "Menu-entry" (string :tag "Entry-name") (function :tag "Function" :value ignore)))))
#@692 *Function which re-sorts the menu-entries of the directories buffer.
If a function then this function is called to re-arrange the menu-entries of
the combined menu-entries of the user-menu-extensions of
`ecb-directories-menu-user-extension' and the built-in-menu
`ecb-directories-menu'. If nil then no special sorting will be done and the
user-extensions are placed in front of the built-in-entries.
The function get one argument, a list of menu-entries. For the format of this
argument see `ecb-directories-menu-user-extension'. The function must return a
new list in the same format. Of course this function can not only re-arrange
the entries but also delete entries or add new entries.
(custom-declare-variable 'ecb-directories-menu-sorter 'nil '(#$ . -73399) :group 'ecb-directories :type '(choice :tag "Menu-sorter" :menu-tag "Menu-sorter" (const :tag "No special sorting" :value nil) (function :tag "Sort-function" :value identity)))
#@469 *Function which re-sorts the menu-entries of the directories buffer.
If a function then this function is called to sort the menu-entries of the
combined menu-entries of the user-menu-extensions of
`ecb-sources-menu-user-extension' and the built-in-menu
`ecb-sources-menu'. If nil then no special sorting will be done and the
user-extensions are placed in front of the built-in-entries.
For the guidelines for such a sorter-function see
`ecb-directories-menu-sorter'.
(custom-declare-variable 'ecb-sources-menu-sorter 'nil '(#$ . -74348) :group 'ecb-sources :type '(choice :tag "Menu-sorter" :menu-tag "Menu-sorter" (const :tag "No special sorting" :value nil) (function :tag "Sort-function" :value identity)))
#@469 *Function which re-sorts the menu-entries of the directories buffer.
If a function then this function is called to sort the menu-entries of the
combined menu-entries of the user-menu-extensions of
`ecb-methods-menu-user-extension' and the built-in-menu
`ecb-methods-menu'. If nil then no special sorting will be done and the
user-extensions are placed in front of the built-in-entries.
For the guidelines for such a sorter-function see
`ecb-directories-menu-sorter'.
(custom-declare-variable 'ecb-methods-menu-sorter 'nil '(#$ . -75066) :group 'ecb-methods :type '(choice :tag "Menu-sorter" :menu-tag "Menu-sorter" (const :tag "No special sorting" :value nil) (function :tag "Sort-function" :value identity)))
#@469 *Function which re-sorts the menu-entries of the directories buffer.
If a function then this function is called to sort the menu-entries of the
combined menu-entries of the user-menu-extensions of
`ecb-history-menu-user-extension' and the built-in-menu
`ecb-history-menu'. If nil then no special sorting will be done and the
user-extensions are placed in front of the built-in-entries.
For the guidelines for such a sorter-function see
`ecb-directories-menu-sorter'.
(custom-declare-variable 'ecb-history-menu-sorter 'nil '(#$ . -75784) :group 'ecb-history :type '(choice :tag "Menu-sorter" :menu-tag "Menu-sorter" (const :tag "No special sorting" :value nil) (function :tag "Sort-function" :value identity)))
#@1125 *Hook run at the end of activating ECB by `ecb-activate'.
These hooks run after all the internal setup process but directly before(!)
drawing the layout specified in `ecb-layout' (means before dividing the frame
into several windows). A senseful using of this hook can be maximizing the
Emacs-frame for example, because this should be done before the layout is
drawn because ECB computes the size of the ECB-windows with the current frame
size! If you need a hook-option for the real end of the activating process
(i.e. after the layout-drawing) look at `ecb-activate-hook'.
IMPORTANT: The difference between this hook and
`ecb-redraw-layout-before-hook' is that the latter one is evaluated always
before the layout is redrawn (for example after calling `ecb-redraw-layout')
whereas the former one (this hook) is only evaluated exactly once during the
activation-process of ECB. So during the activation process there is the
following sequence of hooks:
1. 'ecb-activate-before-layout-draw-hook' (this one)
2. `ecb-redraw-layout-before-hook'
3.
4. `ecb-redraw-layout-after-hook'
5. `ecb-activate-hook'
(custom-declare-variable 'ecb-activate-before-layout-draw-hook 'nil '(#$ . -76503) :group 'ecb-general :type 'hook)
#@487 *Hook run at the beginning of activating ECB by `ecb-activate'.
These hooks run before any other tasks of the activating process are
performed. If any of these hooks returns nil then ECB will not be activated!
This can be used to check some conditions and then only start ECB if all
conditions are true. For example a function could be added which returns only
nil if Gnus is running. Then calling `ecb-activate' or `ecb-minor-mode' will
only start ECB if Gnus is not already running.
(custom-declare-variable 'ecb-before-activate-hook 'nil '(#$ . -77750) :group 'ecb-general :type 'hook)
#@271 *Hook run at the end of activating ECB by `ecb-activate'.
These hooks run at the real end of the activating process, means after the
layout has been drawn!. If you need hooks which are run direct before the
layout-drawing look at `ecb-activate-before-layout-draw-hook'.
(custom-declare-variable 'ecb-activate-hook 'nil '(#$ . -78347) :group 'ecb-general :type 'hook)
#@113 *Hook run at the end of deactivating ECB by `ecb-deactivate'.
These hooks run before the ecb-layout is cleared!
(custom-declare-variable 'ecb-deactivate-hook 'nil '(#$ . -78721) :group 'ecb-general :type 'hook)
#@256 *Hook run at the beginning of deactivating ECB by `ecb-deactivate'.
These hooks run before any other tasks of the deactivating process are
performed. If any of these hooks returns nil then ECB will not be deactivated!
See also `ecb-before-activate-hook'.
(custom-declare-variable 'ecb-before-deactivate-hook 'nil '(#$ . -78939) :group 'ecb-general :type 'hook)
#@1095 *Hook run at the end of `ecb-current-buffer-sync'.
See documentation of `ecb-current-buffer-sync' for conditions when
synchronization takes place and so in turn these hooks are evaluated.
Precondition for such a hook:
Current buffer is the buffer of the currently selected edit-window.
Postcondition for such a hook:
Point must stay in the same edit-window as before evaluating the hook.
Important note: If `ecb-window-sync' is not nil `ecb-current-buffer-sync' is
running either every time Emacs is idle or even after every command (see
`ecb-window-sync-delay'). So these hooks can be really called very often!
Therefore each function of this hook should/must check in an efficient way at
beginning if its task have to be really performed and then do them only if
really necessary! Otherwise performance of Emacs could slow down
dramatically!
It is strongly recommended that each function added to this hook uses the
macro `ecb-do-if-buffer-visible-in-ecb-frame' at beginning! See
`ecb-speedbar-current-buffer-sync' and `ecb-eshell-current-buffer-sync' for
examples how to use this macro!
(custom-declare-variable 'ecb-current-buffer-sync-hook 'nil '(#$ . -79308) :group 'ecb-general :type 'hook)
#@450 *Local hook running at the end of each tree-buffer creation.
Every function of this hook is called once without arguments direct after
creating a tree-buffer of ECB and it's local key-map. So for example a function
could be added which performs calls of `local-set-key' to define new
key-bindings for EVERY tree-buffer.
The following keys must not be rebind in all tree-buffers:
- and all combinations with and
-
- `C-t'
(custom-declare-variable 'ecb-common-tree-buffer-after-create-hook 'nil '(#$ . -80517) :group 'ecb-general :type 'hook)
#@438 *Local hook running after the creation of the directories-buffer.
Every function of this hook is called once without arguments direct after
creating the directories-buffer of ECB and it's local key-map. So for example a
function could be added which performs calls of `local-set-key' to define new
key-bindings only for the directories-buffer of ECB.
The following keys must not be rebind in the directories-buffer:
, and
(custom-declare-variable 'ecb-directories-buffer-after-create-hook 'nil '(#$ . -81093) :group 'ecb-directories :type 'hook)
#@340 *Local hook running after the creation of the sources-buffer.
Every function of this hook is called once without arguments direct after
creating the sources-buffer of ECB and it's local key-map. So for example a
function could be added which performs calls of `local-set-key' to define new
key-bindings only for the sources-buffer of ECB.
(custom-declare-variable 'ecb-sources-buffer-after-create-hook 'nil '(#$ . -81661) :group 'ecb-sources :type 'hook)
#@340 *Local hook running after the creation of the methods-buffer.
Every function of this hook is called once without arguments direct after
creating the methods-buffer of ECB and it's local key-map. So for example a
function could be added which performs calls of `local-set-key' to define new
key-bindings only for the methods-buffer of ECB.
(custom-declare-variable 'ecb-methods-buffer-after-create-hook 'nil '(#$ . -82123) :group 'ecb-methods :type 'hook)
#@340 *Local hook running after the creation of the history-buffer.
Every function of this hook is called once without arguments direct after
creating the history-buffer of ECB and it's local key-map. So for example a
function could be added which performs calls of `local-set-key' to define new
key-bindings only for the history-buffer of ECB.
(custom-declare-variable 'ecb-history-buffer-after-create-hook 'nil '(#$ . -82585) :group 'ecb-history :type 'hook)
#@114 *Display contents of non-semantic-files in the ECB-methods-buffer.
See also `ecb-non-semantic-parsing-function'.
(custom-declare-variable 'ecb-process-non-semantic-files '(if (locate-library "speedbar") t) '(#$ . -83047) :group 'ecb-general :group 'ecb-non-semantic :type 'boolean)
#@1451 *Define mode-dependent parsing functions for non-semantic files.
This is an alist where the car is a major-mode symbol and the cdr is a
function-symbol of a function which should be used for parsing a non-semantic
buffer, i.h. a buffer for which no semantic grammar exists. Such a function
gets one argument - the filename of current buffer - and has to generate and
return a token/tag list which is understandable by
`speedbar-insert-generic-list'. speedbar has already included two functions
`speedbar-fetch-dynamic-imenu' and `speedbar-fetch-dynamic-etags' which can be
used for parsing buffers with imenu rsp. etags.
This option takes only effect if `ecb-process-non-semantic-files' is not nil:
Then ECB checks for non-semantic buffers if current `major-mode' is contained
in this option and if yes, then the specified parsing function is called;
if not then the cars of the elements of `speedbar-dynamic-tags-function-list'
are called in that sequence they are listed in this variable. See option
`speedbar-dynamic-tags-function-list' for further details.
In most cases imenu-parsing is preferable over etags-parsing because imenu
operates on Emacs-buffers and needs no external tool and therefore parsing
works also if current contents of a buffer are not saved to disk. But maybe
sometimes etags may return better parsing results.
IMPORTANT: if imenu-parsing should be used then the option
`speedbar-use-imenu-flag' must be set to not nil!
(custom-declare-variable 'ecb-non-semantic-parsing-function 'nil '(#$ . -83337) :group 'ecb-methods :group 'ecb-non-semantic :type '(repeat (cons (symbol :tag "Major-mode") (function :tag "Parsing function"))))
#@248 *Initially expand all tokens for not by semantic supported sources.
This option can be customized on a major-mode basis, i.e. if a `major-mode' is
contained in this option then all tokens for this modes will be initially
expanded - otherwise not.
(custom-declare-variable 'ecb-non-semantic-methods-initial-expand 'nil '(#$ . -85005) :group 'ecb-methods :group 'ecb-non-semantic :type '(repeat :tag "Expand this modes" (symbol :tag "major mode")))
#@759 *Automatic saving of current buffer before rebuilding its methods.
This option is only relevant for sources which are supported and parsed by
etags (see `ecb-process-non-semantic-files'). Because etags is an external
tool a source-buffer can only be reparsed if the buffer is saved to disk. So
the command `ecb-rebuild-methods-buffer' checks for sources which are not
supported by semantic or imenu if either this option is t or if the major-mode
of the source-buffer is contained in this list: In both cases ECB saves the
current source-buffer before it re-runs etags for reparsing the source.
If nil or if the major-mode is not contained then no automatic saving will be
done!
For all source supported by semantic or by imenu this option takes no effect.
(custom-declare-variable 'ecb-auto-save-before-etags-methods-rebuild 't '(#$ . -85459) :group 'ecb-methods :group 'ecb-non-semantic :type '(radio (const :tag "For all etags modes" :value t) (repeat :tag "For these modes" (symbol :tag "Major-mode"))))
#@681 *Exclude modes from parsing with imenu or etags.
Per default, ECB tries to parse all file-types not supported by semantic with
imenu or etags or some other method (for details see the option
`ecb-non-semantic-parsing-function'). If a file-type can not be parsed by
semantic, imenu or etags than this simply results in an empty method-buffer
for this file. But nevertheless you will get a message "Sorry, no support for
a file of that extension" which comes from the speedbar-library and can not
switched off. Therefore if a `major-mode' is known as not parse-able by
semantic, imenu or etags it can be added to this option and then it will be
excluded from being tried to parsed.
(custom-declare-variable 'ecb-non-semantic-exclude-modes ''(sh-mode fundamental-mode text-mode) '(#$ . -86475) :group 'ecb-non-semantic :type '(repeat :tag "Modes to exclude" (symbol :tag "Major-mode")))
#@578 *Hook at beginning of `ecb-rebuild-methods-buffer-for-non-semantic'.
So this function is always called by the command `ecb-rebuild-methods-buffer'
for not semantic supported source-types.
Every function of this hook gets one argument: The complete filename of the
current source-buffer in the edit-window. The Method-buffer is only rebuild by
`ecb-rebuild-methods-buffer-for-non-semantic' if either the hook contains no
function (the default) or if no function of this hook returns nil! See
`run-hook-with-args-until-failure' for description how these function are
processed.
(custom-declare-variable 'ecb-rebuild-non-semantic-methods-before-hook 'nil '(#$ . -87366) :group 'ecb-methods :group 'ecb-non-semantic :type 'hook)
#@99 If `ecb-debug-mode' is not nil then enter the Emacs-debugger and signal an
error with ERROR-ARGS.
(defalias 'ecb-enter-debugger #[(&rest error-args) "\205 \303\304\305\n\")\207" [ecb-debug-mode debug-on-error error-args t apply error] 3 (#$ . 88098)])
#@336 Assert that TOKEN is a valid token. If not valid then `ecb-enter-debugger'
is called. If NO-REPARSE is not nil then the buffer is not autom. reparsed. It
returns nil if the assertion fails otherwise not nil. So the caller can even
check the result if `ecb-debug-mode' is nil in which case the function
`ecb-enter-debugger' is a no-op.
(defalias 'ecb-semantic-assert-valid-token #[(token &optional no-reparse) "\211<\205 @;\205 A@\205 A@9)\203O \304!\203M G Z8\305\n!\203J \306\n!\204J \204A \307 \210\310 \210\311 \210\312\313\"\210\314\202K \315)\207\315\207\312\316\"\210\314\207" [token semantic-tfe-overlay o no-reparse semantic-token-with-position-p semantic-overlay-p semantic-overlay-live-p ecb-nav-initialize semantic-clear-toplevel-cache ecb-update-methods-buffer--internal ecb-enter-debugger "Token %S is invalid!" nil t "Not a semantic token: %S"] 4 (#$ . 88360)])
(defalias 'ecb-semantic-token-buffer #[(token) "\303!\210\211G Z8\304\n!\205 \305\n!*\207" [token semantic-tfe-overlay o ecb-semantic-assert-valid-token semantic-overlay-p semantic-overlay-buffer] 3])
(defalias 'ecb-semantic-token-start #[(token) "\303!\210\211G Z8\304\n!\203 \305\n!\202 \n\306H*\207" [token semantic-tfe-overlay o ecb-semantic-assert-valid-token semantic-overlay-p semantic-overlay-start 0] 3])
(defalias 'ecb-semantic-token-end #[(token) "\303!\210\211G Z8\304\n!\203 \305\n!\202 \n\306H*\207" [token semantic-tfe-overlay o ecb-semantic-assert-valid-token semantic-overlay-p semantic-overlay-end 1] 3])
(defalias 'ecb-semantic-current-nonterminal #[nil "\300\301\302\217\207" [nil (semantic-current-nonterminal) ((error (byte-code "\300\301!\210\302 \205 \303 \210\304 \210\305 \207" [message "semantic-current-nonterminal has problems --> reparsed is performed!" ecb-point-in-edit-window semantic-clear-toplevel-cache ecb-update-methods-buffer--internal semantic-current-nonterminal] 2)))] 3])
(defalias 'ecb-exec-in-directories-window '(macro . #[(&rest body) "\301\302\303BBD\207" [body unwind-protect when (ecb-window-select ecb-directories-buffer-name)] 4]))
(defalias 'ecb-exec-in-sources-window '(macro . #[(&rest body) "\301\302\303BBD\207" [body unwind-protect when (ecb-window-select ecb-sources-buffer-name)] 4]))
(defalias 'ecb-exec-in-methods-window '(macro . #[(&rest body) "\301\302\303BBD\207" [body unwind-protect when (ecb-window-select ecb-methods-buffer-name)] 4]))
(defalias 'ecb-exec-in-history-window '(macro . #[(&rest body) "\301\302\303BBD\207" [body unwind-protect when (ecb-window-select ecb-history-buffer-name)] 4]))
(defalias 'ecb-window-select #[(name) "\302!\211\205 \303 !)\207" [name window get-buffer-window select-window] 3])
(defalias 'ecb-goto-window #[(name) "\205 \303 !\210\304 !\210\305\n!\207" [ecb-minor-mode ecb-frame name raise-frame select-frame ecb-window-select] 2])
#@144 Make the ECB-directories window the current window.
If `ecb-use-speedbar-instead-native-tree-buffer' is 'dir then goto to the
speedbar-window.
(defalias 'ecb-goto-window-directories #[nil "\302!\206 \303\232\205 \304 \207" [ecb-directories-buffer-name ecb-use-speedbar-instead-native-tree-buffer ecb-goto-window dir ecb-goto-window-speedbar] 2 (#$ . 91225) nil])
#@143 Make the ECB-sources window the current window.
If `ecb-use-speedbar-instead-native-tree-buffer' is 'source then goto to the
speedbar-window.
(defalias 'ecb-goto-window-sources #[nil "\302!\206 \303\232\205 \304 \207" [ecb-sources-buffer-name ecb-use-speedbar-instead-native-tree-buffer ecb-goto-window source ecb-goto-window-speedbar] 2 (#$ . 91599) nil])
#@143 Make the ECB-methods window the current window.
If `ecb-use-speedbar-instead-native-tree-buffer' is 'method then goto to the
speedbar-window.
(defalias 'ecb-goto-window-methods #[nil "\302!\206 \303\232\205 \304 \207" [ecb-methods-buffer-name ecb-use-speedbar-instead-native-tree-buffer ecb-goto-window method ecb-goto-window-speedbar] 2 (#$ . 91967) nil])
#@49 Make the ECB-history window the current window.
(defalias 'ecb-goto-window-history #[nil "\301!\207" [ecb-history-buffer-name ecb-goto-window] 2 (#$ . 92334) nil])
#@131 Make the ECB-speedbar window the current window.
This command does nothing if no integrated speedbar is visible in the
ECB-frame.
(defalias 'ecb-goto-window-speedbar #[nil "\301 \205 \302!\207" [ecb-speedbar-buffer-name ecb-speedbar-active-p ecb-goto-window] 2 (#$ . 92506) nil])
#@57 Make the (first) edit-window window the current window.
(defalias 'ecb-goto-window-edit1 #[nil "\205 \302 !\210\303 !\210\304\305!\207" [ecb-minor-mode ecb-frame raise-frame select-frame ecb-select-edit-window nil] 2 (#$ . 92794) nil])
#@71 Make the second edit-window (if available) window the current window.
(defalias 'ecb-goto-window-edit2 #[nil "\205 \302 !\210\303 !\210\304\305!\207" [ecb-minor-mode ecb-frame raise-frame select-frame ecb-select-edit-window t] 2 (#$ . 93038) nil])
#@55 Goto the ecb compilation window `ecb-compile-window'.
(defalias 'ecb-goto-window-compilation #[nil "\205 \205 \n\205 \304\n!\205 \305!\210\306!\210\307\n!\207" [ecb-minor-mode ecb-compile-window-height ecb-compile-window ecb-frame window-live-p raise-frame select-frame select-window] 2 (#$ . 93294) nil])
(defalias 'ecb-buffer-select #[(name) "\301!q\207" [name get-buffer] 2])
#@236 Maximize the ECB-directories-window.
I.e. delete all other ECB-windows, so only one ECB-window and the
edit-window(s) are visible (and maybe a compile-window). Works also if the
ECB-directories-window is not visible in current layout.
(defalias 'ecb-maximize-window-directories #[nil "\302\232\203 \303 \207\304 !\207" [ecb-use-speedbar-instead-native-tree-buffer ecb-directories-buffer-name dir ecb-maximize-window-speedbar ecb-display-one-ecb-buffer] 2 (#$ . 93689) nil])
#@228 Maximize the ECB-sources-window.
I.e. delete all other ECB-windows, so only one ECB-window and the
edit-window(s) are visible (and maybe a compile-window). Works also if the
ECB-sources-window is not visible in current layout.
(defalias 'ecb-maximize-window-sources #[nil "\302\232\203 \303 \207\304 !\207" [ecb-use-speedbar-instead-native-tree-buffer ecb-sources-buffer-name source ecb-maximize-window-speedbar ecb-display-one-ecb-buffer] 2 (#$ . 94172) nil])
#@228 Maximize the ECB-methods-window.
I.e. delete all other ECB-windows, so only one ECB-window and the
edit-window(s) are visible (and maybe a compile-window). Works also if the
ECB-methods-window is not visible in current layout.
(defalias 'ecb-maximize-window-methods #[nil "\302\232\203 \303 \207\304 !\207" [ecb-use-speedbar-instead-native-tree-buffer ecb-methods-buffer-name method ecb-maximize-window-speedbar ecb-display-one-ecb-buffer] 2 (#$ . 94642) nil])
#@228 Maximize the ECB-history-window.
I.e. delete all other ECB-windows, so only one ECB-window and the
edit-window(s) are visible (and maybe a compile-window). Works also if the
ECB-history-window is not visible in current layout.
(defalias 'ecb-maximize-window-history #[nil "\301!\207" [ecb-history-buffer-name ecb-display-one-ecb-buffer] 2 (#$ . 95112) nil])
#@231 Maximize the ECB-speedbar-window.
I.e. delete all other ECB-windows, so only one ECB-window and the
edit-window(s) are visible (and maybe a compile-window). Does nothing if the
speedbar-window is not visible within the ECB-frame.
(defalias 'ecb-maximize-window-speedbar #[nil "\301 \205 \302!\207" [ecb-speedbar-buffer-name ecb-speedbar-active-p ecb-display-one-ecb-buffer] 2 (#$ . 95478) nil])
#@128 Toggles if RET in a tree-buffer should finally select the edit-window.
See also the option `ecb-tree-RET-selects-edit-window'.
(defalias 'ecb-toggle-RET-selects-edit-window #[nil "\302 \211\203* \303! \235\203 \304\303! \"\305\306!\202- \307 \303!C\"\305\310!\202- \305\311!)\207" [tree-buffer ecb-tree-RET-selects-edit-window--internal ecb-point-in-tree-buffer buffer-name delete message "RET does not select the edit-window." append "RET selects the edit-window." "Point must stay in an ECB tree-buffer!"] 5 (#$ . 95882) nil])
(defalias 'ecb-create-node #[(parent-node display name data type) "\306=?\205- \307=\203 \207\310\n\f\311
\205 \312&\313=\203* \314\315\"\210)\207" [display parent-node name type data ecb-truncate-long-names hidden flattened tree-node-new nil end expanded tree-node-set-expanded t node] 7])
(defalias 'ecb-get-token-type-display #[(token-type) "\303 \"\211\203
\n\202 \303\304 \"\211\203 \n\202 \305)\207" [token-type ecb-show-tokens display ecb-find-assoc t (t hidden nil)] 4])
(defalias 'ecb-get-token-parent-names #[(parents) "\205b @\211\211<\205 \n@;\205 \nA@\205 \nA@9)\203* \306 \307#\2023 ;\2053 \310 \311\"\211\203S
\203J \312
\f\"\203J \313A!\202a \f\313A!B\202a <\205a \314\313 !\313A!\"*\207" [parents parent token ecb-font-lock-tokens name ecb-exclude-parents-regexp semantic-name-nonterminal nil semantic-colorize-text type string-match ecb-get-token-parent-names append] 5])
(defalias 'ecb-get-token-parents #[(token) "\301\3028!\207" [token ecb-get-token-parent-names 4] 3])
#@83 Get the name of TOKEN with the appropriate fcn from
`ecb-token-display-function'.
(defalias 'ecb-get-token-name #[(token &optional parent-token) "\300\301\302\217\207" [nil (byte-code "\306 \"A\306\307 \"A\310\n!\203 \n\206! \310!\203 \206! \311\211
\n#+\207" [major-mode ecb-token-display-function mode-display-fkt default-fkt display-fkt token assoc default fboundp semantic-prototype-nonterminal parent-token ecb-font-lock-tokens] 5) ((error (semantic-prototype-nonterminal token parent-token ecb-font-lock-tokens)))] 3 (#$ . 97453)])
#@213 Finds a bucket containing tokens of the given type, creates nodes for them
and adds them to the given node. The bucket is removed from the buckets list.
PARENT-TOKEN is only propagated to `ecb-add-token-bucket'.
(defalias 'ecb-find-add-token-bucket #[(node type display sort-method buckets &optional parent-token no-bucketize) "A\205@ \211A@)\n\211A@)A@=\2031 \306\f\n
\n&\210\211\211AA)\241\202? \307\f
A \n&)\207" [buckets x bucket type node display ecb-add-token-bucket ecb-find-add-token-bucket sort-method parent-token no-bucketize] 9 (#$ . 98009)])
(defalias 'ecb-format-bucket-name #[(name) "@ A@Q\303\n\3048\"\211)\207" [ecb-bucket-token-display name formatted-name ecb-merge-face-into-text 2] 5])
#@62 Adds a token bucket to a node unless DISPLAY equals 'hidden.
(defalias 'ecb-add-token-bucket #[(node bucket display sort-method &optional parent-token no-bucketize) "\205d \306@! \f\307=?\205c \f\310=\204- \311\312\313\211
\205# \314&\315\n\f\316=\"\210\317A\"\313\211\203a @\320\311\321\322\323\n
\205P \314&$\210A\211\204<