403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 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/textmodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/textmodes/enriched.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301!\210\302\303\304\305\306\307%\210\310\311\312\313\314DD\315\316\317%\210\320\321\322\323#\210\320\324\325\326#\207" [require facemenu custom-declare-group enriched nil "Read and save files in text/enriched format." :group text custom-declare-variable enriched-verbose funcall function #[0 "\300\207" [t] 1 ""] "If non-nil, give status messages when reading and writing files." :type boolean custom-declare-face fixed ((t (:weight bold))) "Face used for text that must be shown in fixed width.\nCurrently, Emacs can only display fixed-width fonts, but this may change.\nThis face is used for text specifically marked as fixed-width, for example\nin text/enriched files." excerpt ((t (:slant italic))) "Face used for text that is an excerpt from another document.\nThis is used in Enriched mode for text explicitly marked as an excerpt."] 6)
(defconst enriched-display-table (byte-code "\301!\206\302 \207" [standard-display-table copy-sequence make-display-table] 2))
(byte-code "\301\302\303 S\304\"I\207" [enriched-display-table 12 make-vector frame-width 45] 5)
#@120 Text-properties that usually apply to whole paragraphs.
These are set front-sticky everywhere except at hard newlines.
(defconst enriched-par-props '(left-margin right-margin justification) (#$ . 1174))
#@191 What to insert at the start of a text/enriched file.
If this is a string, it is inserted.  If it is a list, it should be a lambda
expression, which is evaluated to get the string to insert.
(defconst enriched-initial-annotation #[0 "\301\302\"\207" [fill-column format "Content-Type: text/enriched\nText-Width: %d\n\n"] 3] (#$ . 1384))
#@46 General format of enriched-text annotations.
(defconst enriched-annotation-format "<%s%s>" (#$ . 1727))
#@56 Regular expression matching enriched-text annotations.
(defconst enriched-annotation-regexp "<\\(/\\)?\\([-A-Za-z0-9]+\\)>" (#$ . 1837))
#@149 List of definitions of text/enriched annotations.
See `format-annotate-region' and `format-deannotate-region' for the definition
of this structure.
(defvar enriched-translations '((face (bold-italic "bold" "italic") (bold "bold") (italic "italic") (underline "underline") (fixed "fixed") (excerpt "excerpt") (default) (nil enriched-encode-other-face)) (left-margin (4 "indent")) (right-margin (4 "indentright")) (justification (none "nofill") (right "flushright") (left "flushleft") (full "flushboth") (center "center")) (PARAMETER (t "param")) (FUNCTION (enriched-decode-foreground "x-color") (enriched-decode-background "x-bg-color") (enriched-decode-display-prop "x-display") (enriched-decode-charset "x-charset")) (read-only (t "x-read-only")) (display (nil enriched-handle-display-prop)) (charset (nil enriched-handle-charset-prop)) (unknown (nil format-annotate-value))) (#$ . 1981))
#@176 Properties that are OK to ignore when saving text/enriched files.
Any property that is neither on this list nor dealt with by
`enriched-translations' will generate a warning.
(defconst enriched-ignore '(front-sticky rear-nonsticky hard) (#$ . 2878))
(byte-code "\300\301\302\303\304DD\305\306\307%\210\300\310\302\303\311DD\312\313\314\306\315\316\317&	\207" [custom-declare-variable enriched-mode-hook funcall function #[0 "\300\207" [nil] 1 #1=""] "Hook run after entering/leaving Enriched mode.\nIf you set variables in this hook, you should arrange for them to be restored\nto their old values if you leave Enriched mode.  One way to do this is to add\nthem and their old values to `enriched-old-bindings'." :type hook enriched-allow-eval-in-display-props #[0 "\300\207" [nil] 1 #1#] "If non-nil allow to evaluate arbitrary forms in display properties.\n\nEnriched mode recognizes display properties of text stored using\nan extension command to the text/enriched format, \"x-display\".\nThese properties must not, by default, include evaluation of\nLisp forms, otherwise they are not applied.  Customize this option\nto t to turn off this safety feature, and allow Enriched mode to\napply display properties which evaluate arbitrary Lisp forms.\nNote, however, that applying unsafe display properties could\nexecute malicious Lisp code, if that code came from an external source." :risky t boolean :version "26.1"] 10)
#@111 Store old variable values that we change when entering mode.
The value is a list of (VAR VALUE VAR VALUE...).
(defvar enriched-old-bindings nil (#$ . 4309))
(make-variable-buffer-local 'enriched-old-bindings)
(defvar enriched-default-text-properties-local-flag t)
(defvar enriched-rerun-flag nil)
#@27 Keymap for Enriched mode.
(defvar enriched-mode-map (byte-code "\300 \301\302\303#\210\301\304\303#\210\301\305\306#\210\301\307\310#\210\301\311\312#\210\301\313\314#\210\301\315\316#\210\301\317\320#\210\207" [make-sparse-keymap define-key "
" reindent-then-newline-and-indent [remap newline-and-indent] "\352" facemenu-justification-menu "\323" set-justification-center "	" increase-left-margin "[" set-left-margin "]" set-right-margin "\357" facemenu-keymap] 5) (#$ . 4612))
(put 'enriched-mode 'permanent-local t)
#@95 Non-nil if Enriched mode is enabled.
Use the command `enriched-mode' to change this variable.
(defvar enriched-mode nil (#$ . 5148))
(make-variable-buffer-local 'enriched-mode)
#@879 Minor mode for editing text/enriched files.
These are files with embedded formatting information in the MIME standard
text/enriched format.

This is a minor mode.  If called interactively, toggle the `Enriched
mode' mode.  If the prefix argument is positive, enable the mode, and
if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is `toggle'.  Enable the
mode if ARG is nil, omitted, or is a positive number.  Disable the
mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer,
evaluate `enriched-mode'.

The mode's hook is called both when the mode is enabled and when it is
disabled.

Turning the mode on or off runs `enriched-mode-hook'.

More information about Enriched mode is available in the file
"enriched.txt" in `data-directory'.

Commands:

\{enriched-mode-map}

(fn &optional ARG)
(defalias 'enriched-mode #[256 "\306 \307=\203
?\202\247\203\310W\203\311\202\312\313\301!\2031\314\300	\"\2031\300	B\204j\315\316\317\320#\210\314\321\n\"\203S\211A\242\211A\242L\210\202@\f\204[\322\323!\210\322\304!\210
\204\300\305\324!\210\202\300\321\n>\203u-\203\300\325\316\317\311\320$\210\326\302\321\"\210\327\323\305
\257\330\304!\210\331\323!\330\323!\210.\305\310-\205\244\332\"\210\333\334/\335\336\337\"!\"!\211\203\277\340\337#\210\341\342\203\312\343\202\313\344\"\210\345\346!\203\355\306 \203\337\211\306 \232\203\355\347\350\203\351\351\202\352\352\353#\210\210\354 \210\207" [enriched-mode local-minor-modes buffer-file-format enriched-old-bindings enriched-default-text-properties-local-flag use-hard-newlines current-message toggle 1 nil t boundp delq remove-hook change-major-mode-hook enriched-before-change-major-mode local text/enriched kill-local-variable default-text-properties 0 add-hook add-to-list buffer-display-table make-local-variable local-variable-p never delete-dups append copy-sequence plist-get front-sticky plist-put run-hooks enriched-mode-hook enriched-mode-on-hook enriched-mode-off-hook called-interactively-p any message "Enriched mode %sabled%s" "en" "dis" " in current buffer" force-mode-line-update enriched-rerun-flag enriched-display-table enriched-par-props] 9 (#$ . 5332) (byte-code "\203\n\301!\202\302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar enriched-mode-hook nil)
(byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\313\314\300!\205#\310\211%\207" [enriched-mode-map enriched-mode-hook variable-documentation put "Hook run after entering or leaving `enriched-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode enriched-mode " Enriched" boundp] 6)
(defalias 'enriched-before-change-major-mode #[0 "\205	\205	\211A\242	\211A\242L\210\202\207" [enriched-mode enriched-old-bindings] 3])
(defalias 'enriched-after-change-major-mode #[0 "\205\n\302\300\303!)\207" [enriched-mode enriched-rerun-flag t 1] 2])
(byte-code "\301\302\303\"\210\300M\207" [enriched-mode-map add-hook after-change-major-mode-hook enriched-after-change-major-mode] 3)
#@412 Apply a function to regions of the buffer based on a text property.
For each contiguous region of the buffer for which the value of PROPERTY is
eq, the FUNCTION will be called.  Optional arguments FROM and TO specify the
region over which to scan.

The specified function receives three arguments: the VALUE of the property in
the region, and the START and END of each region.

(fn PROP FUNC &optional FROM TO)
(defalias 'enriched-map-property-regions #[1026 "\212\214\211\203\ne}\210\206eb\210`\300\301 \302`\"\303d\n$\211\262\203D\300\223\210\304!#\210\304!\262\302	\"\262\202dW\205Pd#\266\204*\207" [nil make-marker get-text-property text-property-not-all marker-position] 13 (#$ . 8612)])
(put 'enriched-map-property-regions 'lisp-indent-hook 1)
#@69 Indent and justify each line in the region.

(fn &optional FROM TO)
(defalias 'enriched-insert-indentation #[512 "\212\214\211\203\ne}\210\206eb\210n\204\300y\210m?\2051l\204+\301 j\210\302\303\304\303#\210\300y\210\202*\207" [1 current-left-margin justify-current-line t nil] 6 (#$ . 9400)])
#@25 

(fn FROM TO ORIG-BUF)
(defalias 'enriched-encode #[771 "\203\306\307!\210\310\211\214}\210\311 \210\312 \210b\210\313\314!\210\315\316d\317\f%!\210b\210
;\2034
\202?\212\211\203<\211q\210
 )c\210\320\321\322`\323$\210\203P\306\323!\210d+\207" [enriched-verbose inhibit-point-motion-hooks inhibit-read-only enriched-translations enriched-ignore enriched-initial-annotation message "Enriched: encoding document..." t delete-to-left-margin unjustify-region format-replace-strings (("<" . "<<")) format-insert-annotations format-annotate-region enriched-make-annotation enriched-map-property-regions hard #[771 "\205f\300U\205b\210\301c\207" [10 "\n"] 5 "\n\n(fn V B E)"] nil] 10 (#$ . 9710)])
#@227 Format an annotation INTERNAL-ANN.
INTERNAL-ANN may be a string, for a flag, or a list of the form (PARAM VALUE).
If POSITIVE is non-nil, this is the opening annotation;
if nil, the matching close.

(fn INTERNAL-ANN POSITIVE)
(defalias 'enriched-make-annotation #[514 ";\203\301\203\302\202\303#\207\211\203'@A\301\302#\304\305\302#P\207\301\303@#\207" [enriched-annotation-format format "" "/" mapconcat #[257 "\300\301Q\207" ["<param>" "</param>"] 4 "\n\n(fn I)"]] 9 (#$ . 10432)])
#@133 Generate annotations for random face change.
One annotation each for foreground color, background color, italic, etc.

(fn OLD NEW)
(defalias 'enriched-encode-other-face #[514 "\205\300!\205\300!B\207" [enriched-face-ans] 5 (#$ . 10942)])
#@210 Return annotations specifying FACE.
FACE may be a list of faces instead of a single face;
it can also be anything allowed as an element of a list
which can be the value of the `face' text property.

(fn FACE)
(defalias 'enriched-face-ans #[257 "\211:\203\211@\301=\203\302ADC\207\211:\203$\211@\303=\203$\304ADC\207\211<\2037\211@\305=\2037\302A@DC\207\211<\203J\211@\306=\203J\304A@DC\207\211<\203W\307\310\311\312\"\"\207\313\305\"\313\306\"\313\314\"\313\315\"\316\317\"\320\321\322$A\323=\204\200\302DB\262\323=\204\215\304DB\262\324=\203\231\325CB\262\326=\203\245\327CB\262\207" [enriched-translations foreground-color "x-color" background-color "x-bg-color" :foreground :background apply append mapcar enriched-face-ans face-attribute :weight :slant face-font t format-annotate-single-property-change face nil unspecified bold "bold" italic "italic"] 11 (#$ . 11196)])
#@16 

(fn FROM TO)
(defalias 'enriched-decode #[514 "\203\303\304!\210\305\306\307\"\210\212\214}\210b\210\310 \311 \210\312\313\314\315#\2035\316 \203,\317\320!\210\321\322\224`\"\210\202\323d	\324$\210\211\203P\211\203J\303\325!\210\326 \210\202]\203X\303\327!\210\330ed\"\210\203e\303\314!\210\210d*\207" [enriched-verbose enriched-translations fill-column message "Enriched: decoding document..." use-hard-newlines 1 never enriched-get-file-width enriched-remove-header search-forward-regexp "\n\n+" nil t current-justification delete-char -1 set-hard-newline-properties 0 format-deannotate-region enriched-next-annotation "Indenting..." enriched-insert-indentation "Filling paragraphs..." fill-region] 8 (#$ . 12120)])
#@170 Find and return next text/enriched annotation.
Any "<<" strings encountered are converted to "<".
Return value is (begin end name positive-p), or nil if none was found.
(defalias 'enriched-next-annotation #[0 "\301\302\303\304#\203,\305\224b\210\306!\204,\304u\210`f\307=\203#\310\304!\210\202\311\312`S\"\210\202m?\205E\305\224\305\225\313\224\313\225{\227\304\224?F\266\204\207" [enriched-annotation-regexp search-forward "<" nil 1 0 looking-at 60 delete-char message "Warning: malformed annotation in file at %s" 2] 8 (#$ . 12867)])
#@47 Look for file width information on this line.
(defalias 'enriched-get-file-width #[0 "\212\300\301`\302\\\303#\205\304p!)\207" [search-forward "Text-Width: " 1000 t read] 4 (#$ . 13422)])
#@37 Remove file-format header at point.
(defalias 'enriched-remove-header #[0 "\300\301!\203`\302\225|\210\202\300\303!\205\304\305!\207" [looking-at "^[-A-Za-z]+: .*\n" 0 "^\n" delete-char 1] 2 (#$ . 13618)])
#@32 

(fn FROM TO &optional COLOR)
(defalias 'enriched-decode-foreground #[770 "\211\203\f\300\301DF\207\302\303!\210\304\207" [face :foreground message "Warning: no color specified for <x-color>" nil] 8 (#$ . 13836)])
#@32 

(fn FROM TO &optional COLOR)
(defalias 'enriched-decode-background #[770 "\211\203\f\300\301DF\207\302\303!\210\304\207" [face :background message "Warning: no color specified for <x-bg-color>" nil] 8 (#$ . 14061)])
#@31 

(fn FROM TO &optional CSET)
(defalias 'enriched-decode-charset #[770 "\211;\205\3001\301!@0\202\210\302\211\204\303\304\"\210\305F\207" [(error) read-from-string nil message "Warning: invalid <x-charset> parameter %s" charset] 8 (#$ . 14289)])
#@84 Return a list of annotations for a change in the `charset' property.

(fn OLD NEW)
(defalias 'enriched-handle-charset-prop #[514 "\205\n\300\301!DC\205\300\301!DCB\207" ["x-charset" symbol-name] 6 (#$ . 14554)])
#@323 Return a list of annotations for a change in the `display' property.
OLD is the old value of the property, NEW is the new value.  Value
is a list `(CLOSE OPEN)', where CLOSE is a list of annotations to
close and OPEN a list of annotations to open.  Each of these lists
has the form `(ANNOTATION PARAM ...)'.

(fn OLD NEW)
(defalias 'enriched-handle-display-prop #[514 "\300\206!\204\301\302DCB\207\302DCC\207" [prin1-to-string nil "x-display"] 6 (#$ . 14780)])
#@276 Decode a `display' property for text between START and END.
PARAM is a `<param>' found for the property.
Value is a list `(START END SYMBOL VALUE)' with START and END denoting
the range of text to assign text property SYMBOL with value VALUE.

(fn START END &optional PARAM)
(defalias 'enriched-decode-display-prop #[770 "\211;\205\3011\302!@0\202\210\303\211\204\304\305\"\210\203&\306F\207\306\307DF\207" [enriched-allow-eval-in-display-props (error) read-from-string nil message "Warning: invalid <x-display> parameter %s" display disable-eval] 9 (#$ . 15257)])
(provide 'enriched)

Youez - 2016 - github.com/yon3zu
LinuXploit