Server IP : 111.118.215.189 / Your IP : 3.135.236.62 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 ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:09 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/obsolete/old-whitespace.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@36 Version of the whitespace library. (defvar whitespace-version "3.5" (#$ . 566)) #@177 An associated list of buffers and files checked for whitespace cleanliness. This is to enable periodic checking of whitespace cleanliness in the files visited by the buffers. (defvar whitespace-all-buffer-files nil (#$ . 653)) #@75 Timer object used to rescan the files in buffers that have been modified. (defvar whitespace-rescan-timer nil (#$ . 887)) #@57 Non-nil when Whitespace mode (a minor mode) is enabled. (defvar whitespace-mode nil (#$ . 1015)) (make-variable-buffer-local 'whitespace-mode) #@57 String to display in the mode line for Whitespace mode. (defvar whitespace-mode-line nil (#$ . 1164)) (make-variable-buffer-local 'whitespace-mode-line) #@58 Test leading whitespace for file in current buffer if t. (defvar whitespace-check-buffer-leading nil (#$ . 1323)) (make-variable-buffer-local 'whitespace-check-buffer-leading) #@59 Test trailing whitespace for file in current buffer if t. (defvar whitespace-check-buffer-trailing nil (#$ . 1505)) (make-variable-buffer-local 'whitespace-check-buffer-trailing) #@62 Test indentation whitespace for file in current buffer if t. (defvar whitespace-check-buffer-indent nil (#$ . 1690)) (make-variable-buffer-local 'whitespace-check-buffer-indent) #@73 Test Space-followed-by-TABS whitespace for file in current buffer if t. (defvar whitespace-check-buffer-spacetab nil (#$ . 1874)) (make-variable-buffer-local 'whitespace-check-buffer-spacetab) #@62 Test end-of-line whitespace for file in current buffer if t. (defvar whitespace-check-buffer-ateol nil (#$ . 2073)) (make-variable-buffer-local 'whitespace-check-buffer-ateol) #@48 The variable to store the extent to highlight. (defvar whitespace-highlighted-space nil (#$ . 2255)) (byte-code "\306\307!\210\310\311\312\"\210\310\313\314\"\210\310\315\316\"\210\310\317\320\"\210\310\321\322\"\210\310\323\324\"\210\325\326\327\330\331\332\333\334\335\336& \210\337\301\340\341\342\343\335\326&\210\337\302\340\344\342\343\335\326&\210\337\304\340\345\342\343\335\326&\210\337\346\347\350\342\351\335\326&\210\337\303\352\353\342\343\335\326&\210\337\354\355\356\342\351\335\326&\210\337\305\340\357\342\343\335\326&\210\337\360\361\362\342\351\335\326&\210\337\363\364\365\342\366\335\326&\210\337\367\370\371\342\366\335\326&\210\337\372\327\373\342\343\335\326&\210\337\374\327\375\342\343\335\326&\210\337\376\327\377\342\343\335\326&\210\337\201@ \201A \201B \342\201C \335\326&\210\337\201D \201E \201F \342\201G \335\326&\210\337\201H \340\201I \342\343\335\326&\210\337\201J \340\201K \342\343\335\326&\210\325\201L \327\201M \201N \201O \335\326\335\201P & \210\201Q \201R \201S \201T \335\201L %\210\201U \201V \201W \201R #\210\201U \201V \201X \201Y \201Z !\206M\340#\210\201[ \201\\ \"\204`\201] B\201^ \201_ \"\210\201^ \201` \n\"\210\201^ \201a \"\210\201^ \201b \f\"\210\201^ \201c \"\207" [minor-mode-alist whitespace-check-leading-whitespace whitespace-check-trailing-whitespace whitespace-check-indent-whitespace whitespace-check-spacetab-whitespace whitespace-check-ateol-whitespace make-variable-buffer-local whitespace-highlighted-space defalias whitespace-make-overlay make-overlay whitespace-overlay-put overlay-put whitespace-delete-overlay delete-overlay whitespace-overlay-start overlay-start whitespace-overlay-end overlay-end whitespace-mode-line-update force-mode-line-update custom-declare-group whitespace nil "Check for and fix five different types of whitespaces in source code." :version "21.1" :link (emacs-commentary-link "whitespace.el") :group convenience custom-declare-variable t "Flag to check leading whitespace. This is the global for the system.\nIt can be overridden by setting a buffer local variable\n`whitespace-check-buffer-leading'." :type boolean "Flag to check trailing whitespace. This is the global for the system.\nIt can be overridden by setting a buffer local variable\n`whitespace-check-buffer-trailing'." "Flag to check space followed by a TAB. This is the global for the system.\nIt can be overridden by setting a buffer local variable\n`whitespace-check-buffer-spacetab'." whitespace-spacetab-regexp "[ ]+ " "Regexp to match one or more spaces followed by a TAB." regexp indent-tabs-mode "Flag to check indentation whitespace. This is the global for the system.\nIt can be overridden by setting a buffer local variable\n`whitespace-check-buffer-indent'." whitespace-indent-regexp "^ *\\( \\)+" "Regexp to match multiples of eight spaces near line beginnings.\nThe default value ignores leading TABs." "Flag to check end-of-line whitespace. This is the global for the system.\nIt can be overridden by setting a buffer local variable\n`whitespace-check-buffer-ateol'." whitespace-ateol-regexp "[ ]+$" "Regexp to match one or more TABs or spaces at line ends." whitespace-errbuf "*Whitespace Errors*" "The name of the buffer where whitespace related messages will be logged." string whitespace-clean-msg "clean." "If non-nil, this message will be displayed after a whitespace check\ndetermines a file to be clean." whitespace-abort-on-error "While writing a file, abort if the file is unclean.\nIf `whitespace-auto-cleanup' is set, that takes precedence over\nthis variable." whitespace-auto-cleanup "Cleanup a buffer automatically on finding it whitespace unclean." whitespace-silent "All whitespace errors will be shown only in the mode line when t.\n\nNote that setting this may cause all whitespaces introduced in a file to go\nunnoticed when the buffer is killed, unless the user visits the `*Whitespace\nErrors*' buffer before opening (or closing) another file." whitespace-modes '(ada-mode asm-mode autoconf-mode awk-mode c-mode c++-mode cc-mode change-log-mode cperl-mode electric-nroff-mode emacs-lisp-mode f90-mode fortran-mode html-mode html3-mode java-mode jde-mode ksh-mode latex-mode LaTeX-mode lisp-mode m4-mode makefile-mode modula-2-mode nroff-mode objc-mode pascal-mode perl-mode prolog-mode python-mode scheme-mode sgml-mode sh-mode shell-script-mode simula-mode tcl-mode tex-mode texinfo-mode vrml-mode xml-mode) "Major modes in which we turn on whitespace checking.\n\nThese are mostly programming and documentation modes. But you may add other\nmodes that you want whitespaces checked in by adding something like the\nfollowing to your `.emacs':\n\n(setq whitespace-modes (cons 'my-mode (cons 'my-other-mode\n whitespace-modes)))\n\nOr, alternately, you can use the Emacs `customize' command to set this." (repeat symbol) whitespace-rescan-timer-time 600 "Period in seconds to rescan modified buffers for whitespace creep.\n\nThis is the period after which the timer will fire causing\n`whitespace-rescan-files-in-buffers' to check for whitespace creep in\nmodified buffers.\n\nTo disable timer scans, set this to zero." integer whitespace-display-in-modeline "Display whitespace errors on the modeline." whitespace-display-spaces-in-color "Display the bogus whitespaces by coloring them with the face\n`whitespace-highlight'." whitespace-faces "Faces used in whitespace." :prefix "whitespace-" faces custom-declare-face whitespace-highlight ((((class color) (background light)) (:background "green1")) (((class color) (background dark)) (:background "sea green")) (((class grayscale mono) (background light)) (:background "black")) (((class grayscale mono) (background dark)) (:background "white"))) "Face used for highlighting the bogus whitespaces that exist in the buffer." put whitespace-highlight-face face-alias obsolete-face purecopy "22.1" assoc whitespace-mode (whitespace-mode whitespace-mode-line) set-default whitespace-check-buffer-leading whitespace-check-buffer-trailing whitespace-check-buffer-indent whitespace-check-buffer-spacetab whitespace-check-buffer-ateol] 10) #@57 Test and set the whitespace-mode in qualifying buffers. (defalias 'whitespace-check-whitespace-mode #[(&optional arg) "?\205 \204 \n\235\205 \304\211\207" [whitespace-mode arg major-mode whitespace-modes t] 2 (#$ . 8394)]) #@57 Toggle the check for leading space in the local buffer. (defalias 'whitespace-toggle-leading-check #[nil "\211?\302\303\203 \304\202 \305\"\210\205 \306 )\207" [whitespace-check-buffer-leading current-val message "Will%s check for leading space in buffer." "" " not" whitespace-buffer-leading] 4 (#$ . 8630) nil]) #@58 Toggle the check for trailing space in the local buffer. (defalias 'whitespace-toggle-trailing-check #[nil "\211?\302\303\203 \304\202 \305\"\210\205 \306 )\207" [whitespace-check-buffer-trailing current-val message "Will%s check for trailing space in buffer." "" " not" whitespace-buffer-trailing] 4 (#$ . 8958) nil]) #@61 Toggle the check for indentation space in the local buffer. (defalias 'whitespace-toggle-indent-check #[nil "\211?\303\304\203 \305\202 \306\"\210\205 \307\n!)\207" [whitespace-check-buffer-indent current-val whitespace-indent-regexp message "Will%s check for indentation space in buffer." "" " not" whitespace-buffer-search] 4 (#$ . 9291) nil]) #@66 Toggle the check for space-followed-by-TABs in the local buffer. (defalias 'whitespace-toggle-spacetab-check #[nil "\211?\303\304\203 \305\202 \306\"\210\205 \307\n!)\207" [whitespace-check-buffer-spacetab current-val whitespace-spacetab-regexp message "Will%s check for space-followed-by-TABs in buffer." "" " not" whitespace-buffer-search] 4 (#$ . 9651) nil]) #@61 Toggle the check for end-of-line space in the local buffer. (defalias 'whitespace-toggle-ateol-check #[nil "\211?\303\304\203 \305\202 \306\"\210\205 \307\n!)\207" [whitespace-check-buffer-ateol current-val whitespace-ateol-regexp message "Will%s check for end-of-line space in buffer." "" " not" whitespace-buffer-search] 4 (#$ . 10027) nil]) #@556 Find five different types of white spaces in buffer. These are: 1. Leading space (empty lines at the top of a file). 2. Trailing space (empty lines at the end of a file). 3. Indentation space (8 or more spaces, that should be replaced with TABS). 4. Spaces followed by a TAB. (Almost always, we never want that). 5. Spaces or TABS at the end of a line. Check for whitespace only if this buffer really contains a non-empty file and: 1. the major mode is one of the whitespace-modes, or 2. `whitespace-buffer' was explicitly called with a prefix argument. (defalias 'whitespace-buffer #[(&optional quiet) "\306\307 !\210\n\203W\310 \311V\203W\203W\312\313 \n\"\210\314 \210\315d!\210\316\306\211\317\320$\210\f\203E \203? 0\204W\321\322\313 \"\210\202W\323 \210\202W1\205L \324 2\205S \325 3\205\\ \3264!5\205e \3266!7\205n \3268!\306\n\3279:;<=>?\211@\206\226 >\206\226 =\206\226 <\206\226 ?\211\203\360 :\330@\205\244 \331>\205\256 \332>\333Q=\205\270 \334=\333Q<\205\302 \335<\333Q?\205\310 \336\337\340\260 ;<\205\324 \341>\205\332 \342@\205\340 \343=\205\346 \344?\205\354 \345\2609\3469!\210\347A!\203\350A!\210r\351A!q\210;\203A;c\2100\204 B\204 \352p\353\"\2100\204U\321\3549\355 \211C\2038\356CP\2029\327):$\210\202U0\204UD\327\232\204U\321\357:D#\210. )\207" [whitespace-error current-prefix-arg buffer-file-name whitespace-mode whitespace-auto-cleanup buffer-read-only nil whitespace-check-whitespace-mode buffer-size 0 whitespace-check-buffer-list buffer-name whitespace-tickle-timer overlay-recenter remove-overlays face whitespace-highlight message "Can't cleanup: %s is read-only" whitespace-cleanup-internal whitespace-buffer-leading whitespace-buffer-trailing whitespace-buffer-search "" " contains:\n" "Leading whitespace\n" "Indentation whitespace" "\n" "Space followed by Tab" "End-of-line whitespace" "Trailing whitespace\n" "\ntype `M-x whitespace-cleanup' to " "cleanup the file." "e" "i" "l" "s" "t" whitespace-update-modeline get-buffer kill-buffer get-buffer-create display-buffer t "Whitespaces: [%s%s] in %s" whitespace-unchecked-whitespaces "!" "%s %s" quiet whitespace-check-buffer-leading whitespace-check-buffer-trailing whitespace-check-buffer-indent whitespace-indent-regexp whitespace-check-buffer-spacetab whitespace-spacetab-regexp whitespace-check-buffer-ateol whitespace-ateol-regexp whitespace-this-modeline whitespace-filename whitespace-errmsg whitespace-ateol whitespace-spacetab whitespace-indent whitespace-trailing whitespace-leading whitespace-errbuf whitespace-silent whitespace-unchecked whitespace-clean-msg] 10 (#$ . 10386) nil]) #@41 Check the region for whitespace errors. (defalias 'whitespace-region #[(s e) "\212\214 }\210\302 *\207" [s e whitespace-buffer] 2 (#$ . 13049) "r"]) #@241 Cleanup the five different kinds of whitespace problems. It normally applies to the whole buffer, but in Transient Mark mode when the mark is active it applies to the region. See `whitespace-buffer' docstring for a summary of the problems. (defalias 'whitespace-cleanup #[nil "\203 \203 \302\303 \304 \"\207\305 \207" [transient-mark-mode mark-active whitespace-cleanup-region region-beginning region-end whitespace-cleanup-internal] 3 (#$ . 13206) nil]) (defalias 'whitespace-cleanup-internal #[(&optional region-only) "\306!\210 \205\233 \n\205\233 \307\310 \203% \311 \203% \312 \210\313\2035 \314 \2035 \315 \210\313\203G \316!\203G \317 \210\313\203\\ \316!\203\\ \320\321\"\210\313\203q \316 !\203q \320 \322\"\210\313\203~ \323!!\210\202\227 \"\204\224 !\203\217 \324\325!\210\202\224 \324\326 \"\210\327 \210\f\211+\207" [current-prefix-arg buffer-file-name whitespace-mode tab-width whitespace-tabwidth-saved whitespace-tabwidth whitespace-check-whitespace-mode nil 8 whitespace-buffer-leading whitespace-buffer-leading-cleanup t whitespace-buffer-trailing whitespace-buffer-trailing-cleanup whitespace-buffer-search whitespace-indent-cleanup whitespace-buffer-cleanup " " "" whitespace-cleanup-internal message "The region is now clean" "%s is now clean" whitespace-update-modeline whitespace-any whitespace-check-buffer-leading whitespace-check-buffer-trailing whitespace-check-buffer-indent whitespace-indent-regexp whitespace-check-buffer-spacetab whitespace-spacetab-regexp whitespace-check-buffer-ateol whitespace-ateol-regexp region-only whitespace-silent] 3]) #@35 Whitespace cleanup on the region. (defalias 'whitespace-cleanup-region #[(s e) "\212\214 }\210\302\303!\210)\304\303!)\207" [s e whitespace-cleanup-internal t whitespace-buffer] 2 (#$ . 14834) "r"]) #@120 Return t if the current buffer has leading newline characters. If highlighting is enabled, highlight these characters. (defalias 'whitespace-buffer-leading #[nil "\212eb\210\300\301w\210o?\205 \302e`\"\210\303)\207" ["\n" nil whitespace-highlight-the-space t] 3 (#$ . 15041)]) #@60 Remove any leading newline characters from current buffer. (defalias 'whitespace-buffer-leading-cleanup #[nil "\212eb\210\300\301w\210e`|)\207" ["\n" nil] 2 (#$ . 15325)]) #@127 Return t if the current buffer has extra trailing newline characters. If highlighting is enabled, highlight these characters. (defalias 'whitespace-buffer-trailing #[nil "\212db\210\300\301x\210\301y\210m?\205 \302`d\"\210\303)\207" ["\n" nil whitespace-highlight-the-space t] 3 (#$ . 15504)]) #@63 Remove extra trailing newline characters from current buffer. (defalias 'whitespace-buffer-trailing-cleanup #[nil "\212db\210\300\301x\210m?\205 \301y\210`d|)\207" ["\n" nil] 2 (#$ . 15805)]) #@41 Search for any given whitespace REGEXP. (defalias 'whitespace-buffer-search #[(regexp) "\300\301\302\217\207" [nil (byte-code "\303\211\212eb\210\304\n\303\305#\203 \306\307\224\307\225\"\210\307\224 B\202 ) \205) \310\311 \237\"*\207" [inhibit-quit whitespace-retval regexp nil re-search-forward t whitespace-highlight-the-space 0 format " %s"] 5) ((quit (byte-code "\301\302\303!\207" [quit-flag t eval (ignore nil)] 2)))] 3 (#$ . 16004)]) #@75 Search for any given whitespace REGEXP and replace it with the NEWREGEXP. (defalias 'whitespace-buffer-cleanup #[(regexp newregexp) "\212eb\210\302\303\304#\205 \305 !\210\202 )\207" [regexp newregexp re-search-forward nil t replace-match] 4 (#$ . 16458)]) #@75 Search for 8/more spaces at the start of a line and replace it with tabs. (defalias 'whitespace-indent-cleanup #[nil "\212eb\210\303\304\305#\205 i\305\306\224`|\210\nj\210*\202 )\207" [whitespace-indent-regexp indent-tabs-mode column re-search-forward nil t 0] 4 (#$ . 16724)]) #@67 Return the list of whitespaces whose testing has been suppressed. (defalias 'whitespace-unchecked-whitespaces #[nil "?\205 \306 ?\205\f \307\n?\205 \310?\205 \311\f?\205 \312\260\211\313\232?\205) )\207" [whitespace-check-buffer-ateol whitespace-check-buffer-indent whitespace-check-buffer-leading whitespace-check-buffer-spacetab whitespace-check-buffer-trailing unchecked-spaces "e" "i" "l" "s" "t" ""] 6 (#$ . 17014)]) #@99 Update mode line with whitespace errors. Also with whitespaces whose testing has been turned off. (defalias 'whitespace-update-modeline #[(&optional whitespace-err) "\205) \304\n\203 \n\305\232\204 \n\306 \211\203 \307Q) \205&