| 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 : |
;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\n e}\210\206 eb\210`\300\301 \302`\"\303d\n$\211\262\203D \300\223\210\304!#\210\304!\262\302 \"\262\202 dW\205P d#\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\n e}\210\206 eb\210n\204 \300y\210m?\2051 l\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<