Server IP : 111.118.215.189 / Your IP : 13.59.31.221 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/emacs-lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:05 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp/warnings.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'warnings nil "Log and display warnings." :version "22.1" :group 'lisp) #@633 List of severity level definitions for `display-warning'. Each element looks like (LEVEL STRING FUNCTION) and defines LEVEL as a severity level. STRING specifies the description of this level. STRING should use `%s' to specify where to put the warning type information, or it can omit the `%s' so as not to include that information. The optional FUNCTION, if non-nil, is a function to call with no arguments, to get the user's attention. The standard levels are :emergency, :error, :warning and :debug. See `display-warning' for documentation of their meanings. Level :debug is ignored by default (see `warning-minimum-level'). (defvar warning-levels '((:emergency "Emergency%s: " ding) (:error "Error%s: ") (:warning "Warning%s: ") (:debug "Debug%s: ")) (#$ . 657)) (put 'warning-levels 'risky-local-variable t) #@218 Alist of aliases for severity levels for `display-warning'. Each element looks like (ALIAS . LEVEL) and defines ALIAS as equivalent to LEVEL. LEVEL must be defined in `warning-levels'; it may not itself be an alias. (defvar warning-level-aliases '((emergency . :emergency) (error . :error) (warning . :warning) (notice . :warning) (info . :warning) (critical . :emergency) (alarm . :emergency)) (#$ . 1481)) (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\312\313\301\"\210\300\314\302\315\304\305\306\316\310\311& \210\312\317\314\"\210\300\320\321\322\304\305\306\323\310\311& \210\300\324\321\325\304\305\306\326\310\311& \207" [custom-declare-variable warning-minimum-level :warning "Minimum severity level for displaying the warning buffer.\nIf a warning's severity level is lower than this,\nthe warning is logged in the warnings buffer, but the buffer\nis not immediately displayed. See also `warning-minimum-log-level'." :group warnings :type (choice (const :emergency) (const :error) (const :warning) (const :debug)) :version "22.1" defvaralias display-warning-minimum-level warning-minimum-log-level "Minimum severity level for logging a warning.\nIf a warning severity level is lower than this,\nthe warning is completely ignored.\nValue must be lower or equal than `warning-minimum-level',\nbecause warnings not logged aren't displayed either." (choice (const :emergency) (const :error) (const :warning) (const :debug)) log-warning-minimum-level warning-suppress-log-types nil "List of warning types that should not be logged.\nIf any element of this list matches the TYPE argument to `display-warning',\nthe warning is completely ignored.\nThe element must match the first elements of TYPE.\nThus, (foo bar) as an element matches (foo bar)\nor (foo bar ANYTHING...) as TYPE.\nIf TYPE is a symbol FOO, that is equivalent to the list (FOO),\nso only the element (FOO) will match it." (repeat (repeat symbol)) warning-suppress-types "List of warning types not to display immediately.\nIf any element of this list matches the TYPE argument to `display-warning',\nthe warning is logged nonetheless, but the warnings buffer is\nnot immediately displayed.\nThe element must match an initial segment of the list TYPE.\nThus, (foo bar) as an element matches (foo bar)\nor (foo bar ANYTHING...) as TYPE.\nIf TYPE is a symbol FOO, that is equivalent to the list (FOO),\nso only the element (FOO) will match it.\nSee also `warning-suppress-log-types'." (repeat (repeat symbol))] 10) #@358 Function to generate warning prefixes. This function, if non-nil, is called with two arguments, the severity level and its entry in `warning-levels', and should return the entry that should actually be used. The warnings buffer is current when this function is called and the function can insert text in it. This text becomes the beginning of the warning. (defvar warning-prefix-function nil (#$ . 3985)) #@408 Non-nil means treat multiple `display-warning' calls as a series. A marker indicates a position in the warnings buffer which is the start of the current series; it means that additional warnings in the same buffer should not move point. If t, the next warning begins a series (and stores a marker here). A symbol with a function definition is like t, except also call that function before the next warning. (defvar warning-series nil (#$ . 4398)) (put 'warning-series 'risky-local-variable t) #@74 Non-nil means fill each warning text using this string as `fill-prefix'. (defvar warning-fill-prefix nil (#$ . 4897)) #@189 Format for displaying the warning type in the warning message. The result of formatting the type this way gets included in the message under the control of the string in `warning-levels'. (defvar warning-type-format (purecopy " (%s)") (#$ . 5022)) #@63 Return a numeric measure of the warning severity level LEVEL. (defalias 'warning-numeric-level #[(level) " \236\211 >\211G*\207" [level warning-levels elt link] 3 (#$ . 5276)]) #@119 Non-nil if a warning with type TYPE should be suppressed. SUPPRESS-LIST is the list of kinds of warnings to suppress. (defalias 'warning-suppress-p #[(type suppress-list) "\306 \306\211\203] @\f9\203( \n:\203V \n@\f=\203V \nA\204V \307\202V \f\n\307 \203O @@\232\204A \306 A A\211\2045 \203U \307+A\211\204\n *)\207" [some-match suppress-list elt --dolist-tail-- type match nil t tem2 tem1] 4 (#$ . 5463)]) #@1147 Display a warning message, MESSAGE. TYPE is the warning type: either a custom group name (a symbol), or a list of symbols whose first element is a custom group name. (The rest of the symbols represent subcategories, for warning purposes only, and you can use whatever symbols you like.) LEVEL should be either :debug, :warning, :error, or :emergency (but see `warning-minimum-level' and `warning-minimum-log-level'). Default is :warning. :emergency -- a problem that will seriously impair Emacs operation soon if you do not attend to it promptly. :error -- data or circumstances that are inherently wrong. :warning -- data or circumstances that are not inherently wrong, but raise suspicion of a possible problem. :debug -- info for debugging only. BUFFER-NAME, if specified, is the name of the buffer for logging the warning. By default, it is `*Warnings*'. If this function has to create the buffer, it disables undo in the buffer. See the `warnings' custom group for user customization features. See also `warning-series', `warning-prefix-function' and `warning-fill-prefix' for additional programming features. (defalias 'display-warning #[(type message &optional level buffer-name) "\204 \306 \204\f \307\n\236\203 \n\236A\310!\310!W\206m\311\f \"\206m\f:\2032 \f@\2023 \f!\312 !\211\"\206A \313 !#$\236%\314\211&'r#q\210\"\204b \315 \210\316\211()db\210*\203 *9\203 \317 *\316=\204} * \210*\316+n\204\211 \320 \210`&,\203\231 ,%\"%\321%A@\321-!\"\"\261\210\320 \210.\203\310 \322\323\"\204\310 .\324/0\325&`\"\210*`')\326*!\203\341 \327*!#=\203\341 *b\210)\330%8\203\357 \330%8 \2101\203r#q\210\212'b\210n\203\331u\210\332\333&`{\"*\202k\334 \20362\2046\332\333r#q\210\212'b\210n\203-\331u\210&`{*\"\202k\310!\3103!W\206k\311\f4\"\206k\335#!5\326*!\203g\327*!#=\203g\3365*\"\210\337\340!).\207" [level buffer-name warning-level-aliases warning-minimum-log-level type warning-suppress-log-types :warning "*Warnings*" warning-numeric-level warning-suppress-p get-buffer get-buffer-create nil special-mode t point-marker newline format string-match "\n" 78 fill-region markerp marker-buffer 2 -1 message "%s" daemonp display-buffer set-window-start sit-for 0 typename old buffer warning-levels level-info start end buffer-read-only buffer-undo-list warning-series inhibit-read-only warning-prefix-function warning-type-format warning-fill-prefix fill-column fill-prefix noninteractive after-init-time warning-minimum-level warning-suppress-types window] 6 (#$ . 5906)]) #@744 Display a warning message made from (format MESSAGE ARGS...). Aside from generating the message with `format', this is equivalent to `display-warning'. TYPE is the warning type: either a custom group name (a symbol), or a list of symbols whose first element is a custom group name. (The rest of the symbols represent subcategories and can be whatever you like.) LEVEL should be either :debug, :warning, :error, or :emergency (but see `warning-minimum-level' and `warning-minimum-log-level'). :emergency -- a problem that will seriously impair Emacs operation soon if you do not attend to it promptly. :error -- invalid data or circumstances. :warning -- suspicious data or circumstances. :debug -- info for debugging only. (defalias 'lwarn #[(type level message &rest args) "\304\305\306 \n##\207" [type message args level display-warning apply format] 6 (#$ . 8507)]) #@208 Display a warning message made from (format MESSAGE ARGS...). Aside from generating the message with `format', this is equivalent to `display-warning', using `emacs' as the type and `:warning' as the level. (defalias 'warn #[(message &rest args) "\302\303\304\305 #\"\207" [message args display-warning emacs apply format] 6 (#$ . 9405)]) (provide 'warnings)