Server IP : 111.118.215.189 / Your IP : 18.117.158.174 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/textmodes/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:52 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/textmodes/tildify.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\302\303\304\305\306\307&\210\310\311\312\313\306\301\314\315&\210\310\316\317\320\306\301\314\321&\210\310\322\323\324\306\301\314\325&\207" [custom-declare-group tildify nil "Add hard spaces or other text fragments to text buffers." :version "21.1" :group wp custom-declare-variable tildify-pattern-alist '((t "\\([,:;(][ ]*[a]\\|\\<[AIKOSUVZikosuvz]\\)\\([ ]+\\|[ ]*\n[ ]*\\)\\(\\w\\|[([{\\]\\|<[a-zA-Z]\\)" 2)) "Alist specifying where to insert hard spaces.\n\nEach alist item is of the form (MAJOR-MODE REGEXP NUMBER) or\n(MAJOR-MODE . SYMBOL).\n\nMAJOR-MODE defines major mode, for which the item applies. It can be either:\n- a symbol equal to the major mode of the buffer to be fixed\n- t for default item, this applies to all major modes not defined in another\n alist item\n\nREGEXP is a regular expression matching the part of a text, where a hard space\nis missing. The regexp is always case sensitive, regardless of the current\n`case-fold-search' setting.\n\nNUMBER defines the number of the REGEXP subexpression which should be replaced\nby the hard space character.\n\nThe form (MAJOR-MODE . SYMBOL) defines alias item for MAJOR-MODE. For this\nmode, the item for the mode SYMBOL is looked up in the alist instead." :type (repeat (choice (list symbol regexp integer) (cons symbol symbol))) tildify-string-alist '((latex-mode . "~") (tex-mode . latex-mode) (plain-tex-mode . latex-mode) (sgml-mode . " ") (xml-mode . sgml-mode) (html-mode . sgml-mode) (t . " ")) "Alist specifying what is a hard space in the current major mode.\n\nEach alist item is of the form (MAJOR-MODE . STRING) or\n(MAJOR-MODE . SYMBOL).\n\nMAJOR-MODE defines major mode, for which the item applies. It can be either:\n- a symbol equal to the major mode of the buffer to be fixed\n- t for default item, this applies to all major modes not defined in another\n alist item\n\nSTRING defines the hard space, which is inserted at places defined by\n`tildify-pattern-alist'. For example it can be \"~\" for TeX or \" \"\nfor SGML.\n\nThe form (MAJOR-MODE . SYMBOL) defines alias item for MAJOR-MODE. For this\nmode, the item for the mode SYMBOL is looked up in the alist instead." (repeat (cons symbol (choice string symbol))) tildify-ignored-environments-alist '((latex-mode ("\\\\\\\\" . #1="") ("\\\\begin{verbatim}" . "\\\\end{verbatim}") ("\\\\verb\\*?\\(.\\)" 1) ("\\$\\$" . "\\$\\$") ("\\$" . "\\$") ("\\\\(" . "\\\\)") ("\\\\[[]" . "\\\\[]]") ("\\\\begin{math}" . "\\\\end{math}") ("\\\\begin{displaymath}" . "\\\\end{displaymath}") ("\\\\begin{equation}" . "\\\\end{equation}") ("\\\\begin{eqnarray\\*?}" . "\\\\end{eqnarray\\*?}") ("\\\\[a-zA-Z]+\\( +\\|{}\\)[a-zA-Z]*" . #1#) ("%" . "$")) (plain-tex-mode . latex-mode) (html-mode ("<pre[^>]*>" . "</pre>") ("<dfn>" . "</dfn>") ("<code>" . "</code>") ("<samp>" . "</samp>") ("<kbd>" . "</kbd>") ("<var>" . "</var>") ("<PRE[^>]*>" . "</PRE>") ("<DFN>" . "</DFN>") ("<CODE>" . "</CODE>") ("<SAMP>" . "</SAMP>") ("<KBD>" . "</KBD>") ("<VAR>" . "</VAR>") ("<! *--" . "-- *>") ("<" . ">")) (sgml-mode . html-mode) (t nil)) "Alist specifying ignored structured text environments.\nParts of text defined in this alist are skipped without performing hard space\ninsertion on them. These setting allow skipping text parts like verbatim or\nmath environments in TeX or preformatted text in SGML.\n\nEach list element is of the form\n (MAJOR-MODE (BEG-REGEX . END-REGEX) (BEG-REGEX . END-REGEX) ... )\n\nMAJOR-MODE defines major mode, for which the item applies. It can be either:\n- a symbol equal to the major mode of the buffer to be fixed\n- t for default item, this applies to all major modes not defined in another\n alist item\n\nBEG-REGEX is a regexp matching beginning of a text part to be skipped.\nEND-REGEX defines end of the corresponding text part and can be either:\n- a regexp matching the end of the skipped text part\n- a list of regexps and numbers, which will compose the ending regexp by\n concatenating themselves, while replacing the numbers with corresponding\n subexpressions of BEG-REGEX (this is used to solve cases like\n \\\\verb<character> in TeX)." (repeat (cons symbol (choice symbol (repeat sexp))))] 8) #@27 Counter for replacements. (defvar tildify-count nil (#$ . 4783)) #@261 Add hard spaces in the region between BEG and END. See variables `tildify-pattern-alist', `tildify-string-alist', and `tildify-ignored-environments-alist' for information about configuration parameters. This function performs no refilling of the changed text. (defalias 'tildify-region #[(beg end) "\306\307\211\310 !\307\211\311\307\312 \307\203\324 \212\214~\210eb\210\204\320 `\313!\310\203? `S\202@ d!\314!Y\203\207 Y\204Y \314!\314!X\204i \315\314! #\211\316=\203~ \307\202\207 \n\307=\203\207 \311\314!\314!Y\203\226 \311`\314!Y\204\245 \314!b\210\204'