MMCT TEAM
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  ]

Current File : //usr/share/emacs/24.3/lisp/imenu.elc
;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\203S\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>\203C\262\305\"\262\211\2033\211@\306!\203,\211B\262\305\"\262A\266\202\202\210	\203>\307	\"\262G\nV\203N\310\311\312\n\"\"\262\237\244B\207" [imenu--rescan-item imenu-sort-function imenu-max-items copy-sequence nil delq imenu--subalist-p sort mapcar #[257 "\301\302\211@@)\"B\207" [x format "From: %s"] 5 "\n\n(fn MENU)"] imenu--split] 9 (#$ . 13428)])
#@185 Split up each long alist that are nested within ALIST into nested alists.
Return a split and sorted copy of ALIST.  The returned alist DOES
NOT share structure with ALIST.

(fn ALIST)
(defalias 'imenu--split-submenus #[257 "\300\301\"\207" [mapcar #[257 "\211:\203\211@;\203\211A<\203\300A@\"\207\207" [imenu--split-menu] 4 "\n\n(fn ELT)"]] 4 (#$ . 14166)])
#@77 Truncate all strings in MENULIST to `imenu-max-item-length'.

(fn MENULIST)
(defalias 'imenu--truncate-items #[257 "\300\301\"\207" [mapcar #[257 "\211A:\203\301A!\207\247\205\211@GV\205\211@\302O\240\207" [imenu-max-item-length imenu--truncate-items 0] 5 "\n\n(fn ITEM)"]] 4 (#$ . 14539)])
#@297 Create an index alist for the definitions in the current buffer.
This works by using the hook function `imenu-create-index-function'.
Report an error if the list is empty unless NOERROR is supplied and
non-nil.

See `imenu--index-alist' for the format of the index alist.

(fn &optional NOERROR)
(defalias 'imenu--make-index-alist #[256 "\203	\203	\203\305 \nV\204\212\214~\210 *\306!\210\204+\211\204+\307\310!\210\2042\311C\fB\207" [imenu--index-alist imenu-auto-rescan imenu-auto-rescan-maxout imenu-create-index-function imenu--rescan-item buffer-size imenu--truncate-items user-error "No items suitable for an index found in this buffer" nil] 3 (#$ . 14849)])
(defvar imenu--cleanup-seen nil)
#@181 Find all markers in ALIST and make them point nowhere.
If ALIST is nil (the normal case), use `imenu--index-alist'.
Non-nil arguments are in recursive calls.

(fn &optional ALIST)
(defalias 'imenu--cleanup #[256 "\211\203\211B\202	\262\211C\211\205G\211\211\203E\211@\302A!\203,\211A\303\211\223\210\202>\211A>\204>\304!\203>\305A!\210A\266\202\202\210\306\207" [imenu--cleanup-seen imenu--index-alist markerp nil imenu--subalist-p imenu--cleanup t] 6 (#$ . 15573)])
(defalias 'imenu--create-keymap #[770 "\300\301\302\303\304\305\306!\307\"\310\311%\"BB\207" [keymap mapcar make-byte-code 257 "\211@@\301!\203\302@A\300#\202)\303\304\305\300\203$\300\306DD\202(\306DFBB\207" vconcat vector [imenu--subalist-p imenu--create-keymap lambda nil (interactive) quote] 9 "\n\n(fn ITEM)"] 12 "\n\n(fn TITLE ALIST &optional CMD)"])
#@81 Check whether the string STR is contained in multi-level ALIST.

(fn STR ALIST)
(defalias 'imenu--in-alist #[514 "\301\211\211\211\211\262\203L@\262A\262A\262@\262<\2031\302\"\211\262\203\301\262\202\203=\"\202@\230\203\301\262\262\202\207" [imenu-name-lookup-function nil imenu--in-alist] 9 (#$ . 16441)])
#@432 Alist of syntax table modifiers to use while in `imenu--generic-function'.

The car of the assocs may be either a character or a string and the
cdr is a syntax description appropriate for `modify-syntax-entry'.  For
a string, all the characters in the string get the specified syntax.

This is typically used to give word syntax to characters which
normally have symbol syntax to simplify `imenu-expression'
and speed-up matching.
(defvar imenu-syntax-alist nil (#$ . 16793))
(make-variable-buffer-local 'imenu-syntax-alist)
#@499 Default function to create an index alist of the current buffer.

The most general method is to move point to end of buffer, then repeatedly call
`imenu-prev-index-position-function' and `imenu-extract-index-name-function'.
All the results returned by the latter are gathered into an index alist.
This method is used if those two variables are non-nil.

The alternate method, which is the one most often used, is to call
`imenu--generic-function' with `imenu-generic-expression' as argument.

(fn)
(defalias 'imenu-default-create-index-function #[0 "\203C	\203C\304\305\304db\210 \203A`U\203 \306\307\310 #\210`\262\212	 \262)\211;\203\211\n\2038\311 \2029`BB\262\202\207\203K\312!\207\313\314!\207" [imenu-prev-index-position-function imenu-extract-index-name-function imenu-use-markers imenu-generic-expression nil -1 error "Infinite loop at %s:%d: imenu-prev-index-position-function does not move point" buffer-name point-marker imenu--generic-function user-error "This buffer cannot use `imenu-default-create-index-function'"] 7 (#$ . 17325)])
#@267 Defines whether `imenu--generic-function' should fold case when matching.

This variable should be set (only) by initialization code
for modes which use `imenu--generic-function'.  If it is not set, but
`font-lock-defaults' is set, then font-lock's setting is used.
(defvar imenu-case-fold-search t (#$ . 18402))
(make-variable-buffer-local 'imenu-case-fold-search)
#@403 Return an index alist of the current buffer based on PATTERNS.
PATTERNS should be an alist which has the same form as
`imenu-generic-expression'.

The return value is an alist of the form
 (INDEX-NAME . INDEX-POSITION)
or
 (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...)
The return value may also consist of nested index alists like:
 (INDEX-NAME . INDEX-ALIST)
depending on PATTERNS.

(fn PATTERNS)
(defalias 'imenu--generic-function #[257 "\305C\306\300!\204\306\301!\204\202\307	8\310 \311\310 !\n\312\262\211\211\203U\211@\211@\247\203:\313@A#\210\202N\314\315\316\317\320\321	\"\322\"\323\324%@\"\210A\266\202\202\"\210db\210\325\326DC\216\327 \325\315\330\331\320\321!\332\"\333\334%DC\216\335!\210\211\2030\211@\211@A@\3078\3338\336\233\312\211db\210\337!\203\234 \202\305\340\312\341#\203'\342`!\211?\206\303\211\203\301o\204\301\340\312\343#?\262\202\255\211?\262\203'\330\224\330\225U\204'`\262\224b\210\344 \210`\262\345\"\204\356CB\262\f\203\367\346!\262\203\347!E\244\202\347!B\345\"A\235\204\211AB\241\210\266b\210\202\220\266A\266\202\202w\210\335!\210)\210)\211\203S\211@\211<\203L\211\350A\351\"\241\210A\266\202\2029\210\312\236\352\352\305	\"\"A\244\262)\207" [imenu-case-fold-search font-lock-defaults imenu-syntax-alist case-fold-search imenu-use-markers dummy local-variable-p 2 syntax-table copy-syntax-table nil modify-syntax-entry mapc make-byte-code 257 "\302\301A\300#\207" vconcat vector [modify-syntax-entry] 5 "\n\n(fn C)" funcall #[0 "\300\207" [nil] 1 "\n\n(fn)"] match-data 0 "\301\300\302\"\207" [set-match-data evaporate] 3 "\n\n(fn)" set-syntax-table 4 functionp re-search-backward t invisible-p move beginning-of-line assoc copy-marker match-string-no-properties sort imenu--sort-by-position delq] 21 (#$ . 18775)])
#@91 Fuzzily find an item based on GUESS inside the alist COMPLETIONS.

(fn GUESS COMPLETIONS)
(defalias 'imenu-find-default #[514 "\300\301\302\303\304\305\306\"\307\"\310\311%D\215\207" [found funcall make-byte-code 0 "\303\304\300\301\"\203
\300\202M\305\306\300!\307Q\305\306\300!P\306\300!\307P\306\300!F\211\205K\211@\301\211\203C\211@\310@\"\203<\311\312@\"\210A\266\202\202(\210A\266\202\202!\262)\207" vconcat vector [case-fold-search t assoc "\\`" regexp-quote "\\'" string-match throw found] 7 "\n\n(fn)"] 11 (#$ . 20643)])
#@159 Let the user select from INDEX-ALIST in a completion buffer with PROMPT.

Return one of the entries in index-alist or nil.

(fn INDEX-ALIST &optional PROMPT)
(defalias 'imenu--completion-buffer #[513 "\303\304!\305\204\f\202\306\307\";\203\310\"\206\262\204:\2037\311\"\2037\312\313\"\262\202:\314\262	\n\204E\315\301\316\"\210\317\305\320\305\321	&\262);\205m\322\"\262\323!\203l\324A\"\202m\207" [imenu-space-replacement minibuffer-setup-hook imenu-eager-completion-buffer thing-at-point symbol nil mapcar #[257 "\301\302\303H@#AB\207" [imenu-space-replacement subst-char-in-string 32 0] 5 "\n\n(fn ITEM)"] imenu-find-default imenu--in-alist format "Index item (default %s): " "Index item: " add-hook minibuffer-completion-help completing-read t imenu--history-list assoc imenu--subalist-p imenu--completion-buffer] 13 (#$ . 21198)])
#@238 Let the user select from a buffer index from a mouse menu.

INDEX-ALIST is the buffer index and EVENT is a mouse event.

Returns t for rescan and otherwise an element or subelement of INDEX-ALIST.

(fn INDEX-ALIST EVENT &optional TITLE)
(defalias 'imenu--mouse-menu #[770 "\300!\262\301\206
\302 \"\303@\304AGW\203\202 A@A\"\305\"\207" [imenu--split-submenus imenu--split-menu buffer-name imenu--create-keymap 1 popup-menu] 8 (#$ . 22088)])
#@628 Let the user select from a buffer index and return the chosen index.

If the user originally activated this function with the mouse, a mouse
menu is used.  Otherwise a completion buffer is used and the user is
prompted with PROMPT.

If you call this function with index alist ALIST, then it lets the user
select from ALIST.

With no index alist ALIST, it calls `imenu--make-index-alist' to
create the index alist.

If `imenu-use-popup-menu' is nil, then the completion buffer
is always used, no matter if the mouse was used or not.

The returned value is of the form (INDEX-NAME . INDEX-POSITION).

(fn &optional PROMPT ALIST)
(defalias 'imenu-choose-buffer-index #[512 "\305<\306\203$\307\232\204$\310!\211@)\311!\204#\211\203#\312!\210\210\211\306=\203e\2032\2024\313 \262\n\203K\n\306=\204D\203K\314\"\202P\315\"\262\211\232\203$\316 \203$\306\262\305\202$\207" [last-nonmenu-event position imenu-use-popup-menu imenu--rescan-item imenu--index-alist nil t (menu-bar) event-start framep select-window imenu--make-index-alist imenu--mouse-menu imenu--completion-buffer imenu--cleanup] 9 (#$ . 22550)])
#@168 Add an `imenu' entry to the menu bar for the current buffer.
NAME is a string used to name the menu bar item.
See the command `imenu' for more information.

(fn NAME)
(defalias 'imenu-add-to-menubar #[257 "\203	\204\n\204\306=\204@\307 \205\310\311\307 \312\"!?\205F\313 \314\307 \"\210\315\316\317\320\313\321!E#\210\322!\210\323\324\325\"\207\326\327\330
!\"\207" [imenu-prev-index-position-function imenu-extract-index-name-function imenu-generic-expression imenu-create-index-function imenu--last-menubar-index-alist mode-name imenu-default-create-index-function current-local-map keymapp lookup-key [menu-bar index] make-sparse-keymap set-keymap-parent nil define-key [menu-bar index] menu-item "Imenu" use-local-map add-hook menu-bar-update-hook imenu-update-menubar user-error "The mode `%s' does not support Imenu" format-mode-line] 9 (#$ . 23694) "sImenu menu item name: "])
#@149 Add an Imenu "Index" entry on the menu bar for the current buffer.

A trivial interface to `imenu-add-to-menubar' suitable for use in a hook.

(fn)
(defalias 'imenu-add-menubar-index #[0 "\300\301!\207" [imenu-add-to-menubar "Index"] 2 (#$ . 24602) nil])
(defvar imenu-buffer-menubar nil)
#@90 The value of (buffer-chars-modified-tick) as of the last call
to `imenu-update-menubar'.
(defvar imenu-menubar-modified-tick 0 (#$ . 24897))
(make-variable-buffer-local 'imenu-menubar-modified-tick)
(defalias 'imenu-update-menubar #[0 "\303 \205n\304\305\303 \306\"!\205n\307 U?\205n\307 \310\311!\211	\232?\205l\312\211\211\313!\262\314\315 \"\262\316@\317AGW\203D\202GA@A\320#\262\305\303 \321\"\262\304\211A@)!\203f\211\211A@)\262\211A\241\266\203\262\207" [imenu-menubar-modified-tick imenu--last-menubar-index-alist x current-local-map keymapp lookup-key [menu-bar index] buffer-chars-modified-tick imenu--make-index-alist t nil imenu--split-submenus imenu--split-menu buffer-name imenu--create-keymap 1 imenu--menubar-select [menu-bar index]] 9 "\n\n(fn)"])
#@82 Use Imenu to select the function or variable named in this menu ITEM.

(fn ITEM)
(defalias 'imenu--menubar-select #[257 "\211\232\203\304 \210\305\306\211\307 \210\310\207\311!\210\306\207" [imenu--rescan-item imenu-menubar-modified-tick imenu--index-alist imenu--last-menubar-index-alist imenu--cleanup -1 nil imenu-update-menubar t imenu] 4 (#$ . 25694)])
#@244 Move to the given position.

NAME is ignored.  POSITION is where to move.  REST is also ignored.
The ignored args just make this function have the same interface as a
function placed in a special index-item.

(fn NAME POSITION &optional REST)
(defalias 'imenu-default-goto-function #[770 "eW\204\fdV\203~\210b\207" [] 5 (#$ . 26066)])
#@180 Jump to a place in the buffer chosen using a buffer menu or mouse menu.
INDEX-ITEM specifies the position.  See `imenu-choose-buffer-index'
for more information.

(fn INDEX-ITEM)
(defalias 'imenu #[257 "\211;\203\f\302\303 \"\262\211\205I\304\305\306\"\210\211A<\211\203\"\3078\202#\2030\211A@)\2022A\205<\211AA)\310@$\266\311\312!\207" [imenu-default-goto-function x assoc imenu--make-index-alist push-mark nil t 2 apply run-hooks imenu-after-jump-hook] 11 (#$ . 26414) (byte-code "\300 C\207" [imenu-choose-buffer-index] 1)])
(provide 'imenu)

MMCT - 2023