%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/emacs-lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/emacs-lisp/backtrace.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\304\305\306\307\310\311%\210\312\313\314\315\316DD\317\320\321\310\305\322\323& \210\312\324\314\315\325DD\326\320\327\310\305\322\323& \207" [require find-func help-mode lisp-mode custom-declare-group backtrace nil "Viewing of Elisp backtraces." :group lisp custom-declare-variable backtrace-fontify funcall function #[0 "\300\207" [t] 1] "If non-nil, fontify Backtrace buffers.\nSet to nil to disable fontification, which may be necessary in\norder to debug the code that does fontification." :type boolean :version "27.1" backtrace-line-length #[0 "\300\207" [5000] 1] "Target length for lines in Backtrace buffers.\nBacktrace mode will attempt to abbreviate printing of backtrace\nframes to make them shorter than this, but success is not\nguaranteed. If set to nil or zero, Backtrace mode will not\nabbreviate the forms it prints." integer] 10) #@74 compiler-macro for inlining `backtrace-frame-p'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-p--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-p (and (memq (type-of cl-x) cl-struct-backtrace-frame-tags) t)) nil] 9 (#$ . 1311)]) (put 'backtrace-frame-p 'compiler-macro 'backtrace-frame-p--cmacro) #@13 (fn CL-X) (defalias 'backtrace-frame-p #[257 "\301!>\205 \302\207" [cl-struct-backtrace-frame-tags type-of t] 3 (#$ . 1675)]) (byte-code "\300\301\302\303#\304\305\306\301#\207" [function-put backtrace-frame-p side-effect-free error-free put backtrace-frame cl-deftype-satisfies] 5) #@78 compiler-macro for inlining `backtrace-frame-evald'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-evald--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-evald (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 1))) nil] 9 (#$ . 1969)]) (put 'backtrace-frame-evald 'compiler-macro 'backtrace-frame-evald--cmacro) #@66 Access slot "evald" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-evald #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 1] 5 (#$ . 2403)]) (byte-code "\300\301\302\303#\300\207" [function-put backtrace-frame-evald side-effect-free t] 4) #@76 compiler-macro for inlining `backtrace-frame-fun'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-fun--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-fun (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 2))) nil] 9 (#$ . 2763)]) (put 'backtrace-frame-fun 'compiler-macro 'backtrace-frame-fun--cmacro) #@64 Access slot "fun" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-fun #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 2] 5 (#$ . 3187)]) (byte-code "\300\301\302\303#\300\207" [function-put backtrace-frame-fun side-effect-free t] 4) #@77 compiler-macro for inlining `backtrace-frame-args'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-args--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-args (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 3))) nil] 9 (#$ . 3541)]) (put 'backtrace-frame-args 'compiler-macro 'backtrace-frame-args--cmacro) #@65 Access slot "args" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-args #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 3] 5 (#$ . 3970)]) (byte-code "\300\301\302\303#\300\207" [function-put backtrace-frame-args side-effect-free t] 4) #@78 compiler-macro for inlining `backtrace-frame-flags'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-flags--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-flags (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 4))) nil] 9 (#$ . 4327)]) (put 'backtrace-frame-flags 'compiler-macro 'backtrace-frame-flags--cmacro) #@66 Access slot "flags" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-flags #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 4] 5 (#$ . 4761)]) (byte-code "\300\301\302\303#\300\207" [function-put backtrace-frame-flags side-effect-free t] 4) #@79 compiler-macro for inlining `backtrace-frame-locals'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-locals--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-locals (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 5))) nil] 9 (#$ . 5121)]) (put 'backtrace-frame-locals 'compiler-macro 'backtrace-frame-locals--cmacro) #@67 Access slot "locals" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-locals #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 5] 5 (#$ . 5560)]) (byte-code "\300\301\302\303#\300\207" [function-put backtrace-frame-locals side-effect-free t] 4) #@79 compiler-macro for inlining `backtrace-frame-buffer'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-buffer--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-buffer (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 6))) nil] 9 (#$ . 5923)]) (put 'backtrace-frame-buffer 'compiler-macro 'backtrace-frame-buffer--cmacro) #@67 Access slot "buffer" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-buffer #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 6] 5 (#$ . 6362)]) (byte-code "\300\301\302\303#\300\207" [function-put backtrace-frame-buffer side-effect-free t] 4) #@76 compiler-macro for inlining `backtrace-frame-pos'. (fn CL-WHOLE-ARG CL-X) (defalias 'backtrace-frame-pos--cmacro #[514 "\300\301\302\303\211\211&\207" [cl--defsubst-expand (cl-x) (cl-block backtrace-frame-pos (progn (or (backtrace-frame-p cl-x) (signal 'wrong-type-argument (list 'backtrace-frame cl-x))) (aref cl-x 7))) nil] 9 (#$ . 6725)]) (put 'backtrace-frame-pos 'compiler-macro 'backtrace-frame-pos--cmacro) #@64 Access slot "pos" of `backtrace-frame' struct CL-X. (fn CL-X) (defalias 'backtrace-frame-pos #[257 "\301!>\204 \302\303\304D\"\210\211\305H\207" [cl-struct-backtrace-frame-tags type-of signal wrong-type-argument backtrace-frame 7] 5 (#$ . 7149)]) (byte-code "\300\301\302\303#\304\305\306\"\207" [function-put backtrace-frame-pos side-effect-free t defalias copy-backtrace-frame copy-sequence] 4) #@122 compiler-macro for inlining `backtrace-make-frame'. (fn CL-WHOLE &cl-quote &key EVALD FUN ARGS FLAGS LOCALS BUFFER POS) (defalias 'backtrace-make-frame--cmacro #[385 "\300\301\"A@\300\302\"A@\300\303\"A@\300\304\"A@\300\305\"A@\300\306\"A@\300\307\"A@\211\203Y \211@\310>\203A \211AA\262\202. \311 >A@\203P \312\262\202. \313\314@\"\210\202. \210\315\316\317\312\f\312\f\f\f\f\f\f\f&\f\207" [plist-member :evald :fun :args :flags :locals :buffer :pos (:evald :fun :args :flags :locals :buffer :pos :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:evald :fun :args :flags :locals :buffer :pos)" cl--defsubst-expand (evald fun args flags locals buffer pos) (cl-block backtrace-make-frame (record 'backtrace-frame evald fun args flags locals buffer pos))] 22 (#$ . 7558)]) (put 'backtrace-make-frame 'compiler-macro 'backtrace-make-frame--cmacro) #@102 Constructor for objects of type `backtrace-frame'. (fn &key EVALD FUN ARGS FLAGS LOCALS BUFFER POS) (defalias 'backtrace-make-frame #[128 "\300\301\"A@\300\302\"A@\300\303\"A@\300\304\"A@\300\305\"A@\300\306\"A@\300\307\"A@\211\203Y \211@\310>\203A \211AA\262\202. \311 >A@\203P \312\262\202. \313\314@\"\210\202. \210\315\316&\207" [plist-member :evald :fun :args :flags :locals :buffer :pos (:evald :fun :args :flags :locals :buffer :pos :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:evald :fun :args :flags :locals :buffer :pos)" record backtrace-frame] 17 (#$ . 8465)]) (byte-code "\300\301\302\303#\304\305\306\307\310\306\311\312\305\303& \207" [function-put backtrace-make-frame side-effect-free t cl-struct-define backtrace-frame nil cl-structure-object record ((cl-tag-slot) (evald) (fun) (args) (flags) (locals) (buffer) (pos)) cl-struct-backtrace-frame-tags] 11) #@412 Collect all frames of current backtrace into a list. The list will contain objects made by CONSTRUCTOR, which defaults to `backtrace-make-frame' and which, if provided, should be the constructor of a structure which includes `backtrace-frame'. If non-nil, BASE should be a function, and frames before its nearest activation frame are discarded. (fn &optional BASE &key (CONSTRUCTOR #\='backtrace-make-frame)) (defalias 'backtrace-get-frames #[384 "\302\303\"\206 \304A@\211\2035 \211@\305>\203 \211AA\262\202 \306>A@\203, \307\262\202 \310\311@\"\210\202 \210\307C\312\313\314\315\316\317\"\320\"\321\322%\206O \323\"\210\211\242\237\240\210\242G\324\211W\203\344 \211\211\2428\324V\203\212 \325! >\204{ \326\327\330D\"\210\211\211\331\332 \206\206 \323\"I\266\203\333 \325! >\204\235 \326\327\330D\"\210\211\333H\334>\203\333 r\211A\262\242q\210\325! >\204\275 \326\327\330D\"\210\211\211\335pI\266\325! >\204\323 \326\327\330D\"\210\211\211\336`I\266)\266\211T\262\202[ \266\242\266\202\207" [eval-buffer-list cl-struct-backtrace-frame-tags plist-member :constructor (nil backtrace-make-frame) (:constructor :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:constructor)" mapbacktrace make-byte-code 1028 "\301\300\302\303\304\305 &\301\242B\240\207" vconcat vector [:evald :fun :args :flags] 14 "\n\n(fn EVALD FUN ARGS FLAGS)" backtrace-get-frames 0 type-of signal wrong-type-argument backtrace-frame 5 backtrace--locals 2 (eval-buffer eval-region) 6 7] 15 (#$ . 9412)]) (define-button-type 'backtrace-buffer-pos 'action 'backtrace--pop-to-buffer-pos 'help-echo "mouse-2, RET: Show reading position") #@70 Pop to the buffer and position for the BUTTON at point. (fn BUTTON) (defalias 'backtrace--pop-to-buffer-pos #[257 "\300\301\"\300\302\"\303!\203 \304!\210ed^]b\202 \305\306!\207" [button-get backtrace-buffer backtrace-pos buffer-live-p pop-to-buffer message "Buffer has been killed"] 6 (#$ . 11106)]) #@115 Expressions to fontify in Backtrace mode. Fontify these in addition to the expressions Emacs Lisp mode fontifies. (defconst backtrace--font-lock-keywords '((backtrace--match-ellipsis-in-string (1 'button prepend))) (#$ . 11422)) #@53 Default expressions to highlight in Backtrace mode. (defconst backtrace-font-lock-keywords (append lisp-el-font-lock-keywords-for-backtraces backtrace--font-lock-keywords) (#$ . 11657)) #@48 Subdued level highlighting for Backtrace mode. (defconst backtrace-font-lock-keywords-1 (append lisp-el-font-lock-keywords-for-backtraces-1 backtrace--font-lock-keywords) (#$ . 11849)) #@46 Gaudy level highlighting for Backtrace mode. (defconst backtrace-font-lock-keywords-2 (append lisp-el-font-lock-keywords-for-backtraces-2 backtrace--font-lock-keywords) (#$ . 12040)) #@14 (fn BOUND) (defalias 'backtrace--match-ellipsis-in-string #[257 "\300\301\302#\205 \303`\304Z\305\"\205 \303`\306Z\305\"\205 \303`\307Z\305\"\207" [re-search-forward "\\(\\.\\.\\.\\)\"" t get-text-property 2 cl-print-ellipsis 3 4] 5 (#$ . 12229)]) (defalias 'backtrace--xref-backend #[0 "\300\207" [elisp] 1]) #@109 Stack frames displayed in the current Backtrace buffer. This should be a list of `backtrace-frame' objects. (defvar backtrace-frames nil (#$ . 12552)) (make-variable-buffer-local 'backtrace-frames) #@133 A plist describing how to render backtrace frames. Possible entries are :show-flags, :show-locals, :print-circle and :print-gensym. (defvar backtrace-view nil (#$ . 12757)) (make-variable-buffer-local 'backtrace-view) #@194 Function for inserting a header for the current Backtrace buffer. If nil, no header will be created. Note that Backtrace buffers are fontified as in Emacs Lisp Mode, the header text included. (defvar backtrace-insert-header-function nil (#$ . 12982)) (make-variable-buffer-local 'backtrace-insert-header-function) #@102 Hook run before reverting a Backtrace buffer. This is commonly used to recompute `backtrace-frames'. (defvar backtrace-revert-hook nil (#$ . 13304)) #@64 Function used to print values in the current Backtrace buffer. (defvar backtrace-print-function 'cl-prin1 (#$ . 13459)) (make-variable-buffer-local 'backtrace-print-function) #@434 Abnormal hook used to jump to the source code for the current frame. Each hook function is called with no argument, and should return non-nil if it is able to switch to the buffer containing the source code. Execution of the hook will stop if one of the functions returns non-nil. When adding a function to this hook, you should also set the :source-available flag for the backtrace frames where the source code location is known. (defvar backtrace-goto-source-functions nil (#$ . 13641)) (make-variable-buffer-local 'backtrace-goto-source-functions) #@44 Local keymap for `backtrace-mode' buffers. (defvar backtrace-mode-map (byte-code "\302!\303 \"\210\304\305\306#\210\304\307\310#\210\304\311\312#\210\304\313\314#\210\304\315\316#\210\304\317\320#\210\304\321\322#\210\304\323\324#\210\304\325\326#\210\304\327\330#\210\304\331\332#\210\304\333\334#\210\335\336\337\340$\210\211\207" [special-mode-map button-buffer-map copy-keymap set-keymap-parent define-key "n" backtrace-forward-frame "p" backtrace-backward-frame "v" backtrace-toggle-locals "#" backtrace-toggle-print-circle ":" backtrace-toggle-print-gensym "s" backtrace-goto-source " " backtrace-help-follow-symbol "+" backtrace-multi-line "-" backtrace-single-line "." backtrace-expand-ellipses [follow-link] mouse-face [mouse-2] mouse-select-window easy-menu-do-define nil "" ("Backtrace" ["Next Frame" backtrace-forward-frame :help "Move cursor forwards to the start of a backtrace frame"] ["Previous Frame" backtrace-backward-frame :help "Move cursor backwards to the start of a backtrace frame"] "--" ["Show Variables" backtrace-toggle-locals :style toggle :active (backtrace-get-index) :selected (plist-get (backtrace-get-view) :show-locals) :help "Show or hide the local variables for the frame at point"] ["Show Circular Structures" backtrace-toggle-print-circle :style toggle :active (backtrace-get-index) :selected (plist-get (backtrace-get-view) :print-circle) :help "Condense or expand shared or circular structures in the frame at point"] ["Show Uninterned Symbols" backtrace-toggle-print-gensym :style toggle :active (backtrace-get-index) :selected (plist-get (backtrace-get-view) :print-gensym) :help "Toggle unique printing of uninterned symbols in the frame at point"] ["Expand \"...\"s" backtrace-expand-ellipses :help "Expand all the abbreviated forms in the current frame"] ["Show on Multiple Lines" backtrace-multi-line :help "Use line breaks and indentation to make a form more readable"] ["Show on Single Line" backtrace-single-line] "--" ["Go to Source" backtrace-goto-source :active (and (backtrace-get-index) (plist-get (backtrace-frame-flags (nth (backtrace-get-index) backtrace-frames)) :source-available)) :help "Show the source code for the current frame"] ["Help for Symbol" backtrace-help-follow-symbol :help "Show help for symbol at point"] ["Describe Backtrace Mode" describe-mode :help "Display documentation for backtrace-mode"])] 6) (#$ . 14200)) #@57 Width in characters of the flags for a backtrace frame. (defconst backtrace--flags-width 2 (#$ . 16612)) #@167 Return the index of the backtrace frame at POS. The value is an index into `backtrace-frames', or nil. POS, if omitted or nil, defaults to point. (fn &optional POS) (defalias 'backtrace-get-index #[256 "\300\206 `\301\"\207" [get-text-property backtrace-index] 4 (#$ . 16724)]) (put 'backtrace-get-index 'byte-optimizer 'byte-compile-inline-expand) #@112 Return the section of a backtrace frame at POS. POS, if omitted or nil, defaults to point. (fn &optional POS) (defalias 'backtrace-get-section #[256 "\300\206 `\301\"\207" [get-text-property backtrace-section] 4 (#$ . 17083)]) (put 'backtrace-get-section 'byte-optimizer 'byte-compile-inline-expand) #@117 Return the view plist of the backtrace frame at POS. POS, if omitted or nil, defaults to point. (fn &optional POS) (defalias 'backtrace-get-view #[256 "\300\206 `\301\"\207" [get-text-property backtrace-view] 4 (#$ . 17393)]) (put 'backtrace-get-view 'byte-optimizer 'byte-compile-inline-expand) #@124 Return the backtrace form data for the form printed at POS. POS, if omitted or nil, defaults to point. (fn &optional POS) (defalias 'backtrace-get-form #[256 "\300\206 `\301\"\207" [get-text-property backtrace-form] 4 (#$ . 17699)]) (put 'backtrace-get-form 'byte-optimizer 'byte-compile-inline-expand) #@129 Return the beginning position of the frame at POS in the buffer. POS, if omitted or nil, defaults to point. (fn &optional POS) (defalias 'backtrace-get-frame-start #[256 "\211\206 `eU\204&