%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/progmodes/
Upload File :
Create Path :
Current File : //usr/local/share/emacs/27.2/lisp/progmodes/which-func.elc

;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; 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 "???" (#$ . 408))
(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\306\316\317\320&\210\310\321\312\313\322DD\323\317\324%\210\310\325\312\313\326DD\327\317\330%\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 funcall function #[0 "\300\207" [t] 1] "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 #[0 "\300\207" [nil] 1] "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 #[0 "\300\207" [500000] 1] "Don't automatically compute the Imenu menu if buffer is this big or bigger.\nZero means compute the Imenu menu regardless of size." integer] 8)
#@44 Keymap to display on mode line which-func.
(defvar which-func-keymap (byte-code "\300 \301\302\303#\210\301\304\305#\210\301\306\307#\210\211\207" [make-sparse-keymap define-key [mode-line mouse-1] beginning-of-defun [mode-line mouse-2] #[0 "e\300=\203	\301 \207~\207" [1 narrow-to-defun] 2 nil nil] [mode-line mouse-3] end-of-defun] 5) (#$ . 1781))
(byte-code "\300\301\302\303#\210\304\305\306\307\310DD\311\312\313\314\315&\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." custom-declare-variable which-func-format funcall function #[0 "\301\302\303\304\305BBBB\306BB\207" [which-func-keymap "[" :propertize which-func-current local-map (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") ("]")] 6] "Format for displaying the function in the mode line." :version "24.2" :type sexp] 8)
#@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 #[257 "\300!@\207" [last] 3 "\n\n(fn X)"] (#$ . 3104))
#@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 (#$ . 3443))
(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 (#$ . 4219))
(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)
(defalias 'which-func-try-to-enable #[0 "?\206\304\303!?\205	\305=\206\n	\235\211\207" [which-function-mode which-func-modes major-mode which-func-mode local-variable-p t] 2])
#@98 File find hook for Which Function mode.
It creates the Imenu index for the buffer, if necessary.
(defalias 'which-func-ff-hook #[0 "\306 \210\30715\31010\205-	\n\235?\205-\203&\fW\204&\311U\205-\212
 )\211
00\2070\312\211\207\313\314\"\210\312\211\207" [which-func-mode major-mode which-func-non-auto-modes which-func-maxout buffer-saved-size imenu-create-index-function which-func-try-to-enable (error) (imenu-unavailable) 0 nil message "which-func-ff-hook error: %S" imenu--index-alist] 4 (#$ . 4715)])
(defalias 'which-func-update #[0 "\300\301 !\207" [which-func-update-1 selected-window] 2])
#@72 Update the Which Function mode display for window WINDOW.

(fn WINDOW)
(defalias 'which-func-update-1 #[257 "\302!r\303\304\305\306\307!\310\"\311$\216\312@\313\"\210\205@\31418\315 \211\316	\"\232?\2052\317	#\210\320 \2620\202@\321\322\323\"\262*\207" [which-func-mode which-func-table internal--before-with-selected-window make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 select-window norecord (error) which-function gethash puthash force-mode-line-update nil error "Error in which-func-update: %S"] 8 (#$ . 5333)])
(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)
(byte-code "\301\236\204\302\236\204\303\300\304\"\210\305\302\306\307\310DD\311\312\313\314\315\316\317\320\321&\207" [mode-line-misc-info which-func-mode which-function-mode add-to-list (which-function-mode (which-func-mode ("" which-func-format " "))) custom-declare-variable funcall function #[0 "\300\207" [nil] 1] "Non-nil if Which-Function mode is enabled.\nSee the `which-function-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `which-function-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :group which-func :type boolean] 12)
#@490 Toggle mode line display of current function (Which Function mode).

If called interactively, enable Which-Function mode if ARG is
positive, and disable it if ARG is zero or negative.  If called from
Lisp, also enable the mode if ARG is omitted or nil, and toggle it if
ARG is `toggle'; disable the mode otherwise.

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.

(fn &optional ARG)
(defalias 'which-function-mode #[256 "\303 \304\301\305=\203\306\301!?\202\307!\310V\"\210\311!\203\"\312!\210\313	\203F\314\n\315\316#\317 \211\203E\211@r\211q\210\320 \210)A\266\202\2020\210\321\322\306\301!\203R\323\202S\324\"\210\325\326!\203}\327\301!\210\303 \203k\211\303 \232\203}\330\331\332\306\301!\203x\333\202y\334#\266\210\335 \210\306\301!\207" [which-func-update-timer which-function-mode idle-update-delay current-message set-default toggle default-value prefix-numeric-value 0 timerp cancel-timer nil run-with-idle-timer t which-func-update buffer-list which-func-try-to-enable 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%s" "en" "dis" force-mode-line-update] 7 (#$ . 6795) (byte-code "\206\301C\207" [current-prefix-arg toggle] 1)])
(defvar which-function-mode-hook nil)
(byte-code "\301\302N\204\f\303\301\302\304#\210\305\306\307\310\300!\205\307\211%\207" [which-function-mode-map which-function-mode-hook variable-documentation put "Hook run after entering or leaving `which-function-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" 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 (#$ . 8650))
#@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 (#$ . 8782))
#@166 Return current function name based on point.
Uses `which-func-functions', `add-log-current-defun'.
or `imenu--index-alist'
If no function name is found, return nil.
(defalias 'which-function #[0 "\305\306!\211\204\307 \262\211\204>\310\300!\203>\203 \311 	U\204>\n\204>\3121/\313\314!0\2023\210\2024\210\204>\315\302!\210\314\211\204\336\310\300!\203\336\203\336d\316\211\211\211\211\204\\\203\334\204p@\262\211A\262A\262\202S\242\262\243\262:\203S\317!\203\230B\262@B\262A\262\202S\320A\211\262!\204\261\321!\203S\322!\211\262\203S`Z\211\262\323Y\203SW\203S\262\204\317@\202\327\324@B!!\262\202S\266\211\205\355\f\203\354\f!\202\355\211\207" [imenu--index-alist imenu-menubar-modified-tick which-function-imenu-failed which-func-imenu-joiner-function which-func-cleanup-function run-hook-with-args-until-success which-func-functions add-log-current-defun boundp buffer-chars-modified-tick (error) imenu--make-index-alist t make-local-variable nil imenu--subalist-p number-or-marker-p overlayp overlay-start 0 reverse] 12 (#$ . 9021)])
#@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 #[0 "\304\305!\205!\205!	\203\306	!\210\n\203\306\n!\210\205!\306!\207" [which-function-mode ediff-window-A ediff-window-B ediff-window-C derived-mode-p ediff-mode which-func-update-1] 2 (#$ . 10149)])
(byte-code "\300\301\302\"\210\303\304!\207" [add-hook ediff-select-hook which-func-update-ediff-windows provide which-func] 3)

Zerion Mini Shell 1.0