Server IP : 111.118.215.189 / Your IP : 18.217.207.112 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/cedet/srecode/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:32 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/cedet/srecode/insert.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!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\306\307\310\311\312\313\314\315&\207" [require srecode/compile srecode/find srecode/dictionary srecode/args srecode/filters custom-declare-variable srecode-insert-ask-variable-method 'ask "Determine how to ask for a dictionary value when inserting a template.\nOnly the ASK style inserter will query the user for a value.\nDictionary value references that ask begin with the ? character.\nPossible values are:\n 'ask - Prompt in the minibuffer as the value is inserted.\n 'field - Use the dictionary macro name as the inserted value,\n and place a field there. Matched fields change together.\n\nNOTE: The field feature does not yet work with XEmacs." :group srecode :type (choice (const :tag "Ask" ask) (const :tag "Field" field))] 8) #@70 Non-nil means that we are actively inserting a template with fields. (defvar srecode-insert-with-fields-in-progress nil (#$ . 1393)) #@75 The context that was at point at the beginning of the template insertion. (defvar srecode-insertion-start-context nil (#$ . 1532)) #@58 Insert the previously inserted template (by name) again. (defalias 'srecode-insert-again #[nil "@\211\203 \302 !\202 \303\302!)\207" [srecode-read-template-name-history prev srecode-insert call-interactively] 3 (#$ . 1669) nil]) #@123 Insert the template TEMPLATE-NAME into the current buffer at point. DICT-ENTRIES are additional dictionary values to add. (defalias 'srecode-insert #[(template-name &rest dict-entries) "\306 \204\n \307\310\"\210\311 \312\306 \"\313 \204 \307\314 \"\210 \2034 \315\f @ A@#\210 AA\211\204# \316\f\"+\207" [major-mode template-name srecode-insertion-start-context temp newdict dict-entries srecode-table error "No template table found for mode %s" srecode-create-dictionary srecode-template-get-table srecode-calculate-context "No Template named %s" srecode-dictionary-set-value srecode-insert-fcn] 5 (#$ . 1909) (list (srecode-read-template-name "Template Name: "))]) #@203 Insert TEMPLATE using DICTIONARY into STREAM. Optional SKIPRESOLVER means to avoid refreshing the tag list, or resolving any template arguments. It is assumed the caller has set everything up already. (defalias 'srecode-insert-fcn #[(template dictionary &optional stream skipresolver) "\206 p\306\307\304\"\203 \310\f\311\304\"\"\210 \204# \312 \210\313\f\"\210\314\n!\203D `\315\211\316\f\"\210*\317\320`\321$\210)\202I \322\f\"\210\314\n!\203c \307\323\324\"\203c \nq\210\325 \311\324\"b\210\326\323\324#\210 \206o `*\207" [stream end-mark standard-output template dictionary skipresolver nil slot-boundp srecode-dictionary-merge eieio-oref semantic-fetch-tags srecode-resolve-arguments bufferp t srecode--insert-into-buffer run-hook-with-args after-change-functions 0 srecode-insert-method srecode-template-inserter-point point point-marker eieio-oset-default start inhibit-modification-hooks inhibit-point-motion-hooks eieio-unbound] 5 (#$ . 2592)]) #@495 Insert a TEMPLATE with DICTIONARY into a buffer. Do not call this function yourself. Instead use: `srecode-insert' - Inserts by name. `srecode-insert-fcn' - Insert with objects. This function handles the case from one of the above functions when the template is inserted into a buffer. It looks at `srecode-insert-ask-variable-method' to decide if unbound dictionary entries ask questions or insert editable fields. Buffer based features related to change hooks is handled one level up. (defalias 'srecode--insert-into-buffer #[(template dictionary) "\306=\203\n \307\310!\210\311`\306=\205 \312\313\f \"\210)?\2059 \306=\2059 \n\2059 \314\315\316 \317`%\320!)*\207" [srecode-insert-ask-variable-method start srecode-field-archive srecode-insert-with-fields-in-progress template dictionary field require srecode/fields nil t srecode-insert-method srecode-template-inserted-region "TEMPLATE" :start :end srecode-overlaid-activate reg] 6 (#$ . 3577)]) #@134 Display an error report based on DICTIONARY, FORMAT and ARGS. This is intended to diagnose problems with failed template insertions. (defalias 'srecode-insert-show-error-report #[(dictionary format &rest args) "r\304\305!q\210\306 \210\307\310\311\312#\307\313\311\314#\315\261\210\316\317\320\321\"!\322\"\210\307\323\311\324#\325\261\210\326 \327\322#\210\307\330\311\331#\325\261\210\332\302\n#c\210\333p!)\207" [srecode-template dictionary format args data-debug-new-buffer "*SRECODE INSERTION ERROR*" erase-buffer propertize "Template Stack" face (:weight bold) " (most recent at bottom)" (:slant italic) ":\n" data-debug-insert-stuff-list reverse eieio-oref active "> " "Dictionary" (:weight bold) "\n" data-debug-insert-thing "" "Error" (:weight bold) apply pop-to-buffer] 5 (#$ . 4553)]) (defalias 'srecode-insert-report-error #[(dictionary format &rest args) "\303 \n#\210\304\305 \n#\207" [dictionary format args srecode-insert-show-error-report apply error] 4]) #@103 Resolve all the arguments needed by the template TEMP. Apply anything learned to the dictionary DICT. (defalias 'srecode-resolve-arguments #[(temp dict) "\302\303\304\" #\207" [temp dict srecode-resolve-argument-list eieio-oref args] 4 (#$ . 5539)]) #@200 Resolve arguments in the argument list ARGS. ARGS is a list of symbols, such as :blank, or :file. Apply values to DICT. Optional argument TEMP is the template that is getting its arguments resolved. (defalias 'srecode-resolve-argument-list #[(args dict &optional temp) "\304 \2051 \305\306\307 @!P!\211\204 \310\311 @\"\210\n\203% \304\312\313\217\210\202) !\210 A\211\204 \304)\207" [fcn args temp dict nil intern-soft "srecode-semantic-handle-" symbol-name error "Error resolving template argument %S" (funcall fcn dict temp) ((wrong-number-of-arguments (funcall fcn dict)))] 5 (#$ . 5798)]) (byte-code "\300\301\302\301\303\"\"\210\304\301\305\306\307$\210\300\310\302\310\311\"\"\210\304\310\312\306\313$\210\300\314\302\314\315\"\"\210\304\314\312\306\316$\210\300\317\302\317\320\"\"\210\304\317\305\306\321$\207" [eieio--defalias srecode-push eieio--defgeneric-init-form #1="Push the srecoder template ST onto the active stack." eieio--defmethod nil srecode-template #[(st) "\301\302\303\302\"B#\207" [st eieio-oset active eieio-oref] 7 #1#] srecode-pop #2="Pop the srecoder template ST onto the active stack.\nST can be a class, or an object." :STATIC #[(st) "\301\302\303\302\"A#\207" [st eieio-oset active eieio-oref] 6 #2#] srecode-peek #3="Fetch the topmost active template record. ST can be a class." #[(st) "\301\302\"@\207" [st eieio-oref active] 3 #3#] srecode-insert-method #4="Insert the srecoder template ST." #[(st dictionary) "\303\301\"\203 \304 \305\301\"\"\210\306\216\305\307\"\310!\210\311\n \"*\207" [st dictionary c slot-boundp srecode-dictionary-merge eieio-oref ((srecode-pop st)) code srecode-push srecode-insert-code-stream] 5 #4#]] 5) #@95 Insert the CODE from a template into `standard-output'. Use DICTIONARY to resolve any macros. (defalias 'srecode-insert-code-stream #[(code dictionary) "\205 @;\203 \302@!\210\202 \303@ \"\210A\211\204 \304\207" [code dictionary princ srecode-insert-method nil] 4 (#$ . 7492)]) (byte-code "\300\301\302\303\304$\210\305\306\307\306\310\"\"\210\311\306\312\301\313$\210\305\314\307\314\315\"\"\210\311\314\312\301\316$\210\300\317\320\321\322$\210\305\306\307\306\323\"\"\210\311\306\312\317\324$\210\300\325\326\327\330$\210\305\331\307\331\332\"\"\210\311\331\333\325\334$\210\305\306\307\306\335\"\"\210\311\306\312\325\336$\210\300\337\340\341\342$\207" [eieio-defclass srecode-template-inserter-newline (srecode-template-inserter) ((key :initform "\n" :allocation :class :documentation "The character code used to identify inserters of this style.") (hard :initform nil :initarg :hard :documentation "Is this a hard newline (always inserted) or optional?\nOptional newlines don't insert themselves if they are on a blank line\nby themselves.")) ("Insert a newline, and possibly do indenting.\nSpecify the :indent argument to enable automatic indentation when newlines\noccur in your template.") eieio--defalias srecode-insert-method eieio--defgeneric-init-form #1="Insert the STI inserter." eieio--defmethod nil #[(sti dictionary) "\306\307\"\310 !\311\312 \f\203. \313\314\"\204. \315 \210\214`\n}\210\316\317!\203* \320)\nb\210 \311=\203>