MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 3.18.102.38
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/obsolete/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/obsolete/fast-lock.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:07 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/obsolete/fast-lock.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 "\301\302!\210\303=\203\304 \204\305\306!\210\307\310\311\312\313\310\314\302&\207" [system-type require font-lock ms-dos msdos-long-file-names error "`fast-lock' was written for long file name systems" custom-declare-group fast-lock nil "Font Lock support mode to cache fontification." :load :group] 8)
(defvar fast-lock-mode nil)
(defvar fast-lock-cache-timestamp nil)
(defvar fast-lock-cache-filename nil)
(byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\210\314\310\315\316#\210\300\317\320\321\304\322\306\307&\210\300\323\316\324\304\325\306\307&\210\300\326\327\330\304\331\306\307&\207" [custom-declare-variable fast-lock-minimum-size 25600 "Minimum size of a buffer for cached fontification.\nOnly buffers more than this can have associated Font Lock cache files saved.\nIf nil, means cache files are never created.\nIf a list, each element should be a cons pair of the form (MAJOR-MODE . SIZE),\nwhere MAJOR-MODE is a symbol or t (meaning the default).  For example:\n ((c-mode . 25600) (c++-mode . 25600) (rmail-mode . 1048576))\nmeans that the minimum size is 25K for buffers in C or C++ modes, one megabyte\nfor buffers in Rmail mode, and size is irrelevant otherwise." :type (choice (const :tag "none" nil) (integer :tag "size") (repeat :menu-tag "mode specific" :tag "mode specific" :value ((t)) (cons :tag "Instance" (radio :tag "Mode" (const :tag "all" t) (symbol :tag "name")) (radio :tag "Size" (const :tag "none" nil) (integer :tag "size"))))) :group fast-lock fast-lock-cache-directories '("~/.emacs-flc") "Directories in which Font Lock cache files are saved and read.\nEach item should be either DIR or a cons pair of the form (REGEXP . DIR) where\nDIR is a directory name (relative or absolute) and REGEXP is a regexp.\n\nAn attempt will be made to save or read Font Lock cache files using these items\nuntil one succeeds (i.e., until a readable or writable one is found).  If an\nitem contains REGEXP, DIR is used only if the buffer file name matches REGEXP.\nFor example:\n\n (let ((home (expand-file-name (abbreviate-file-name (file-truename \"~/\")))))\n   (list (cons (concat \"^\" (regexp-quote home)) \".\") \"~/.emacs-flc\"))\n    =>\n ((\"^/your/true/home/directory/\" . \".\") \"~/.emacs-flc\")\n\nwould cause a file's current directory to be used if the file is under your\nhome directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'.\nFor security reasons, it is not advisable to use the file's current directory\nto avoid the possibility of using the cache of another user." (repeat (radio (directory :tag "directory") (cons :tag "Matching" (regexp :tag "regexp") (directory :tag "directory")))) put risky-local-variable t fast-lock-save-events '(kill-buffer kill-emacs) "Events under which caches will be saved.\nValid events are `save-buffer', `kill-buffer' and `kill-emacs'.\nIf concurrent editing sessions use the same associated cache file for a file's\nbuffer, then you should add `save-buffer' to this list." (set (const :tag "buffer saving" save-buffer) (const :tag "buffer killing" kill-buffer) (const :tag "emacs killing" kill-emacs)) fast-lock-save-others "If non-nil, save Font Lock cache files irrespective of file owner.\nIf nil, means only buffer files known to be owned by you can have associated\nFont Lock cache files saved.  Ownership may be unknown for networked files." boolean fast-lock-verbose font-lock-verbose "If non-nil, means show status messages for cache processing.\nIf a number, only buffers greater than this size have processing messages." (choice (const :tag "never" nil) (other :tag "always" t) (integer :tag "size"))] 8)
#@108 Faces that will be saved in a Font Lock cache file.
If nil, means information for all faces will be saved.
(defvar fast-lock-save-faces nil (#$ . 4230))
#@1122 Toggle Fast Lock mode.
With arg, turn Fast Lock mode on if and only if arg is positive and the buffer
is associated with a file.  Enable it automatically in your `~/.emacs' by:

 (setq font-lock-support-mode 'fast-lock-mode)

If Fast Lock mode is enabled, and the current buffer does not contain any text
properties, any associated Font Lock cache is used if its timestamp matches the
buffer's file, and its `font-lock-keywords' match those that you are using.

Font Lock caches may be saved:
- When you save the file's buffer.
- When you kill an unmodified file's buffer.
- When you exit Emacs, for all unmodified or saved buffers.
Depending on the value of `fast-lock-save-events'.
See also the commands `fast-lock-read-cache' and `fast-lock-save-cache'.

Use \[font-lock-fontify-buffer] to fontify the buffer if the cache is bad.

Various methods of control are provided for the Font Lock cache.  In general,
see variable `fast-lock-cache-directories' and function `fast-lock-cache-name'.
For saving, see variables `fast-lock-minimum-size', `fast-lock-save-events',
`fast-lock-save-others' and `fast-lock-save-faces'.
(defalias 'fast-lock-mode #[(&optional arg) "\306\303!\210\205\303	>?\205\n\203\307\n!\310V\202?\211\203.\f\204.\311\312!\210\313\314!\207\306\305!\210\315\306\316!\210\315\205G?\205G\317 \207" [buffer-file-truename font-lock-inhibit-thing-lock arg fast-lock-mode font-lock-mode fast-lock-cache-timestamp make-local-variable prefix-numeric-value 0 message "Use font-lock-support-mode rather than calling fast-lock-mode" sit-for 2 nil fast-lock-cache-filename fast-lock-read-cache font-lock-fontified] 3 (#$ . 4391) "P"])
#@400 Read the Font Lock cache for the current buffer.

The following criteria must be met for a Font Lock cache file to be read:
- Fast Lock mode must be turned on in the buffer.
- The buffer must not be modified.
- The buffer's `font-lock-keywords' must match the cache's.
- The buffer file's timestamp must match the cache's.
- Criteria imposed by `fast-lock-cache-directories'.

See `fast-lock-mode'.
(defalias 'fast-lock-read-cache #[nil "\306 \307	\310\301!\210\311
\203*	\204*\312
@\311\"\311\313\314\217\210
A)\202\315\f!\210	?\2059\311\n\211,\207" [fast-lock-cache-directories font-lock-fontified fontified inhibit-read-only modified directories buffer-modified-p t make-local-variable nil fast-lock-cache-directory (byte-code "\203\302!\303	!\203\304	\305\211\211$\210\302\207" [directory fast-lock-cache-filename fast-lock-cache-name file-readable-p load t] 5) ((error) (quit)) set-buffer-modified-p directory fast-lock-cache-filename] 4 (#$ . 6061) nil])
#@698 Save the Font Lock cache of BUFFER or the current buffer.

The following criteria must be met for a Font Lock cache file to be saved:
- Fast Lock mode must be turned on in the buffer.
- The event must be one of `fast-lock-save-events'.
- The buffer must be at least `fast-lock-minimum-size' bytes long.
- The buffer file must be owned by you, or `fast-lock-save-others' must be t.
- The buffer must contain at least one `face' text property.
- The buffer must not be modified.
- The buffer file's timestamp must be the same as the file's on disk.
- The on disk file's timestamp must be different than the buffer's cache.
- Criteria imposed by `fast-lock-cache-directories'.

See `fast-lock-mode'.
(defalias 'fast-lock-save-cache #[(&optional buffer) "\212\203q\210\306	!\307 \310
\205\212\311 ?\205\212\312p!\205\212\232?\205\212\f\205\212\313 \fY\205\212\204E\314 \315\316!8=\205\212\317ed\320\310$\205\212\205\211\n\321>\205\211\322@\323\"\211\205m\324!\211\203\200\325!\203\200\326\"A*\202R),\207" [buffer fast-lock-minimum-size saved file-timestamp min-size fast-lock-mode font-lock-value-in-major-mode visited-file-modtime nil buffer-modified-p verify-visited-file-modtime buffer-size user-uid 2 file-attributes text-property-not-all face (nil error) fast-lock-cache-directory t fast-lock-cache-name file-writable-p fast-lock-save-cache-1 fast-lock-cache-timestamp fast-lock-save-others buffer-file-name fast-lock-cache-directories directories dir file] 6 (#$ . 7053) nil])
#@41 Unconditionally turn on Fast Lock mode.
(defalias 'turn-on-fast-lock #[nil "\300\301!\207" [fast-lock-mode t] 2 (#$ . 8591)])
(defalias 'fast-lock-after-fontify-buffer #[nil "\203\302!\203\303!\210\202\304\305\306 \"\210\307\211\207" [fast-lock-cache-filename fast-lock-cache-timestamp file-writable-p delete-file message "File %s font lock cache cannot be deleted" buffer-name nil] 3])
(defalias 'fast-lock-after-unfontify-buffer 'ignore)
(defalias 'fast-lock-save-cache-after-save-file #[nil "\301>\205\302 \207" [fast-lock-save-events save-buffer fast-lock-save-cache] 2])
(defalias 'fast-lock-save-cache-before-kill-buffer #[nil "\301>\205\302 \207" [fast-lock-save-events kill-buffer fast-lock-save-cache] 2])
(defalias 'fast-lock-save-caches-before-kill-emacs #[nil "\301>\205\302\303\304 \"\207" [fast-lock-save-events kill-emacs mapcar fast-lock-save-cache buffer-list] 3])
#@237 Return usable directory based on DIRECTORY.
Returns nil if the directory does not exist, or, if CREATE non-nil, cannot be
created.  DIRECTORY may be a string or a cons pair of the form (REGEXP . DIR).
See `fast-lock-cache-directories'.
(defalias 'fast-lock-cache-directory #[(directory create) "\204\306\202(	;\203	\202(\307\n!\306\310 \311\216\312	@\f\"*\205'	A*\211\2042\306\202G\313!\203>\202G\205G\306\314\315\217)\207" [buffer-file-name directory buffer-file-truename case-fold-search bufile save-match-data-internal nil expand-file-name match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) string-match file-accessible-directory-p (byte-code "\301\302\"\210\207" [dir make-directory t] 3) ((error)) dir create] 4 (#$ . 9499)])
#@744 Return full cache file name using caching DIRECTORY.
If DIRECTORY is `.', the file name is the buffer file name appended with `.flc'.
Otherwise, the file name is constructed from DIRECTORY and the buffer's true
abbreviated file name, with all `/' characters in the name replaced with `#'
characters, and appended with `.flc'.

If the same file has different cache file names when edited on different
machines, e.g., on one machine the cache file name has the prefix `#home',
perhaps due to automount, try putting in your `~/.emacs' something like:

 (setq directory-abbrev-alist (cons '("^/home/" . "/") directory-abbrev-alist))

Emacs automagically removes the common `/tmp_mnt' automount prefix by default.

See `fast-lock-cache-directory'.
(defalias 'fast-lock-cache-name #[(directory) "\306\230\203\n	\307P\207\310\n!\f\311>\203\312\202\313\314\315\310!!\316\317\320\321\322\"\"\323#\307Q+\207" [directory buffer-file-name buffer-file-truename bufile system-type chars-alist "." ".flc" expand-file-name (windows-nt cygwin) ((47 35) (35 35 35) (58 59) (59 59 59)) ((47 35) (35 35 35)) #[(c) "	\236A\206	C\207" [c chars-alist] 2] file-name-as-directory mapconcat char-to-string apply append mapcar "" mapchars] 8 (#$ . 10309)])
(defalias 'fast-lock-save-cache-1 #[(file timestamp) "\306\307!\247\203\310 V\202\311\n\205\312\313\314 \"\315\316\216
\203.\317 \320\321
\"\210\315\322\323\217\210\324!\210+	\325=\203G\320\326\314 \"\210\202S	\327=\203S\320\330\314 \"\210	+\207" [fast-lock-verbose saved verbose tpbuf #1=#:current-message #2=#:with-temp-message generate-new-buffer " *fast-lock*" buffer-size t format "Saving %s font lock cache..." buffer-name nil ((byte-code "\203	\203\302\303	\"\210\202\302\304!\210\304\207" [#2# #1# message #3="%s" nil] 3)) current-message message #3# (byte-code "\212\306\307\310\311D\311	D\311\312 D\311\nD\311\313 D\257\"\210q\210\314ed\f\315\316%\210\f)\315\207" [timestamp font-lock-syntactic-keywords font-lock-keywords tpbuf file fast-lock-cache-timestamp print fast-lock-cache-data 3 quote fast-lock-get-syntactic-properties fast-lock-get-face-properties write-region nil quietly fast-lock-cache-filename] 9) ((error (byte-code "\301\211\207" [saved error] 2)) (quit (byte-code "\301\211\207" [saved quit] 2))) kill-buffer quit "Saving %s font lock cache...quit" error "Saving %s font lock cache...failed"] 3])
(defalias 'fast-lock-cache-data #[(version timestamp syntactic-keywords syntactic-properties keywords face-properties &rest ignored) "\306!\211\203
\307\310\"	\203\307	\310\"\307\n!\307!\311 \f\247\203,\312 \fV\202-\f\310\313U\203S\314 \204S\232\203S	\232\203S\n\232\204X\315\202\231\205b\316\317\320 \"\315 \321\216 \203x\322 \323\324 \"\210\315\325\326\217\210+
\327=\203\215\323\330\320 \"\210\202\231
\331=\203\231\323\332\320 \"\210
\310=!
\310=\205\246\211\"+\207" [font-lock-syntactic-keywords syntactic-keywords font-lock-keywords keywords fast-lock-verbose loaded font-lock-eval-keywords font-lock-compile-keywords t visited-file-modtime buffer-size 3 buffer-modified-p nil format "Loading %s font lock cache..." buffer-name ((byte-code "\203	\203\302\303	\"\210\202\302\304!\210\304\207" [#1=#:with-temp-message #2=#:current-message message #3="%s" nil] 3)) current-message message #3# (fast-lock-add-properties syntactic-properties face-properties) ((error (byte-code "\301\211\207" [loaded error] 2)) (quit (byte-code "\301\211\207" [loaded quit] 2))) quit "Loading %s font lock cache...quit" error "Loading %s font lock cache...failed" verbose buf-timestamp version timestamp #2# #1# font-lock-fontified fast-lock-cache-timestamp] 4])
#@214 Return a list of `face' text properties in the current buffer.
Each element of the list is of the form (VALUE START1 END1 START2 END2 ...)
where VALUE is a `face' property value and STARTx and ENDx are positions.
(defalias 'fast-lock-get-face-properties #[nil "\214~\210\306ed\307\310$\310\211\211\211\211\203r\311\f\307\310d$\312\f\307\"\313	\n\"\211\2037\fABB\241\210\202g
\203`	9\203F	
>\202]	\f\f@
>\204Z\fA\211\f\204I\f)\203g	\fE\nB\306d\307\310$\211\204\n.\207" [cell value properties end start fast-lock-save-faces text-property-not-all face nil next-single-property-change get-text-property assoc faces] 6 (#$ . 14035)])
#@109 Return a list of `syntax-table' text properties in the current buffer.
See `fast-lock-get-face-properties'.
(defalias 'fast-lock-get-syntactic-properties #[nil "\214~\210\305ed\306\307$\307\211\211\211\211\203I\310\f\306\307d$\311\f\306\"\312	\n\"\211\2037\fABB\241\210\202>	\fE\nB\305d\306\307$\211\204\n.\207" [cell value properties end start text-property-not-all syntax-table nil next-single-property-change get-text-property assoc] 6 (#$ . 14703)])
#@181 Add `syntax-table' and `face' text properties to the current buffer.
Any existing `syntax-table' and `face' text properties are removed first.
See `fast-lock-get-face-properties'.
(defalias 'fast-lock-add-properties #[(syntactic-properties face-properties) "\306\211\307 \310\211\310\306\211\306\211\306\214~\210\311ed\"\210\203O\312@@D@AA	\203$\313	@	A@#\210	AA\211\202;\203z\314@@D@AA	\203O\313	@	A@#\210	AA\211\202f)\n?\205\210\307 \205\210\315\306!.\207" [plist regions modified buffer-undo-list inhibit-read-only inhibit-point-motion-hooks nil buffer-modified-p t font-lock-unfontify-region syntax-table add-text-properties face set-buffer-modified-p before-change-functions after-change-functions deactivate-mark buffer-file-name buffer-file-truename syntactic-properties face-properties] 5 (#$ . 15185)])
(byte-code "\302\303!\204\n\304\305!\210\302\306!\204\307\305!\210\310\311!\204\312\311\313\"\210\310\314!\204*\312\314\315\"\210\310\316!\2045\312\316\317\"\210\310\320!\204@\312\320\321\"\210\322\323\324\"\210\322\325\326\"\210\204S\322\327\330\"\210\310\331!\203b\332\305!\210\331\333\305\"\210\333	\236\204m\334	\335\"\336\337!\207" [noninteractive minor-mode-alist boundp font-lock-syntactic-keywords (lambda (#1=#:def-tmp-var) (defvar font-lock-syntactic-keywords #1#)) nil font-lock-inhibit-thing-lock (lambda (#1#) (defvar font-lock-inhibit-thing-lock #1#)) fboundp font-lock-compile-keywords defalias identity font-lock-eval-keywords #[(keywords) "9\203\301\302!\203 \202\303!!\207\207" [keywords font-lock-eval-keywords fboundp eval] 3] font-lock-value-in-major-mode #[(alist) ":\203	\236\206\302\236A\207\207" [alist major-mode t] 2] current-message #[nil "\300\207" [#2=""] 1 #2#] add-hook after-save-hook fast-lock-save-cache-after-save-file kill-buffer-hook fast-lock-save-cache-before-kill-buffer kill-emacs-hook fast-lock-save-caches-before-kill-emacs add-minor-mode (lambda (#1#) (defvar fast-lock-mode #1#)) fast-lock-mode append ((fast-lock-mode nil)) provide fast-lock] 3)

MMCT - 2023