MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.117.158.174
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/progmodes/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/progmodes/which-func.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:32 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/progmodes/which-func.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.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


#@70 String to display in the mode line when current function is unknown.
(defvar which-func-unknown "???" (#$ . 563))
(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\304\301\306\314\315\316&	\210\310\317\302\320\304\301\315\321&\210\310\322\323\324\304\301\315\325&\207" [custom-declare-group which-func nil "Display the current function name in the mode line." :group tools :version "20.3" custom-declare-variable which-func-modes t "List of major modes for which Which Function mode should be used.\nFor other modes it is disabled.  If this is equal to t,\nthen Which Function mode is enabled in any major mode that supports it." "24.3" :type (choice (const :tag "All modes" t) (repeat (symbol :tag "Major mode"))) which-func-non-auto-modes "List of major modes where Which Function mode is inactive till Imenu is used.\nThis means that Which Function mode won't really do anything\nuntil you use Imenu, in these modes.  Note that files\nlarger than `which-func-maxout' behave in this way too;\nWhich Function mode doesn't do anything until you use Imenu." (repeat (symbol :tag "Major mode")) which-func-maxout 500000 "Don't automatically compute the Imenu menu if buffer is this big or bigger.\nZero means compute the Imenu menu regardless of size." integer] 10)
#@44 Keymap to display on mode line which-func.
(defvar which-func-keymap (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210)\207" [map make-sparse-keymap define-key [mode-line mouse-1] beginning-of-defun [mode-line mouse-2] #[nil "e\300=\203	\301 \207~\207" [1 narrow-to-defun] 2 nil nil] [mode-line mouse-3] end-of-defun] 4) (#$ . 1852))
(byte-code "\300\301\302\303\304\301%\210\305\306\307\310\311\312\304\301\313\314&	\207" [custom-declare-face which-func ((((class color) (min-colors 88) (background light)) :inherit font-lock-function-name-face) (((class grayscale mono) (background dark)) :inherit font-lock-function-name-face) (((class color) (background light)) :inherit font-lock-function-name-face) (((class color) (min-colors 88) (background dark)) :foreground "Blue1") (((background dark)) :foreground "Blue1") (t :foreground "LightSkyBlue")) "Face used to highlight mode line function names." :group custom-declare-variable which-func-format `("[" (:propertize which-func-current local-map ,which-func-keymap face which-func mouse-face mode-line-highlight help-echo "mouse-1: go to beginning\nmouse-2: toggle rest visibility\nmouse-3: go to end") "]") "Format for displaying the function in the mode line." :version "24.2" :type sexp] 10)
#@236 Function to join together multiple levels of imenu nomenclature.
Called with a single argument, a list of strings giving the names
of the menus we had to traverse to get to the item.  Returns a
single string, the new name of the item.
(defvar which-func-imenu-joiner-function #[(x) "\301!@\207" [x last] 2] (#$ . 3132))
#@487 Function to transform a string before displaying it in the mode line.
The function is called with one argument, the string to display.
Its return value is displayed in the mode line.
If nil, no function is called.  The default value is nil.

This feature can be useful if Imenu is set up to make more
detailed entries (e.g., containing the argument list of a function),
and you want to simplify them for the mode line
(e.g., removing the parameter list to just have the function name.)
(defvar which-func-cleanup-function nil (#$ . 3460))
(require 'imenu)
(defvar which-func-table (make-hash-table :test 'eq :weakness 'key))
(defconst which-func-current '(:eval (replace-regexp-in-string "%" "%%" (or (gethash (selected-window) which-func-table) which-func-unknown))))
#@125 Non-nil means display current function name in mode line.
This makes a difference only if `which-function-mode' is non-nil.
(defvar which-func-mode nil (#$ . 4236))
(byte-code "\300\301!\210\302\303\304\305#\207" [make-variable-buffer-local which-func-mode add-hook find-file-hook which-func-ff-hook t] 4)
#@98 File find hook for Which Function mode.
It creates the Imenu index for the buffer, if necessary.
(defalias 'which-func-ff-hook #[nil "\205
	\304=\206
\n	\235\305\306\307\217\207" [which-function-mode which-func-modes major-mode which-func-mode t err (byte-code "\205\"	\n\235?\205\"\203\fW\204\306U\205\"\212
 )\211\207" [which-func-mode major-mode which-func-non-auto-modes which-func-maxout buffer-saved-size imenu-create-index-function 0 imenu--index-alist] 2) ((error (byte-code "\302\232\204\303\304\"\210\305\211\207" [err which-func-mode (user-error "This buffer cannot use `imenu-default-create-index-function'") message "which-func-ff-hook error: %S" nil] 3)))] 3 (#$ . 4548)])
(defalias 'which-func-update #[nil "\300\301 !\207" [which-func-update-1 selected-window] 2])
#@59 Update the Which Function mode display for window WINDOW.
(defalias 'which-func-update-1 #[(window) "\303!r\304\216\305	@\306\"\210\n\205\307\310\311\217+\207" [window save-selected-window--state which-func-mode internal--before-with-selected-window ((internal--after-with-selected-window save-selected-window--state)) select-window norecord info (byte-code "\303 \211\304	\n\"\232?\205\305	\n#\210\306 )\207" [current window which-func-table which-function gethash puthash force-mode-line-update] 5) ((error (byte-code "\302\303\304	\"\207" [which-func-mode info nil error "Error in which-func-update: %S"] 3)))] 3 (#$ . 5357)])
(byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias which-func-mode which-function-mode nil make-obsolete "24.1"] 4)
(defvar which-func-update-timer nil)
#@278 Non-nil if Which-Function mode is enabled.
See the command `which-function-mode' for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node `Easy Customization')
or call the function `which-function-mode'.
(custom-declare-variable 'which-function-mode nil '(#$ . 6171) :set 'custom-set-minor-mode :initialize 'custom-initialize-default :group 'which-func :type 'boolean)
#@388 Toggle mode line display of current function (Which Function mode).
With a prefix argument ARG, enable Which Function mode if ARG is
positive, and disable it otherwise.  If called from Lisp, enable
the mode if ARG is omitted or nil.

Which Function mode is a global minor mode.  When enabled, the
current function name is continuously displayed in the mode line,
in certain major modes.
(defalias 'which-function-mode #[(&optional arg) "\306 	\307=\203\n?\202\310	!\311V\312!\203\313!\210\314\n\203X\315\f\316\317#\320 \314\211\203T@r
q\210\316=\206H\235 )A\211\2044*\202x\320 \314\211\203w@r
q\210\314 )A\211\204b*\321\322\n\203\202\323\202\203\324\"\210\325\326!\203\250\327\302!\210\306 \203\233\306 \232\203\250\330\331\n\203\245\332\202\246\333\"\210)\334 \210\n\207" [#1=#:last-message arg which-function-mode which-func-update-timer idle-update-delay buf current-message toggle prefix-numeric-value 0 timerp cancel-timer nil run-with-idle-timer t which-func-update buffer-list run-hooks which-function-mode-hook which-function-mode-on-hook which-function-mode-off-hook called-interactively-p any customize-mark-as-set message "Which-Function mode %sabled" "en" "dis" force-mode-line-update --dolist-tail-- which-func-modes major-mode which-func-mode] 5 (#$ . 6620) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n\303\211%\207" [which-function-mode-map add-minor-mode which-function-mode nil boundp] 6)
#@73 Locally t in a buffer if `imenu--make-index-alist' found nothing there.
(defvar which-function-imenu-failed nil (#$ . 8125))
#@187 List of functions for `which-function' to call with no arguments.
It calls them sequentially, and if any returns non-nil,
`which-function' uses that name and stops looking for the name.
(defvar which-func-functions nil (#$ . 8257))
#@166 Return current function name based on point.
Uses `which-func-functions', `imenu--index-alist'
or `add-log-current-defun'.
If no function name is found, return nil.
(defalias 'which-function #[nil "\306\307!\211\204$\310\301!\203$	\204$\n\204$\311\312!\210	\204$\313\302!\210\312\204\306\310\301!\203\306	\203\306	d\314\211\211\211\211\204M\f\203\304\204_\f@A\fA\202D\242\243:\203D\315!\203\212\fB@BA\211\202F\316A\211!\203D`
Z\211\317Y\203DW\203D\204\266@\202\300\320@B!!\202D.\204\315\321 \205\336\203\335!\202\336)\207" [name imenu--index-alist which-function-imenu-failed namestack imstack mark run-hook-with-args-until-success which-func-functions boundp imenu--make-index-alist t make-local-variable nil imenu--subalist-p number-or-marker-p 0 reverse add-log-current-defun pair offset minoffset alist which-func-imenu-joiner-function which-func-cleanup-function] 8 (#$ . 8496)])
#@117 Update Which-Function mode display for Ediff windows.
This function is meant to be called from `ediff-select-hook'.
(defalias 'which-func-update-ediff-windows #[nil "\304=\205	\203\305	!\210\n\203\305\n!\210\205\305!\207" [major-mode ediff-window-A ediff-window-B ediff-window-C ediff-mode which-func-update-1] 2 (#$ . 9492)])
(byte-code "\300\301\302\"\210\303\304!\207" [add-hook ediff-select-hook which-func-update-ediff-windows provide which-func] 3)

MMCT - 2023