| Server IP : 217.160.0.212 / Your IP : 216.73.217.46 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(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!\323BB\324\301\325!\326\301\327!\330BBBB\331\301\332!\326\301\333!\301\334!\335BBBBB\336\301\337!\340BB\341\301\342!\343BB\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 rot13-region rot13-region t nil) duden "Duden Ersatzdarstellung" nil "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) (#$ . 217))
(put 'format-alist 'risky-local-variable t)
#@261 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.
(fn METHOD FROM TO &optional BUFFER)
(defalias 'format-encode-run-method #[1027 ";\203K \302\303!\304\305r\211q\210~\210\306 \210)\307 \310\311\"\216\312\313\211&)\262\314U\203B r\211q\210\315 )\314U\203B \316!\202I \317!\210\320\321!*\207#\207" [format-alist coding-system-for-read get-buffer-create "*Format Errors*" no-conversion nil erase-buffer current-window-configuration make-closure #[0 "\301\300!\207" [V0 set-window-configuration] 2] shell-command-on-region t 0 buffer-size bury-buffer switch-to-buffer-other-window error "Format encoding failed"] 13 (#$ . 3554)])
#@222 Decode 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 is currently ignored.
(fn METHOD FROM TO &optional BUFFER)
(defalias 'format-decode-run-method #[1027 ";\203N \302\303!\304\305r\211q\210~\210\306 \210)\307 \310\311\"\216\312\313\314&)\262\315U\203C r\211q\210\316 )\315U\203C \317!\210\202K \320!\210\321\322!\210`*\207\"\207" [format-alist coding-system-for-write get-buffer-create "*Format Errors*" no-conversion nil erase-buffer current-window-configuration make-closure #[0 "\301\300!\207" [V0 set-window-configuration] 2] shell-command-on-region t no-mark 0 buffer-size bury-buffer switch-to-buffer-other-window error "Format decoding failed"] 13 (#$ . 4378)])
#@802 Return annotations for writing region as FORMAT.
FORMAT is a symbol naming one of the formats defined in `format-alist'.
It must be a single symbol, not a list like `buffer-file-format'.
FROM and TO delimit the region to be operated on in the current buffer.
ORIG-BUF is the original buffer that the data came from.
FORMAT-COUNT is an integer specifying how many times this function has
been called in the process of decoding ORIG-BUF.
This function works like a function in `write-region-annotate-functions':
it either returns a list of annotations, or returns with a different buffer
current, which contains the modified text to write. In the latter case,
this function's value is nil.
For most purposes, consider using `format-encode-region' instead.
(fn FORMAT FROM TO ORIG-BUF FORMAT-COUNT)
(defalias 'format-annotate-function #[1285 "\236\3068\3078\205c \211\203[ \310\311\312\"! \nrq\210\313!\210\211)\314\315\f\f#\210q\210\316
\f\"\210\317ed\f$\210)\320!\203W rq\210\321\322!\210\323)\266\324\207#\207" [format-alist selective-display enable-multibyte-characters buffer-file-coding-system inhibit-read-only write-region-annotations-so-far 4 5 get-buffer-create format " *Format Temp %d*" set-buffer-multibyte t copy-to-buffer format-insert-annotations format-encode-run-method buffer-live-p make-local-variable write-region-post-annotation-function kill-buffer nil] 17 (#$ . 5181)])
#@753 Decode text from any known FORMAT.
FORMAT is a symbol appearing in `format-alist' or a list of such symbols,
or nil, in which case this function tries to guess the format of the data by
matching against the regular expressions in `format-alist'. After a match is
found and the region decoded, the alist is searched again from the beginning
for another match.
Second arg LENGTH is the number of characters following point to operate on.
If optional third arg VISIT-FLAG is true, set `buffer-file-format'
to the reverted list of formats used, and call any mode functions defined
for those formats.
Return the new length of the decoded region.
For most purposes, consider using `format-decode-region' instead.
(fn FORMAT LENGTH &optional VISIT-FLAG)
(defalias 'format-decode #[770 "\302 ``\\\303\304\"\216\204l \211\203h \211@\3058`\203a \306!\203a \307\225\n\\W\203a @\nB\262\n\3108\203G \311\3108#\262\203X \3128\203X \3128\313!\210\211b\210\266\204\202 A\266\204\202 \210\202\271 <\204u C\262\314\203\261 @\236\211\262\204\213 \315\316@\"\210\3108\203\232 \311\3108#\262\203\252 \3128\203\252 \3128\313!\210A\262\202w \266\317!\262\203\277 )\211Z\207" [format-alist buffer-file-format buffer-modified-p make-closure #[0 "\301\300!\207" [V0 set-buffer-modified-p] 2] 2 looking-at 0 3 format-decode-run-method 6 1 nil error "Unknown format %s" reverse] 14 (#$ . 6618)])
#@215 Translate the buffer from some FORMAT.
If the format is not specified, attempt a regexp-based guess.
Set `buffer-file-format' to the format used, and call any
format-specific mode functions.
(fn &optional FORMAT)
(defalias 'format-decode-buffer #[256 "\212eb\210\300\301 \302#)\207" [format-decode buffer-size t] 5 (#$ . 8052) (byte-code "\300\301!C\207" [format-read "Translate buffer from format (default guess): "] 2)])
#@212 Decode the region from some format.
Arg FORMAT is optional; if omitted the format will be determined by looking
for identifying regular expressions at the beginning of the region.
(fn FROM TO &optional FORMAT)
(defalias 'format-decode-region #[770 "\212b\210\300Z\301#)\207" [format-decode nil] 7 (#$ . 8484) (byte-code "\300 \301 \302\303!E\207" [region-beginning region-end format-read "Translate region from format (default guess): "] 4)])
#@195 Translate the buffer into FORMAT.
FORMAT defaults to `buffer-file-format'. It is a symbol naming one of the
formats defined in `format-alist', or a list of such symbols.
(fn &optional FORMAT)
(defalias 'format-encode-buffer #[256 "\300ed#\207" [format-encode-region] 5 (#$ . 8939) (byte-code "\301\302\303\"!C\207" [buffer-file-format format-read format-prompt "Translate buffer to format"] 4)])
#@208 Translate the region into some FORMAT.
FORMAT defaults to `buffer-file-format'. It is a symbol naming
one of the formats defined in `format-alist', or a list of such symbols.
(fn BEG END &optional FORMAT)
(defalias 'format-encode-region #[770 "\211\204 \262\2119\203 \211C\262\212b\210\302 \205L @ \236\3038\3048\203C \211\2039 \305p$\262\202C \306p#!\210A\262\266\202 \262)\207" [buffer-file-format format-alist point-marker 4 5 format-encode-run-method format-insert-annotations] 12 (#$ . 9346) (byte-code "\301 \302 \303\304\305\"!E\207" [buffer-file-format region-beginning region-end format-read format-prompt "Translate region to format"] 6)])
#@762 Write current buffer into FILENAME, using a format based on FORMAT.
Constructs the actual format starting from FORMAT, then appending
any elements from the value of `buffer-file-format' with a non-nil
`preserve' flag (see the documentation of `format-alist'), if they
are not already present in FORMAT. It then updates `buffer-file-format'
with this format, making it the default for future saves.
If the buffer is already visiting a file, you can specify a
directory name as FILENAME, to write a file of the same old name
in that directory.
If optional third arg CONFIRM is non-nil, asks for confirmation before
overwriting an existing file. Interactively, requires confirmation
unless you supply a prefix argument.
(fn FILENAME FORMAT &optional CONFIRM)
(defalias 'format-write-file #[770 "\302\211\203 \211@\211 \236\3038\203 B\262\210A\266\202\202 \210\211\211\203<