Server IP : 111.118.215.189 / Your IP : 3.147.48.161 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/emacs-lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:03 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp/generic.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 "\302\303\304\305#\210\306\305\211\203, @\303N\203% \304N\204% \307\304\303N#\210 A\211\204 *\310\303\304\311#\207" [prop --dolist-tail-- defvaralias generic-font-lock-defaults generic-font-lock-keywords nil (saved-value saved-variable-comment) put make-obsolete-variable "22.1"] 6) #@54 Keywords for `font-lock-defaults' in a generic mode. (defvar generic-font-lock-keywords nil (#$ . 865)) (make-variable-buffer-local 'generic-font-lock-keywords) #@131 A list of mode names for `generic-mode'. Do not add entries to this list directly; use `define-generic-mode' instead (which see). (defvar generic-mode-list nil (#$ . 1033)) #@1418 Create a new generic mode MODE. MODE is the name of the command for the generic mode; don't quote it. The optional DOCSTRING is the documentation for the mode command. If you do not supply it, `define-generic-mode' uses a default documentation string instead. COMMENT-LIST is a list in which each element is either a character, a string of one or two characters, or a cons cell. A character or a string is set up in the mode's syntax table as a "comment starter". If the entry is a cons cell, the `car' is set up as a "comment starter" and the `cdr' as a "comment ender". (Use nil for the latter if you want comments to end at the end of the line.) Note that the syntax table has limitations about what comment starters and enders are actually possible. KEYWORD-LIST is a list of keywords to highlight with `font-lock-keyword-face'. Each keyword should be a string. FONT-LOCK-LIST is a list of additional expressions to highlight. Each element of this list should have the same form as an element of `font-lock-keywords'. AUTO-MODE-LIST is a list of regular expressions to add to `auto-mode-alist'. These regular expressions are added when Emacs runs the macro expansion. FUNCTION-LIST is a list of functions to call to do some additional setup. The mode command calls these functions just before it runs the mode hook `MODE-hook'. See the file generic-x.el for some examples of `define-generic-mode'. (defalias 'define-generic-mode '(macro . #[(mode comment-list keyword-list font-lock-list auto-mode-list function-list &optional docstring) "\242\306=\203 \307!\310!\311\312\313\314 #!\315\316\317 E\320\321D\316\322\323\321\306DEEE\324\325\f\2069 \n\326\327\330 \331\260\332\333\306D \257\257F*\207" [mode name pretty-name auto-mode-list docstring comment-list quote eval symbol-name capitalize replace-regexp-in-string "-mode\\'" "" progn add-to-list 'generic-mode-list dolist re 'auto-mode-alist cons defun nil " mode.\n" "This a generic mode defined with `define-generic-mode'.\n" "It runs `" "-hook' as the last thing it does." (interactive) generic-mode-internal keyword-list font-lock-list function-list] 14 (#$ . 1214)])) (byte-code "\300\301\302\303#\210\300\301\304\305#\210\300\301\306\307#\207" [put define-generic-mode edebug-form-spec (sexp def-form def-form def-form form def-form [&optional stringp] &rest [keywordp form]) lisp-indent-function 1 doc-string-elt 7] 4) #@32 Go into the generic mode MODE. (defalias 'generic-mode-internal #[(mode comment-list keyword-list font-lock-list function-list) "\306!\307\310\311\312 #!\313 \314P!\315 \210\n\316!\210\2034 \317\320\321\"\322QB\323\324\325\"\210\326!+\207" [mode name pretty-name mode-hook major-mode mode-name symbol-name capitalize replace-regexp-in-string "-mode\\'" "" intern "-hook" kill-all-local-variables generic-mode-set-comments "\\_<" regexp-opt t "\\_>" (generic-font-lock-keywords) mapc funcall run-mode-hooks comment-list font-lock-list generic-font-lock-keywords keyword-list font-lock-defaults function-list] 5 (#$ . 3639)]) #@338 Enter generic mode MODE. Generic modes provide basic comment and font-lock functionality for "generic" files. (Files which are too small to warrant their own mode, but have comment characters, keywords, and the like.) To define a generic-mode, use the function `define-generic-mode'. Some generic modes are defined in `generic-x.el'. (defalias 'generic-mode #[(mode) "\301! \207" [mode intern] 2 (#$ . 4296) (list (completing-read "Generic mode: " generic-mode-list nil t))]) #@48 Set up comment functionality for generic mode. (defalias 'generic-mode-set-comments #[(comment-list) "\306 \307\211\310\311!\210\310\312!\210\310\313!\210\307\211\203/ @\307\314\"#\f:\2030 \fA#\f@\315\f!\203: \316\f!\315#!\203J \316#!#\202U \317#G!\203U \320# \203j \321\"\n\322\323\f!\324R\n\202\203 \f #\320\230\203x \314\202z #\323\f!\324P\n\325\f\"A\206\226 \325#\"A\206\226 \"\"\f\"BB#\"BB\fG\326U\203\274 \327\330\f!\331\"P\n#\210\202\345 \f\332\234\f\326\234$\211%\325% \"A\333PB B$\325$ \"A\334\"PPB B*#G\326U\203\374 \327\330#!\335\"P\n#\210\202'#\332\234#\326\234$\211%\325% \"A\336\"PPB B$\325$ \"A\337PB B** A\211\204 * \237\307&\211\203W @&\327&@\316&@z!\340&AQ\n#\210 A\211\204:*\341\n!+\207" [comstyles chars st comment-list start --dolist-tail-- make-syntax-table nil make-local-variable comment-start comment-start-skip comment-end "" characterp char-to-string zerop "\n" "b" "\\|" regexp-quote "+\\s-*" assoc 1 modify-syntax-entry string-to-char "< " 0 "1" "2" ">" "3" "4" " " set-syntax-table comstyle end c1 c0 cs] 6 (#$ . 4782)]) #@75 Imenu support for [KEYWORD] constructs found in INF, INI and Samba files. (defalias 'generic-bracket-support #[nil "\302\303\211\207" [imenu-generic-expression imenu-case-fold-search ((nil "^\\[\\(.*\\)\\]" 1)) t] 2 (#$ . 5913)]) #@393 Return a `font-lock-keywords' construct that highlights KEYWORD-LIST. KEYWORD-LIST is a list of keyword strings that should be highlighted with face FACE. This function calculates a regular expression that matches these keywords and concatenates it with PREFIX and SUFFIX. Then it returns a construct based on this regular expression that can be used as an element of `font-lock-keywords'. (defalias 'generic-make-keywords-list #[(keyword-list face &optional prefix suffix) "<\204 \304\305!\210 \306\307\310\"\311\n\260\312E\207" [keyword-list prefix suffix face error "Keywords argument must be a list of strings" "\\_<" regexp-opt t "\\_>" 1] 5 (#$ . 6152)]) (provide 'generic)