| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/ |
Upload File : |
;ELC ;;; Compiled ;;; in Emacs version 28.2 ;;; with all optimizations. (require 'cl-lib) #@76 Character position of the end of event if that exists, or nil. (fn EVENT) (defalias 'widget-event-point #[257 "\300\301!!\207" [posn-point event-end] 4 (#$ . 102)]) #@70 Non-nil if EVENT is a mouse-button-release event object. (fn EVENT) (defalias 'widget-button-release-event-p #[257 "\300!\205 \301!\302>\205 \303\304!>\206 \305\304!>\207" [eventp event-basic-type (mouse-1 mouse-2 mouse-3) click event-modifiers drag] 4 (#$ . 275)]) (byte-code "\300\301\302\303\304\305\304\306\307\310\311\312&\210\300\313\302\314\311\301%\210\300\315\302\316\311\301\311\317&\207" [custom-declare-group widgets nil "Customization support for the Widget Library." :link (custom-manual "(widget)Top") (emacs-library-link :tag "Lisp File" "widget.el") :prefix "widget-" :group extensions widget-documentation "Options controlling the display of documentation strings." widget-faces "Faces used by the widget library." faces] 12) #@120 Face used for documentation strings in widgets. This exists as a variable so it can be set locally in certain buffers. (defvar widget-documentation-face 'widget-documentation (#$ . 1036)) (custom-declare-face 'widget-documentation '((((class color) (background dark)) (:foreground "lime green")) (((class color) (background light)) (:foreground "dark green")) (t nil)) "Face used for documentation text." :group 'widget-documentation :group 'widget-faces) #@106 Face used for buttons in widgets. This exists as a variable so it can be set locally in certain buffers. (defvar widget-button-face 'widget-button (#$ . 1499)) (byte-code "\300\301\302\303\304\305%\210\306\307\310\311\312DD\313\314\315\304\305&\210\300\316\317\320\304\305%\210\300\321\322\323\304\305%\207" [custom-declare-face widget-button ((t (:weight bold))) "Face used for widget buttons." :group widget-faces custom-declare-variable widget-mouse-face funcall function #[0 "\300\207" [highlight] 1 ""] "Face used for widget buttons when the mouse is above them." :type face widget-field ((((type tty)) :background "yellow3" :foreground "black" :extend t) (((class grayscale color) (background light)) :background "gray85" :extend t) (((class grayscale color) (background dark)) :background "dim gray" :extend t) (t :slant italic :extend t)) "Face used for editable fields." widget-single-line-field ((((type tty)) :background "green3" :foreground "black") (((class grayscale color) (background light)) :background "gray85") (((class grayscale color) (background dark)) :background "dim gray") (t :slant italic)) "Face used for editable fields spanning only a single line."] 8) #@161 Return string representation of OBJECT, any Lisp object. No quoting characters are used; no delimiters are printed around the contents of strings. (fn OBJECT) (defalias 'widget-princ-to-string #[257 "\301\302\303\"\304\216\305!\210)rq\210\306 +\207" [standard-output generate-new-buffer " *string-output*" t #[0 "\301!\207" [standard-output kill-buffer] 2] princ buffer-string] 4 (#$ . 2690)]) #@29 Clear all undo information. (defalias 'widget-clear-undo #[0 "\300p!\210\301 \207" [buffer-disable-undo buffer-enable-undo] 2 (#$ . 3097)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\311&\210\300\315\302\303\316DD\317\306\307\310\320&\207" [custom-declare-variable widget-menu-max-size funcall function #[0 "\300\207" [40] 1 #1=""] "Largest number of items allowed in a popup menu.\nLarger menus are read through the minibuffer." :group widgets :type integer widget-menu-max-shortcuts #[0 "\300\207" [40] 1 #1#] "Largest number of items for which it works to choose one with a character.\nFor a larger number of items, the minibuffer is used." widget-menu-minibuffer-flag #[0 "\300\207" [nil] 1 #1#] "Non-nil means use the minibuffer; to ask for a choice from the keyboard.\nIf nil, read a single character." boolean] 8) #@1017 Convert the EXTENDED menu into a menu composed of simple menu items. Each item in the simplified menu is of the form (ITEM-STRING . REAL-BINDING), where both elements are taken from the EXTENDED MENU. ITEM-STRING is the correspondent ITEM-NAME in the menu-item entry: (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST), and REAL-BINDING is the symbol in the key vector, as in `define-key'. (See `(elisp)Defining Menus' for more information.) Only visible, enabled and meaningful menu items make their way into the returned simplified menu. That is: For the menu item to be visible, it has to either lack a :visible form in its item-property-list, or the :visible form has to evaluate to a non-nil value. For the menu item to be enabled, it has to either lack a :enabled form in its item-property-list, or the :enable form has to evaluate to a non-nil value. Additionally, if the menu item is a radio button, then its selected form has to evaluate to nil for the menu item to be meaningful. (fn EXTENDED) (defalias 'widget--simplify-menu #[257 "\300C\301\302\303\"\"\210\304\242!\207" [nil map-keymap make-closure #[514 "\211@\301=\205~ \3028\205~ \303\233\304\211\305\211\211\203Y A\203Y \306@\211\262!\203Y A@\262\307\267\202@ \211\262\202Q \211\262\202Q \310=\203Q \211@\311=\203Q \211A\262AA\262\202 \312!\205| \312!\205| \203p \312!?\205| \300A@ B\300\242B\240\266\206\207" [V0 menu-item 2 3 t nil keywordp #s(hash-table size 4 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (:visible 52 :included 52 :enable 58 :active 58)) :button :radio eval] 11 "\n\n(fn EV DEF)"] reverse] 6 (#$ . 3984)]) #@1219 Choose an item from a list. First argument TITLE is the name of the list. Second argument ITEMS should be a menu, either with simple item definitions, or with extended item definitions. When ITEMS has simple item definitions, it is a list whose members are either (NAME . VALUE), to indicate selectable items, or just strings to indicate unselectable items. When ITEMS is a menu that uses an extended format, then ITEMS should be a keymap, and each binding should look like this: (menu-item ITEM-NAME REAL-BINDING . ITEM-PROPERTY-LIST) or like this: (menu-item ITEM-NAME) to indicate a non-selectable item. REAL-BINDING should be a symbol, and should not be a keymap, because submenus are not supported. Optional third argument EVENT is an input event. If EVENT is a mouse event, and the number of elements in items is less than `widget-menu-max-size', a popup menu will be used, otherwise the minibuffer. The user is asked to choose between each NAME from ITEMS. If ITEMS has simple item definitions, then this function returns the VALUE of the chosen element. If ITEMS is a keymap, then the return value is the symbol in the key vector, as in the argument of `define-key'. (fn TITLE ITEMS &optional EVENT) (defalias 'widget-choose #[770 "C\211\242GW\203K \203K \303 \203K \304\242!\203A \305\242!\306\307$\216\310\242\"\240\210\242\211AB\241\266\311\242\"@)\207\311\312\242BD\"\207 \204W \211\242G\nV\203\221 \304\242!\203e \211\313\242!\240\210\211\314\315\242\"\240\210\316\317P\242\320\321$\211;\205\220 \322\242\"\211;\203\210 \211\262\323\242\"A\262\207\304\242!\203\237 \211\313\242!\240\210\324\320\211\211\211r\325\326!q\210\327 \210\330c\210\242\203\351 \242\211\242A\240\210\242\262:\203\342 \331@!A\332\333#c\210BB\262\321\262\266T\262\202\260 \334c\210eb\210\320y\210)\204\373 \335\336!\210\337 \306\340\"\216\341\342\343\326!\344\"!r\306\345\"\216\346@\347\"\210\350\332\351 \"\352\353 \"\"\262*\210)\210\323\"A\207" [widget-menu-max-size widget-menu-minibuffer-flag widget-menu-max-shortcuts display-popup-menus-p keymapp keymap-prompt make-closure #[0 "\301\303\300\301\242\"\240\210\302\205 \301\242\211\302AB\241\262\207" [V0 V1 V2 delete] 4] delete x-popup-menu "" widget--simplify-menu cl-remove-if stringp completing-read ": " nil t try-completion assoc 48 get-buffer-create " widget-choose" erase-buffer "Available choices:\n\n" substitute-command-keys format "%c = %s\n" "\nC-g = Quit" error "None of the choices is currently meaningful" current-window-configuration #[0 "\301\300!\207" [V0 set-window-configuration] 2] internal--before-with-selected-window display-buffer get-buffer (display-buffer-in-direction (direction . bottom) (window-height . fit-window-to-buffer)) #[0 "\301\300!\207" [V0 internal--after-with-selected-window] 2] select-window norecord read-char-choice "%s: " mapcar car] 16 (#$ . 5645)]) #@148 Non-nil means add extra space at the end of editable text fields. If you don't add the space, it will become impossible to edit a zero size field. (defconst widget-field-add-space nil (#$ . 8569)) #@184 Non-nil means use `before-change-functions' to track editable fields. This enables the use of undo. Using before hooks also means that the :notify function can't know the new value. (defvar widget-field-use-before-change t (#$ . 8773)) #@78 Specify editable button for WIDGET between FROM and TO. (fn WIDGET FROM TO) (defalias 'widget-specify-field #[771 "\212\211b\210\301\302\"\204 \303u\210\202 \203 \304\305!\210`\262)\301\306\"\301\307\"\206) \310\301\311\"\301\312\"?\206<