?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/format.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:12:50 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/format.el ;;; in Emacs version 24.3 ;;; 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#\210\300\304\302\303#\207" [put buffer-file-format permanent-local t buffer-auto-save-file-format] 4) #@2186 List of information about understood file formats. Elements are of the form (NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN PRESERVE). NAME is a symbol, which is stored in `buffer-file-format'. DOC-STR should be a single line providing more information about the format. It is currently unused, but in the future will be shown to the user if they ask for more information. REGEXP is a regular expression to match against the beginning of the file; it should match only files in that format. REGEXP may be nil, in which case the format will never be applied automatically to a file. Use this for formats that you only ever want to apply manually. FROM-FN is called to decode files in that format; it takes two args, BEGIN and END, and can make any modifications it likes, returning the new end. It must make sure that the beginning of the file no longer matches REGEXP, or else it will get called again. Alternatively, FROM-FN can be a string, which specifies a shell command (including options) to be used as a filter to perform the conversion. TO-FN is called to encode a region into that format; it takes three arguments: BEGIN, END, and BUFFER. BUFFER is the original buffer that the data being written came from, which the function could use, for example, to find the values of local variables. TO-FN should either return a list of annotations like `write-region-annotate-functions', or modify the region and return the new end. Alternatively, TO-FN can be a string, which specifies a shell command (including options) to be used as a filter to perform the conversion. MODIFY, if non-nil, means the TO-FN wants to modify the region. If nil, TO-FN will not make any changes but will instead return a list of annotations. MODE-FN, if specified, is called when visiting a file with that format. It is called with a single positive argument, on the assumption that this would turn on some minor mode. PRESERVE, if non-nil, means that `format-write-file' should not remove this format from `buffer-file-format'. (defvar format-alist (byte-code "\300\301\302!\301\303!\304BBB\305\301\306!\307BB\310\301\311!\312BB\313\301\314!\315BB\316\301\317!\320BB\321\301\322!\323\301\324!\301\324!\325BBBBB\326\301\327!\323\301\330!\331BBBB\332\301\333!\323\301\334!\301\335!\336BBBBB\337\301\340!\341BB\342\301\343!\344BB\257\n\207" [text/enriched purecopy "Extended MIME text/enriched format." "Content-[Tt]ype:[ ]*text/enriched" (enriched-decode enriched-encode t enriched-mode) plain "ISO 8859-1 standard format, no text properties." (nil nil nil nil nil) TeX "TeX (encoding)" (nil iso-tex2iso iso-iso2tex t nil) gtex "German TeX (encoding)" (nil iso-gtex2iso iso-iso2gtex t nil) html "HTML/SGML \"ISO 8879:1986//ENTITIES Added Latin 1//EN\" (encoding)" (nil iso-sgml2iso iso-iso2sgml t nil) rot13 "rot13" nil "tr a-mn-z n-za-m" (t nil) duden "Duden Ersatzdarstellung" "diac" (iso-iso2duden t nil) de646 "German ASCII (ISO 646)" "recode -f iso646-ge:latin1" "recode -f latin1:iso646-ge" (t nil) denet "net German" (nil iso-german iso-cvt-read-only t nil) esnet "net Spanish" (nil iso-spanish iso-cvt-read-only t nil)] 13) (#$ . 680)) (put 'format-alist 'risky-local-variable t) #@223 Translate using METHOD the text from FROM to TO. If METHOD is a string, it is a shell command (including options); otherwise, it should be a Lisp function. BUFFER should be the buffer that the output originally came from. (defalias 'format-encode-run-method #[(method from to &optional buffer) ";\203G \306\307!\310\311rq\210~\210\312 \210)\313\314 \315\216\316 \317\211&*!\203>