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:45 2003 ;;; from file d:/emacs/ecb/ecb-layout.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-layout.el' was compiled for Emacs 20 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\302\303!\210\302\304!\210\302\305!\210\302\306!\210\301B\307\301!\204\310\302\207" [current-load-list ecb-layouts-reload-needed require ecb-util ecb-speedbar ecb-compilation ecb-create-layout boundp t] 2) #@26 Load all defined layouts (defalias 'ecb-load-layouts #[nil "\205\302\303!\210\304 !\203\305 !\210\306\211\207" [ecb-layouts-reload-needed ecb-create-layout-file require ecb-layout-defs file-readable-p load-file nil] 2 (#$ . 818)]) #@44 Use dedicated windows for the ECB buffers. (defconst ecb-use-dedicated-windows t (#$ . 1061)) (byte-code "\302\303\304\305\306\307\310\311&\210\302\312\304\313\306\303\310\311&\210\301B\314\304\207" [current-load-list ecb-layout-option-set-function custom-declare-group ecb-layout nil "Settings for the screen-layout of the Emacs code browser." :group ecb :prefix "ecb-" ecb-compilation "Settings for the compile window of ECB." #[(symbol value) " L\210\306\302!\205\"\n\205\"\307 !\205\"\310 \311\312\216\313 !\210\314 +\207" [symbol value ecb-minor-mode ecb-frame ecb-redraw-layout-quickly curr-frame boundp frame-live-p selected-frame nil ((select-frame curr-frame)) select-frame ecb-redraw-layout-full] 2]] 8) #@55 *Select the first edit window on `ecb-redraw-layout'. (custom-declare-variable 'ecb-select-edit-window-on-redraw 'nil '(#$ . -1792) :group 'ecb-layout :type 'boolean) #@48 *Create a new frame at activation time of ECB. (custom-declare-variable 'ecb-new-ecb-frame 'nil '(#$ . -1965) :group 'ecb-layout :type 'boolean) #@146 *Hook run before the new ECB-frame is created. This has only an effect if `ecb-new-ecb-frame' is not nil (otherwise this hook is not evaluated). (custom-declare-variable 'ecb-activate-before-new-frame-created-hook 'nil '(#$ . -2117) :group 'ecb-layout :type 'hook) #@957 *Select a window layout of ECB. Value is any arbitrary string. There are four different types of layouts: left, right, top and left-right, which means the location of the ECB-tree-windows in the ECB-frame. Currently there are 20 predefined layouts; names the below. You can savely try out any of them by changing this value and saving it only for the current session. If you are sure which layout you want you can save it for future sessions. To get a picture of the layout for name call `ecb-show-layout-help'. Currently available layouts: + Left layouts: left1 left2 left3 left4 left5 left6 left7 left8 left9 left10 left11 left12 left13 left14 left15 + Right layouts: right1 + Top layouts: top1 top2 + Left-right layouts: leftright1 leftright2 leftright3 Regardless of the settings you define here: If you have destroyed or changed the ECB-screen-layout by any action you can always go back to this layout with `ecb-redraw-layout' (custom-declare-variable 'ecb-layout-name '"left8" '(#$ . -2389) :group 'ecb-layout :initialize 'custom-initialize-default :set #'(lambda (symbol value) (ecb-load-layouts) (if (fboundp (intern (format "ecb-layout-function-%s" value))) (funcall ecb-layout-option-set-function symbol value) (ecb-error "There is no layout with name %s available!" value))) :type 'string) #@1520 *Height of the durable compilation-window of ECB. If you want a compilation window shown at the bottom of the ECB-layout then set here the height of it (Default is a height of 5). If you redraw the current layout with `ecb-redraw-layout' then the compilation window (if any) has the height you set here. If the number is less than 1.0 the height is a fraction of the frame height. If you do not set a durable compilation window then doing a compilation or displaying temp-buffers (e.g. *Help*-buffers) splits temporally the edit window vertically if the edit window is not splitted already or uses the "other" edit window temporally for compilation output if the edit window is already splitted. This is the recommended value for this option because this is the standard-behavior of Emacs. Beware: If you set a durable compilation window then ECB displays all buffers for which `ecb-compilation-buffer-p' returns not nil in that durable compilation window. If a buffer which should being displayed there is not displayed there then try to modify the options `ecb-compilation-buffer-names', `ecb-compilation-major-modes' or `ecb-compilation-predicates' (in this sequence). See also the options `ecb-compile-window-temporally-enlarge' and `ecb-enlarged-compilation-window-max-height' and also the command `ecb-toggle-compile-window-height'! Regardless of the settings you define here: If you have destroyed or changed the ECB-screen-layout by any action you can always go back to this layout with `ecb-redraw-layout' (custom-declare-variable 'ecb-compile-window-height 'nil '(#$ . -3722) :group 'ecb-compilation :initialize 'custom-initialize-default :set #'(lambda (symbol value) (ecb-set-window-size-fixed nil) (funcall ecb-layout-option-set-function symbol value)) :type '(radio (const :tag "No compilation window" nil) (number :tag "Window height" :value 6))) #@1781 *Width of the compile-window. Possible values are 'frame and 'edit-window. With 'frame the compile-window looks like: ------------------------------------------------------- | | | | Directories | | | | | |--------------| edit-window(s) | | | | | Methods | | | | | ------------------------------------------------------- | | | Compilation | | | ------------------------------------------------------- With 'edit-window the compile-window looks like: ------------------------------------------------------- | | | | Directories | | | | | |--------------| edit-window(s) | | | | | Methods | | | | | | |--------------------------------------- | | | | | Compilation | | | | ------------------------------------------------------- This option takes only effect if `ecb-compile-window-height' is not nil! (custom-declare-variable 'ecb-compile-window-width ''frame '(#$ . -5596) :group 'ecb-compilation :initialize 'custom-initialize-default :set #'(lambda (symbol value) (funcall ecb-layout-option-set-function symbol value)) :type '(radio (const :tag "Width of ECB-frame" :value frame) (const :tag "Width of edit-window" :value edit-window))) #@1029 *Let Emacs temporally enlarge the compile-window of the ECB-layout. This option has only an effect if `ecb-compile-window-height' is not nil! The following values are possible: - 'after-display: After displaying a "compilation-buffer" (in the sense of `ecb-compilation-buffer-p'!) in the compile-window of ECB. For the max. height of the enlarged compile-window see the option `ecb-enlarged-compilation-window-max-height'. - 'after-selection: selecting the `ecb-compile-window' auto. enlarges it and de-selecting (means leaving `ecb-compile-window') auto. shrinks it. Enlarging and shrinking the `ecb-compile-window' is done with `ecb-toggle-compile-window-height'. See also the documentation of this function! - 'both: The combination of 'after-display and 'after-selection. - nil: ECB fixes always the height of the `ecb-compile-window' at the value of `ecb-compile-window-height'. To restore the ECB-layout after such a buffer-enlarge just call `ecb-toggle-compile-window-height' or `ecb-redraw-layout'. (custom-declare-variable 'ecb-compile-window-temporally-enlarge ''after-display '(#$ . -7723) :group 'ecb-compilation :initialize 'custom-initialize-default :set ecb-layout-option-set-function :type '(radio (const :tag "After displaying a buffer in the compile-window" :value after-display) (const :tag "After selecting the compile window" :value after-selection) (const :tag "Both of them" :value both) (const :tag "Never" :value nil))) #@459 *Allow the compile-window to be shrunken below its height. A non nil value means ECB prevents the compile-window from being shrunken below the threshold of `ecb-compile-window-height' by displaying temp-buffers (e.g. *Help* etc.) or after running compilations or greps. But interactively it is always allowed to shrink it to every height! If nil then ECB does nothing to prevent being shrunken below the value of `ecb-compile-window-height'. Default is t. (custom-declare-variable 'ecb-compile-window-prevent-shrink-below-height 't '(#$ . -9196) :group 'ecb-compilation :type 'boolean) #@911 *The max height of the compile-window after enlarging it. The max height of the compilation window after enlarged by `ecb-toggle-compile-window-height'. The following values are allowed: 'best: ECB fits the height of the compile-window exactly to the size of its current contents but never shrinks below the value of `ecb-compile-window-height' or enlarges over the half of the frame-height of the ECB-frame. The values of the options `compilation-window-height' and `temp-buffer-max-height' are taken into account dependent of the current `major-mode' of the buffer in the compile-window: If `compilation-mode' then `compilation-window-height' is used otherwise `temp-buffer-max-height'. 'half: 1/2 the frame-height of the ECB-frame Any number: Max height in lines. If the number is less than 1.0 the height is a fraction of the frame height (e.g. 0.33 results in a max-height of 1/3 the frame-height). (custom-declare-variable 'ecb-enlarged-compilation-window-max-height ''best '(#$ . -9791) :group 'ecb-compilation :type '(radio (const :tag "Compute best height" :value best) (const :tag "1/2 the frame height)" :value half) (number :tag "Height" :value 0.3))) #@156 *Sets how and if the edit window should be splitted. But be aware: This option determines only if the edit-window should be splitted at start-time of ECB. (custom-declare-variable 'ecb-split-edit-window 't '(#$ . -10968) :group 'ecb-layout :type '(radio (const :tag "Split as before ECB-start" :value t) (const :tag "Split horizontally" :value horizontal) (const :tag "Split vertically" :value vertical) (const :tag "Do not split" :value nil))) #@146 *The width of the ECB windows in columns for left- and right layouts. If the number is less than 1.0 the width is a fraction of the frame width. (custom-declare-variable 'ecb-windows-width '0.33 '(#$ . -11420) :group 'ecb-layout :initialize 'custom-initialize-default :set ecb-layout-option-set-function :type 'number) #@134 *The height of the ECB windows in lines for top layouts. If the number is less than 1.0 the width is a fraction of the frame height. (custom-declare-variable 'ecb-windows-height '0.33 '(#$ . -11746) :group 'ecb-layout :initialize 'custom-initialize-default :set ecb-layout-option-set-function :type 'number) #@1300 *Fix size of the ECB-windows/buffers even after frame-resizing. The fix type (valid values are nil, t, width and height) can either be set on a layout-basis (means a different value for each layout) or one value can be set for all layouts. In the latter case there is an additional value 'auto which choose autom. the senseful fix-type depending on the current layout-type: For top-layouts the fix-type 'height and for all other layout-types the fix-type 'width. For a detailed description of the valid values see documentation of `window-size-fixed' which is newly introduced in GNU Emacs 21 and is only available there. Therefore this option takes only effect with GNU Emacs 21. Note1: Manually resizing the ECB-windows via `enlarge-window', `shrink-window', `mouse-drag-vertical-line' and `mouse-drag-mode-line' is still possible even if the window-sizes are fixed for frame-resizing! Note2: The description of `window-size-fixed' in the elisp-info-manual is more detailed than the description offered by [C-h v]! Note3: With current Emacs 21.2.X there seems to be no distinction between 'width, 'height and t. Therefore this option takes no effect (means all ecb-windows have always unfixed sizes) if `ecb-compile-window-height' is not nil. Per default no window-size fixing has been done. (custom-declare-variable 'ecb-fix-window-size 'nil '(#$ . -12062) :group 'ecb-directories :initialize 'custom-initialize-default :set #'(lambda (sym value) (set sym value) (ecb-set-window-size-fixed (ecb-get-window-fix-type ecb-layout-name))) :type '(radio (choice :tag "Fix type for all layouts" :menu-tag "Fix type for all layouts" (const :tag "Automatic" :value auto) (const :tag "Fix only width" :value width) (const :tag "Fix only height" :value height) (const :tag "Fix both" :value t) (const :tag "No fixing" :value nil)) (repeat :tag "With these layouts" (cons (string :tag "Layout name") (choice :tag "Fix type" :menu-tag "Fix type for all layouts" (const :tag "Fix only width" :value width) (const :tag "Fix only height" :value height) (const :tag "Fix both" :value t) (const :tag "No fixing" :value nil)))))) #@100 Determine which value of `window-size-fixed' we must set in all ecb-buffers of layout LAYOUT-NAME. (defalias 'ecb-get-window-fix-type #[(layout-name) "9\203\303\232\203\304 !\305\232\203\306\207\307\207\207\310\n\"A\207" [ecb-fix-window-size ecb-layout-name layout-name auto ecb-get-layout-type top height width assoc] 3 (#$ . 14188)]) #@149 Set the buffer-local value of `window-size-fixed' in each visible ecb-window to FIX. If `ecb-compile-window-height' is not nil then set always nil! (defalias 'ecb-set-window-size-fixed #[(fix) "\205*\306 \211\307\211\203( @\212\310\n!q\210\f?\205  ) A\211\204+\307\207" [ecb-running-emacs-21 l w #1=#:--dolist-temp--47327 ecb-compile-window-height fix ecb-canonical-ecb-windows-list nil window-buffer window-size-fixed] 4 (#$ . 14541)]) #@300 Evaluate BODY with unfixed size of all current-visible ecb-buffers and ensure that at the end (either after finishing of BODY or after an error occurs during BODY) all now current visible ecb-buffers get the value of their buffer-local `window-size-fixed' from the setting in `ecb-fix-window-size'. (defalias 'ecb-do-with-unfixed-ecb-buffers '(macro . #[(&rest body) "\301\302\303BB\304BB\207" [body unwind-protect progn (ecb-set-window-size-fixed nil) ((ecb-set-window-size-fixed (ecb-get-window-fix-type ecb-layout-name)))] 4 (#$ . 14998)])) #@452 *Which windows of ECB should be accessible by the command `other-window'. This has an effect if `other-window' is adviced by ECB, see `ecb-advice-window-functions'. The following settings are possible: - 'all: ECB will cycle through all windows of ECB, means it behaves like the original `other-window'. - 'only-edit: ECB will only cycle through the (max. 2) edit-windows of ECB. - 'edit-and-compile: Like 'only-edit plus the compile window if any. (custom-declare-variable 'ecb-other-window-jump-behavior ''all '(#$ . -15550) :group 'ecb-layout :type '(radio (const :tag "All windows" all) (const :tag "Only edit windows" only-edit) (const :tag "Edit + compile window" edit-and-compile))) #@2995 *Advice functions to be more intelligent if used with ECB. You can choose the following functions to be adviced by ECB so they behave as if the edit-window(s) of ECB would be the only windows(s) of the ECB-frame: - `other-window' For this one see also the option `ecb-other-window-jump-behavior'! - `delete-window' - `delete-other-windows' - `delete-windows-on' - `split-window-horizontally' - `split-window-vertically' - `split-window' If this is enabled then `split-window-vertically' and `split-window-horizontally' are autom. enabled too! - `switch-to-buffer' - `switch-to-buffer-other-window' - `display-buffer' Especially if `ecb-compile-window-height' is not nil it is strongly recommended not to disable this advice! - `other-window-for-scrolling' If this advice is enabled then the following functions scroll always the first edit-window if the edit-window is splitted, point stays in the "other" edit-window and there is no durable compilation-window (see `ecb-compile-window-height'): - `scroll-other-window' - `scroll-other-window-down' - `beginning-of-buffer-other-window' - `end-of-buffer-other-window' This advice is per default not enabled. For working most conveniently with ECB it is the best to advice all these functions, because then all the standard shortcuts of these functions are also usable with ECB without doing anything else. Also other packages can interact best with ECB if these functions are all adviced. If these adviced functions are called in another frame than the ECB-frame they behave all exactly like the not adviced versions! But please read also the following: Normally all packages should work correct with ECB and itīs adviced functions but if there occur problems with a package cause of some of these adviced functions ECB offers the following fall-back solution: 1. Deactivate in `ecb-advice-window-functions' all the adviced-functions which make problems with other packages. 2. For every of the advice-able functions ECB offers a interactively function named "ecb-" which does exactly the same as the adviced version of . Use "ecb-" instead the original one to get the proper ECB behavior even if the function is not adviced anymore. 3. You can bind in `ecb-activate-hook' the standard-shortcut of to "ecb-" and rebind it in `ecb-deactivate-hook' to . 4. Now you have the best of both worlds: The problematic package works and you have the ECB-behavior of as if it would be adviced. Here is an example: Suppose you must deactivating the advice for `switch-to-buffer-other-window'. Then you deactivate this function with this option and you can use `ecb-switch-to-buffer-other-window' instead. Bind the shortcut you normally use for `switch-to-buffer-other-window' to `ecb-switch-to-buffer-other-window' (use `ecb-activate-hook' for this) and rebind it to the original function in the `ecb-deactivate-hook'. (custom-declare-variable 'ecb-advice-window-functions ''(other-window delete-window delete-other-windows delete-windows-on split-window-horizontally split-window-vertically split-window switch-to-buffer switch-to-buffer-other-window display-buffer) '(#$ . -16250) :group 'ecb-layout :initialize 'custom-initialize-set :set #'(lambda (symbol value) (when (member 'split-window value) (add-to-list 'value 'split-window-vertically) (add-to-list 'value 'split-window-horizontally)) (set symbol value) (when (and (boundp 'ecb-minor-mode) ecb-minor-mode) (ecb-activate-adviced-functions value))) :type '(set (const :tag "other-window" :value other-window) (const :tag "delete-window" :value delete-window) (const :tag "delete-other-windows" :value delete-other-windows) (const :tag "delete-windows-on" :value delete-windows-on) (const :tag "split-window-horizontally" :value split-window-horizontally) (const :tag "split-window-vertically" :value split-window-vertically) (const :tag "split-window" :value split-window) (const :tag "switch-to-buffer" :value switch-to-buffer) (const :tag "switch-to-buffer-other-window" :value switch-to-buffer-other-window) (const :tag "display-buffer" :value display-buffer) (const :tag "other-window-for-scrolling" :value other-window-for-scrolling))) #@1142 *Adviced window functions work always in the edit-window. If we are in an ECB special buffer (methods, directories, etc), and any of the adviced windowing functions is called (see `ecb-advice-window-functions'), we will select the `ecb-edit-window' first. This is useful if you have any functions that use such functions and you don't want them to just error with a method complaining that the current buffer can not be split, or something similar. Because this may not be desirable in all situations and all adviced functions this can be enabled separately for every advisable function (see also `ecb-advice-window-functions'). If the symbol of an adviced function is contained in the value of this option, then the edit-window is first selected otherwise either an error is reported or some other special reaction; see the documentation of the adviced functions for this. For `other-window', `other-window-for-scrolling' and `switch-to-buffer-other-window' this makes no sense, therefore you can not enable this for them. Per default this is enabled for `delete-window', `delete-other-windows', `switch-to-buffer' and `display-buffer'. (custom-declare-variable 'ecb-layout-always-operate-in-edit-window ''(delete-window delete-other-windows display-buffer switch-to-buffer) '(#$ . -20534) :group 'ecb-layout :type '(set (const :tag "delete-window" :value delete-window) (const :tag "delete-other-windows" :value delete-other-windows) (const :tag "split-window-horizontally" :value split-window-horizontally) (const :tag "split-window-vertically" :value split-window-vertically) (const :tag "split-window" :value split-window) (const :tag "display-buffer" :value display-buffer) (const :tag "switch-to-buffer" :value switch-to-buffer))) #@176 Return a list of all current visible special dedicated ECB-windows (starting from the left-most top-most window) in the order `other-window' would walk through these windows. (defalias 'ecb-canonical-ecb-windows-list #[nil "\301\302\303\304\305\306\307!#\"\"\207" [ecb-frame delete nil mapcar #[(elem) "\301!\205\207" [elem window-dedicated-p] 2] ecb-window-list 0 frame-first-window] 9 (#$ . 22282)]) #@1014 *Specifies the sizes of the ECB windows for each layout. The easiest way (and also the strongly recommended way) to change this variable is to change the window sizes by dragging the window borders using the mouse and then store the window sizes by calling the command `ecb-store-window-sizes'. Next time the layout is redrawn the values stored in this option will be used. If `ecb-store-window-sizes' is used then the windows sizes are stored per default as fractions of current frame-width and -height of the ecb-frame, so the stored values will "work" for other frame sizes too. But if you call `ecb-store-window-sizes' with a prefix-argument then the fixed values of current width and height are stored! If this option is set "by hand" (i.e. not by `ecb-store-window-sizes') then the following is important: - It is recommended to use fractions of frame-width and -height!. - The order of the sequence of the inserted window sizes must be the same as `other-window' (the not-adviced version!) would walk! (custom-declare-variable 'ecb-layout-window-sizes 'nil '(#$ . -22698) :group 'ecb-layout :initialize 'custom-initialize-default :set ecb-layout-option-set-function :type '(repeat (cons :tag "Window layout" (string :tag "Layout name") (repeat :tag "Window sizes" (cons (choice :tag "Width" :menu-tag "Width" :value 0.0 (const :tag "Default value" :value nil) (number :tag "Custom size")) (choice :tag "Height" :menu-tag "Height" (const :tag "Default value" :value nil) (number :tag "Custom size"))))))) #@128 If non-nil, we will attempt to redraw the layout quickly. Please read also carefully the documentation of `ecb-redraw-layout'. (custom-declare-variable 'ecb-redraw-layout-quickly 'nil '(#$ . 24220) :type 'boolean :group 'ecb-layout) #@1110 *Toggle sequence for layout toggling with `ecb-toggle-layout'. Every element of this list has to be a valid layout-name "string) i.e. either one of the predefined layouts or one of the user-defined layouts (see `ecb-create-new-layout'). You can add here as many layouts as you want but to use this option most effective you should not add more than 2 or 3 layouts so every layout can be accessed very fast by toggling with `ecb-toggle-layout'. It is also senseful to add layouts which have the same principal outline, i.e. all their tree-buffers are on the same side of the frame and the tree-buffer-"column" (or -"row") has identical size for the layouts. Recommended values are for example: - ("left10" "left15"), toggles between methods and directories/history - ("left10" "left13"), toggles between methods and directories - ("left10" "left14"), toggles between methods and history - ("left10" "left13" "left14"), toggles between methods, history and directories See also option `ecb-show-sources-in-directories-buffer'. This option makes only sense if the value is a list with more than 1 element! (custom-declare-variable 'ecb-toggle-layout-sequence ''("left9" "left14") '(#$ . -24461) :group 'ecb-layout :type '(repeat (string :tag "Layout name.")) :initialize 'custom-initialize-default :set #'(lambda (symbol value) (ecb-load-layouts) (dolist (name value) (if (and (boundp 'ecb-minor-mode) ecb-minor-mode (not (fboundp (intern (format "ecb-layout-function-%s" name))))) (ecb-error "There is no layout available with name %s!" name))) (set symbol value))) #@230 *Hook run direct before the ECB windows will be hidden. Hiding is done either by `ecb-toggle-ecb-windows' or `ecb-hide-ecb-windows'. This means that at runtime of this hook all the ECB-tree-windows of current layout are visible. (custom-declare-variable 'ecb-hide-ecb-windows-before-hook 'nil '(#$ . -26038) :group 'ecb-layout :type 'hook) #@137 *Hooks run direct after the ECB windows have been hidden. Hiding was done either by `ecb-toggle-ecb-windows' or `ecb-hide-ecb-windows'. (custom-declare-variable 'ecb-hide-ecb-windows-after-hook 'nil '(#$ . -26385) :group 'ecb-layout :type 'hook) #@758 *Hooks run direct before the ECB windows will be shown. Showing is done either by `ecb-toggle-ecb-windows' or `ecb-show-ecb-windows'. This means that at runtime of this hook the ECB-windows are still hidden. IMPORTANT: Showing the hidden ECB-windows is internally done by calling `ecb-redraw-layout' and therefore also the hooks `ecb-redraw-layout-before-hook' and `ecb-redraw-layout-after-hook' are evaluated. So there is the following sequence of hooks during the process of showing the hidden ECB-windows: 1. `ecb-show-ecb-windows-before-hook' 2. `ecb-redraw-layout-before-hook' 3.