%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/emacs-lisp/
Upload File :
Create Path :
Current File : //usr/local/share/emacs/27.2/lisp/emacs-lisp/warnings.elc

;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; 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: ")) (#$ . 503))
(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)) (#$ . 1327))
(byte-code "\300\301\302\"\210\303\302\304\305\306\307\310\311\312\313&	\210\300\314\315\"\210\303\315\304\316\306\307\310\317\312\313&	\210\303\320\321\322\306\307\310\323\312\313&	\210\303\324\321\325\306\307\310\326\312\313&	\207" [defvaralias display-warning-minimum-level warning-minimum-level custom-declare-variable :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" log-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)) 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 (#$ . 3831))
#@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 (#$ . 4244))
(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 (#$ . 4743))
#@55 Value to use for `fill-column' when filling warnings.
(defvar warning-fill-column 78 (#$ . 4867))
#@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)") (#$ . 4972))
#@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 (#$ . 5226)])
#@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 (#$ . 5413)])
#@1171 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',
`warning-fill-prefix', and `warning-fill-column' for additional
programming features.
(defalias 'display-warning #[(type message &optional level buffer-name) "\204	\204\306 \204\307\n\f
$\207\f\204\310
\204 \311\f\"\236\203-\f\"\236A\312\f!\312#!W\206\227\313\n$\"\206\227\n:\203J\n@\202K\n%\314
!\211&\206Y\315
!'\f(\236)\316\317!\203k\317\202l\320\321\211*+r'q\210&\204\215\316\322!\203\207\322 \210\323\211,-db\210.\203\252.9\203\252\324 .\323=\204\250. \210.\323/n\204\265 \210`*0\203\3050\f)\")\325)A@\3251%\"\"\261\210 \2102\203\364\326\327\"\204\3642345\330*`\"\210*`+)\331.!\203
\332.!'=\203
.b\210)\333)8\203\333)8 \210	\203;r'q\210\212+b\210n\2030\334u\210\303\335*`{\"*\202\225\306 \203`\204`\303\335r'q\210\212+b\210n\203W\334u\210*`{*\"\202\225\312\f!\3126!W\206\225\313\n7\"\206\225\336'!8\331.!\203\221\332.!'=\203\221\3378.\"\210\340\341!).\207" [after-init-time noninteractive type message level buffer-name daemonp delay-warning :warning "*Warnings*" warning-numeric-level warning-suppress-p get-buffer get-buffer-create fboundp newline #[nil "\300c\207" ["\n"] 1] nil special-mode t point-marker format string-match "\n" fill-region markerp marker-buffer 2 -1 "%s" display-buffer set-window-start sit-for 0 warning-level-aliases warning-minimum-log-level warning-suppress-log-types 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 warning-fill-column fill-column fill-prefix warning-minimum-level warning-suppress-types window] 6 (#$ . 5856)])
#@780 Display a warning message made from (format-message MESSAGE ARGS...).
\<special-mode-map>
Aside from generating the message with `format-message',
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-message] 6 (#$ . 8662)])
#@224 Display a warning message made from (format-message MESSAGE ARGS...).
Aside from generating the message with `format-message',
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-message] 6 (#$ . 9604)])
(provide 'warnings)

Zerion Mini Shell 1.0