Server IP : 111.118.215.189 / Your IP : 18.189.171.154 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:23 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/imenu.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\304\306\304\307\310\311&\210\312\313\314\315\316DD\317\320\321\304\301&\210\312\322\314\315\323DD\324\320\325\304\301&\210\312\326\314\315\327DD\330\320\321\304\301&\210\312\331\314\315\332DD\333\320\334\304\301&\207" [custom-declare-group imenu nil "Mode-specific buffer indexes." :group matching frames convenience :link (custom-manual "(elisp)Imenu") custom-declare-variable imenu-use-markers funcall function #[0 "\300\207" [t] 1 "\n\n(fn)"] "Non-nil means use markers instead of integers for Imenu buffer positions.\n\nSetting this to nil makes Imenu work a little faster but editing the\nbuffer will make the generated index positions wrong.\n\nThis might not yet be honored by all index-building functions." :type boolean imenu-max-item-length #[0 "\300\207" [60] 1 "\n\n(fn)"] "If a number, truncate Imenu entries to that length." (choice integer (const :tag "Unlimited")) imenu-auto-rescan #[0 "\300\207" [nil] 1 "\n\n(fn)"] "Non-nil means Imenu should always rescan the buffers." imenu-auto-rescan-maxout #[0 "\300\207" [60000] 1 "\n\n(fn)"] "Imenu auto-rescan is disabled in buffers larger than this size (in bytes).\nThis variable is buffer-local." integer] 12) (defvar imenu-always-use-completion-buffer-p nil) (byte-code "\300\301\302\303#\210\304\302\305\306\307DD\310\311\312\313\314&\210\304\315\305\306\316DD\317\311\320\313\314\321\303& \210\304\322\305\306\323DD\324\311\325\313\314&\210\304\326\305\306\327DD\330\311\331\313\314&\210\304\332\305\306\333DD\334\311\335\313\314&\210\304\336\305\306\337DD\340\311\341\313\314&\210\304\342\305\306\343DD\344\311\345\313\314&\207" [make-obsolete-variable imenu-always-use-completion-buffer-p imenu-use-popup-menu "22.1" custom-declare-variable funcall function #[0 "\203 \301=?\207\302\207" [imenu-always-use-completion-buffer-p never on-mouse] 2 "\n\n(fn)"] "Use a popup menu rather than a minibuffer prompt.\nIf nil, always use a minibuffer prompt.\nIf t, always use a popup menu,\nIf `on-mouse' use a popup menu when `imenu' was invoked with the mouse." :type (choice (const :tag "On Mouse" on-mouse) (const :tag "Never" nil) (other :tag "Always" t)) :group imenu imenu-eager-completion-buffer #[0 "\301=?\207" [imenu-always-use-completion-buffer-p never] 2 "\n\n(fn)"] "If non-nil, eagerly popup the completion buffer." boolean :version imenu-after-jump-hook #[0 "\300\207" [nil] 1 "\n\n(fn)"] "Hooks called after jumping to a place in the buffer.\n\nUseful things to use here include `reposition-window', `recenter', and\n(lambda () (recenter 0)) to show at top of screen." hook imenu-sort-function #[0 "\300\207" [nil] 1 "\n\n(fn)"] "The function to use for sorting the index mouse-menu.\n\nAffects only the mouse index menu.\n\nSet this to nil if you don't want any sorting (faster).\nThe items in the menu are then presented in the order they were found\nin the buffer.\n\nSet it to `imenu--sort-by-name' if you want alphabetic sorting.\n\nThe function should take two arguments and return t if the first\nelement should come before the second. The arguments are cons cells;\n(NAME . POSITION). Look at `imenu--sort-by-name' for an example." (choice (const :tag "No sorting" nil) (const :tag "Sort by name" imenu--sort-by-name) (function :tag "Another function")) imenu-max-items #[0 "\300\207" [25] 1 "\n\n(fn)"] "Maximum number of elements in a mouse menu for Imenu." integer imenu-space-replacement #[0 "\300\207" ["."] 1 ".\n\n(fn)"] "The replacement string for spaces in index names.\nUsed when presenting the index in a completion buffer to make the\nnames work as tokens." (choice string (const nil)) imenu-level-separator #[0 "\300\207" [":"] 1 ":\n\n(fn)"] "The separator between index names of different levels.\nUsed for making mouse-menu titles and for flattening nested indexes\nwith name concatenation." string] 10) #@1465 List of definition matchers for creating an Imenu index. Each element of this list should have the form (MENU-TITLE REGEXP INDEX [FUNCTION] [ARGUMENTS...]) MENU-TITLE should be nil (in which case the matches for this element are put in the top level of the buffer index) or a string (which specifies the title of a submenu into which the matches are put). REGEXP is a regular expression matching a definition construct which is to be displayed in the menu. REGEXP may also be a function, called without arguments. It is expected to search backwards. It must return true and set `match-data' if it finds another element. INDEX is an integer specifying which subexpression of REGEXP matches the definition's name; this subexpression is displayed as the menu item. FUNCTION, if present, specifies a function to call when the index item is selected by the user. This function is called with arguments consisting of the item name, the buffer position, and the ARGUMENTS. The variable `imenu-case-fold-search' determines whether or not the regexp matches are case sensitive, and `imenu-syntax-alist' can be used to alter the syntax table for the search. If non-nil this pattern is passed to `imenu--generic-function' to create a buffer index. For example, see the value of `fortran-imenu-generic-expression' used by `fortran-mode' with `imenu-syntax-alist' set locally to give the characters which normally have "symbol" syntax "word" syntax during matching. (defvar imenu-generic-expression nil (#$ . 4408)) (make-variable-buffer-local 'imenu-generic-expression) #@290 The function to use for creating an index alist of the current buffer. It should be a function that takes no arguments and returns an index alist of the current buffer. The function is called within a `save-excursion'. See `imenu--index-alist' for the format of the buffer index alist. (defvar imenu-create-index-function 'imenu-default-create-index-function (#$ . 5984)) (make-variable-buffer-local 'imenu-create-index-function) #@374 Function for finding the next index position. If `imenu-create-index-function' is set to `imenu-default-create-index-function', then you must set this variable to a function that will find the next index, looking backwards in the file. The function should leave point at the place to be connected to the index and it should return nil when it doesn't find another index. (defvar imenu-prev-index-position-function 'beginning-of-defun (#$ . 6424)) (make-variable-buffer-local 'imenu-prev-index-position-function) #@244 Function for extracting the index item name, given a position. This function is called after `imenu-prev-index-position-function' finds a position for an index item, with point at that position. It should return the name for that index item. (defvar imenu-extract-index-name-function nil (#$ . 6945)) (make-variable-buffer-local 'imenu-extract-index-name-function) #@312 Function to compare string with index item. This function will be called with two strings, and should return non-nil if they match. If nil, comparison is done with `string='. Set this to some other function for more advanced comparisons, such as "begins with" or "name matches and number of arguments match". (defvar imenu-name-lookup-function nil (#$ . 7318)) (make-variable-buffer-local 'imenu-name-lookup-function) #@135 The default function called when selecting an Imenu item. The function in this variable is called when selecting a normal index-item. (defvar imenu-default-goto-function 'imenu-default-goto-function (#$ . 7745)) (make-variable-buffer-local 'imenu-default-goto-function) (defalias 'imenu--subalist-p #[257 "\211A:\205 \211\211A@)<\205 \211\211A@)@\301=?\207" [x lambda] 3 "\n\n(fn ITEM)"]) #@266 Macro to display a progress message. RELPOS is the relative position to display. If RELPOS is nil, then the relative position in the buffer is calculated. PREVPOS is the variable in which we store the last position displayed. (fn PREVPOS &optional RELPOS REVERSE) (defalias 'imenu-progress-message '(macro . #[769 "\300\207" ["Macro to display a progress message.\nRELPOS is the relative position to display.\nIf RELPOS is nil, then the relative position in the buffer\nis calculated.\nPREVPOS is the variable in which we store the last position displayed."] 4 (#$ . 8145)])) #@88 Return the current/previous sexp and its (beginning) location. Don't move point. (fn) (defalias 'imenu-example--name-and-position #[0 "\212\301\302!\210\203 \303 \202 `\301 \210`{B\266\202)\207" [imenu-use-markers forward-sexp -1 point-marker] 4 (#$ . 8728)]) (make-obsolete 'imenu-example--name-and-position "use your own function instead." "23.2") (defalias 'imenu-example--lisp-extract-index-name #[0 "\300 \301\302\303\304\305\306!\307\"\310\311%DC\216\312\313!\205% \314\301\315D\316\301\317\314EDC\217)\207" [match-data funcall make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 "\n\n(fn)" looking-at "(def" #1=#:err #[0 "\300\301!\210\302\303!\210`\302\304!\210`{\207" [down-list 1 forward-sexp 2 -1] 4 "\n\n(fn)"] error #[257 "\300\207" [nil] 2 "\n\n(fn IGNORED)"]] 8 "\n\n(fn)"]) (make-obsolete 'imenu-example--lisp-extract-index-name nil "23.2") (defalias 'imenu-example--create-lisp-index #[0 "\300\211\211\211db\210\301 \203\207 \302 \303\304\305\306\307\310!\311\"\312\313%DC\216\314\315!\203\202 \212\316\317!\210\314\320!\203= \321\322!\210\323 B\262\202\201 \314\324!\203P \321\322!\210\323 B\262\202\201 \314\325!\203w \321\322!\210`Sf\326U\203n \321\327!\210\316\317!\210\321\317!\210\323 B\262\202\201 \321\322!\210\323 B\262))\210\202 \203\222 \330BB\262\203\235 \331BB\262\211\203\250 \332BB\262\207" [nil beginning-of-defun match-data funcall make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 "\n\n(fn)" looking-at "(def" down-list 1 "def\\(var\\|const\\)" forward-sexp 2 imenu-example--name-and-position "def\\(un\\|subst\\|macro\\|advice\\)" "def\\(type\\|struct\\|class\\|ine-condition\\)" 41 -1 "Variables" "Types" "Syntax-unknown"] 12 "\n\n(fn)"]) (make-obsolete 'imenu-example--create-lisp-index nil "23.2") (defvar imenu-example--function-name-regexp-c "^[a-zA-Z0-9]+[ ]?\\([a-zA-Z0-9_*]+[ ]+\\)?\\([a-zA-Z0-9_*]+[ ]+\\)?\\([*&]+[ ]*\\)?\\([a-zA-Z0-9_*]+\\)[ ]*(") (defalias 'imenu-example--create-c-index #[256 "\301\211eb\210\302 \303\304\305\306\307\310!\311\"\312\313%DC\216\314\206 \301\315#\203B \316\317!\210\212\320`\317\"b\210g\262)\321=\204 \322 B\262\202 )\210\237\207" [imenu-example--function-name-regexp-c nil match-data funcall make-byte-code 0 "\301\300\302\"\207" vconcat vector [set-match-data evaporate] 3 "\n\n(fn)" re-search-forward t backward-up-list 1 scan-sexps 59 imenu-example--name-and-position] 11 "\n\n(fn &optional REGEXP)"]) (make-obsolete 'imenu-example--create-c-index nil "23.2") (defconst imenu--rescan-item '("*Rescan*" . -99)) #@663 The buffer index alist computed for this buffer in Imenu. Simple elements in the alist look like (INDEX-NAME . POSITION). POSITION is the buffer position of the item; to go to the item is simply to move point to that position. Special elements look like (INDEX-NAME POSITION FUNCTION ARGUMENTS...). To "go to" a special element means applying FUNCTION to INDEX-NAME, POSITION, and the ARGUMENTS. A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). The function `imenu--subalist-p' tests an element and returns t if it is a sub-alist. There is one simple element with negative POSITION; selecting that element recalculates the buffer's index alist. (defvar imenu--index-alist nil (#$ . 11342)) (make-variable-buffer-local 'imenu--index-alist) #@65 The latest buffer index alist used to update the menu bar menu. (defvar imenu--last-menubar-index-alist nil (#$ . 12104)) (make-variable-buffer-local 'imenu--last-menubar-index-alist) #@48 History list for 'jump-to-function-in-buffer'. (defvar imenu--history-list nil (#$ . 12294)) #@122 Comparison function to sort items depending on their index name. An item looks like (NAME . POSITION). (fn ITEM1 ITEM2) (defalias 'imenu--sort-by-name #[514 "@@\231\207" [] 4 (#$ . 12394)]) (defalias 'imenu--sort-by-position #[514 "AAW\207" [] 4 "\n\n(fn ITEM1 ITEM2)"]) #@200 Support function to calculate relative position in buffer. Beginning of buffer is 0 and end of buffer is 100 If REVERSE is non-nil then the beginning is 100 and the end is 0. (fn &optional REVERSE) (defalias 'imenu--relative-position #[256 "`\300 \203\f \211Z\262\211\301V\203 S\302\245\303]\245\202% S\302_\303]\245\207" [buffer-size 50000 100 1] 6 (#$ . 12677)]) #@181 Split LIST into sublists of max length N. Example (imenu--split '(1 2 3 4 5 6 7 8) 3)-> '((1 2 3) (4 5 6) (7 8)) The returned list DOES NOT share structure with LIST. (fn LIST N) (defalias 'imenu--split #[514 "\300\211\301\203+ \211A\262@B\262\211T\262\211U\203 \237B\262\301\262\300\262\202 \2035 \237B\262\237\207" [nil 0] 8 (#$ . 13058)]) #@297 Split the alist MENULIST into a nested alist, if it is long enough. In any case, add TITLE to the front of the alist. If IMENU--RESCAN-ITEM is present in MENULIST, it is moved to the beginning of the returned alist. The returned alist DOES NOT share structure with MENULIST. (fn MENULIST TITLE) (defalias 'imenu--split-menu #[514 "\303!\304>\203 C\262\305\"\262\211\2033 \211@\306!\203, \211B\262\305\"\262A\266\202\202 \210 \203>