%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/wid-edit.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (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 (#$ . 426)]) #@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 (#$ . 599)]) (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 (#$ . 1360)) (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 (#$ . 1823)) (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\216\304!\210)rq\210\305 +\207" [standard-output generate-new-buffer " *string-output*" #[0 "\301!\207" [standard-output kill-buffer] 2] princ buffer-string] 3 (#$ . 3011)]) #@29 Clear all undo information. (defalias 'widget-clear-undo #[0 "\300p!\210\301 \207" [buffer-disable-undo buffer-enable-undo] 2 (#$ . 3411)]) (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] "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] "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] "Control how to ask for a choice from the keyboard.\nNon-nil means use the minibuffer;\nnil means read a single character." boolean] 8) #@589 Choose an item from a list. First argument TITLE is the name of the list. Second argument ITEMS is a list whose members are either (NAME . VALUE), to indicate selectable items, or just strings to indicate unselectable items. Optional third argument EVENT is an input event. The user is asked to choose between each NAME from the items alist, and the VALUE of the chosen element will be returned. 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. (fn TITLE ITEMS &optional EVENT) (defalias 'widget-choose #[770 "GW\203 \211\203 \305 \203 \306\307BD\"\207 \204$ G\nV\203K \310\311\"\262\312\313P\314\315$\211;\205J \316\"\211;\203C \211\262\317\"A\262\207\320\321 \314\211\211r\322\323!q\210\324 \210\325c\210\203\224 \211A\262\242\262:\203\215 \326@!A\327\330#c\210\331\332 !#\210\315\262\266T\262\202] \333c\210eb\210\314y\210)\204\246 \334\335!\210\331\336\337#\210\331\340\341#\210\342 \343\344\345\346\332!\347\"\350$\216\351\323!\352\353\"\210\315\354\204\355\356\327\357\"!\"\262\204\345 \360\361!\210\362\267\202\363!\344V\203\376 \364\365\f!!\210\202\337 \210\354\211\262)\202\366\211\262\202\314\203\314 \314\262\202\314 )\266)\210\207" [widget-menu-max-size widget-menu-minibuffer-flag widget-menu-max-shortcuts cursor-in-echo-area minibuffer-scroll-window display-popup-menus-p x-popup-menu "" cl-remove-if stringp completing-read ": " nil t try-completion assoc 48 make-sparse-keymap get-buffer-create " widget-choose" erase-buffer "Available choices:\n\n" substitute-command-keys format "%c = %s\n" define-key vector "\nC-g = Quit" error "None of the choices is currently meaningful" [134217750] scroll-other-window [134217773] negative-argument current-window-configuration make-byte-code 0 "\301\300!\207" vconcat [set-window-configuration] 2 get-buffer display-buffer (display-buffer-in-direction (direction . bottom) (window-height . fit-window-to-buffer)) 1 lookup-key read-key-sequence "%s: " user-error "Canceled" #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (scroll-other-window 235 negative-argument 265)) get-buffer-window scroll-other-window-down window-height -1] 18 (#$ . 4298)]) #@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 (#$ . 6630)) #@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 (#$ . 6834)) #@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<