%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/mail/ |
Current File : //usr/local/share/emacs/27.2/lisp/mail/reporter.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@518 Interface variable controlling prompting for problem summary. When non-nil, `reporter-submit-bug-report' prompts the user for a brief summary of the problem, and puts this summary on the Subject: line. If this variable is a string, that string is used as the prompt string. Default behavior is to not prompt (i.e. nil). If you want reporter to prompt, you should `let' bind this variable before calling `reporter-submit-bug-report'. Note that this variable is not buffer-local so you should never just `setq' it. (defvar reporter-prompt-for-summary-p nil (#$ . 409)) #@566 Interface variable controlling compacting of list values. When non-nil, this must be a list of variable symbols. When a variable containing a list value is formatted in the bug report mail buffer, it normally is compacted so that its value fits one the fewest number of lines. If the variable's symbol appears in this list, its value is printed in a more verbose style, specifically, one elemental sexp per line. Note that this variable is not buffer-local so you should never just `setq' it. If you want to changes its default value, you should `let' bind it. (defvar reporter-dont-compact-list nil (#$ . 987)) #@184 Buffer to retrieve variable's value from. This is necessary to properly support the printing of buffer-local variables. Current buffer will always be the mail buffer being composed. (defvar reporter-eval-buffer nil (#$ . 1610)) #@57 The automatically created initial text of a bug report. (defvar reporter-initial-text nil (#$ . 1845)) (make-variable-buffer-local 'reporter-initial-text) (defvar reporter-status-message nil) (defvar reporter-status-count nil) #@39 Periodically output a status message. (defalias 'reporter-update-status #[nil "\302\246\303U\203 \304\305 \"\210 \306PT\211\207" [reporter-status-count reporter-status-message 10 0 message "%s" "."] 3 (#$ . 2078)]) #@22 Pretty print a list. (defalias 'reporter-beautify-list #[(maxwidth compact-p) "\306 \210\307\310\211\211\211\3111i \312\313!\210\307\f\203d `\314`\313\"\211b\210 iX\203T \203: b\210\315 \210\310\202 b\210\316 \"b\210\317\313!\210 \203 \315 \210\202 \203^ `\202 \315 \210\202 \3070\202k \210\n-\207" [here indent-p indent-enclosing-p linebreak move maxwidth reporter-update-status t nil (error) down-list 1 scan-sexps newline-and-indent reporter-beautify-list forward-sexp compact-p] 6 (#$ . 2304)]) #@52 A better lisp indentation style for bug reporting. (defalias 'reporter-lisp-indent #[(indent-point state) "\212A@Tb\210i)\207" [state] 1 (#$ . 2833)]) #@101 Pretty-print the value of the variable in symbol VARSYM. MAILBUF is the mail buffer being composed. (defalias 'reporter-dump-variable #[(varsym mailbuf) "\306 \210\3071\220 \3101y rq\210 J)\311 !\312\313 S`\314 \315\316>\203. \317\202C <\2038 \320\202C 9\203B \320\202C \317\321!\261\210\322 \210\203s <\203s iX\203s \212 >?\323\nb\210\324\"\210+\325c-00\2070\210rq\210\212\326\327!\210\330\210\311 !\315\261*\207\210\331\317!\207" [reporter-eval-buffer varsym here maxwidth print-escape-newlines sym reporter-update-status (error) (void-variable) symbol-name t window-width " " " " (t nil) "" "'" prin1-to-string lisp-indent-line reporter-lisp-indent reporter-beautify-list "\n" mail-position-on-field "X-Reporter-Void-Vars-Found" nil error val reporter-dont-compact-list lisp-indent-function compact-p mailbuf] 6 (#$ . 2992)]) #@1136 Dump the state of the mode specific variables. PKGNAME contains the name of the mode as it will appear in the bug report (you must explicitly concat any version numbers). VARLIST is the list of variables to dump. Each element in VARLIST can be a variable symbol, or a cons cell. If a symbol, this will be passed to `reporter-dump-variable' for insertion into the mail buffer. If a cons cell, the car must be a variable symbol and the cdr must be a function which will be `funcall'd with arguments the symbol and the mail buffer being composed. Use this to write your own custom variable value printers for specific variables. Note that the global variable `reporter-eval-buffer' will be bound to the buffer in which `reporter-submit-bug-report' was invoked. If you want to print the value of a buffer local variable, you should wrap the `eval' call in your custom printer inside a `set-buffer' (and probably a `save-excursion'). `reporter-dump-variable' handles this properly. PRE-HOOKS is run after the Emacs version and PKGNAME are inserted, but before the VARLIST is dumped. POST-HOOKS is run after the VARLIST is dumped. (defalias 'reporter-dump-state #[(pkgname varlist pre-hooks post-hooks) "p\211q\210\306\307 \310\261\210 \203 \311 \310\261\210\312\313!\210\n\203Z \314c\210\3151O p\316\317!rq\210\320 \210\321 \210\322c\210\323 \210\324\325\n\"\210\323 \210\326c\210)\327!*0\202Y \330\331\332 \"\333\261)\210\312\334!)\207" [buffer pkgname varlist elbuf mailbuf fault "Emacs : " emacs-version "\n" "Package: " run-hooks pre-hooks "\ncurrent state:\n==============\n" (error) get-buffer-create " *tmp-reporter-buffer*" emacs-lisp-mode erase-buffer "(setq\n" lisp-indent-line mapc #[(varsym-or-cons-cell) "\242\206 \243\206\f \304 \n\"*\207" [varsym-or-cons-cell printer varsym mailbuf reporter-dump-variable] 3] ")\n" insert-buffer-substring "State could not be dumped due to the following error:\n\n" format "%s" "\n\nYou should still send this bug report." post-hooks] 5 (#$ . 3867)]) #@129 Compose the outgoing mail buffer. Return the selected paradigm, with the current buffer tacked onto the beginning of the list. (defalias 'reporter-compose-outgoing #[nil "\303N\211\203 \304\n!\204/ \305\211\303N\211\203 \304\n!\204' \306\307!\210\202/ \310 \210\311\312\"\210\n \210 *\207" [mail-user-agent agent compose composefunc functionp sendmail-user-agent error "Could not find a valid `mail-user-agent'" ding message "`%s' is an invalid `mail-user-agent'; using `sendmail-user-agent'"] 4 (#$ . 5897)]) #@1072 Begin submitting a bug report via email. ADDRESS is the email address for the package's maintainer. PKGNAME is the name of the package (if you want to include version numbers, you must put them into PKGNAME before calling this function). Optional PRE-HOOKS and POST-HOOKS are passed to `reporter-dump-state'. Optional SALUTATION is inserted at the top of the mail buffer, and point is left after the salutation. VARLIST is the list of variables to dump (see `reporter-dump-state' for details). The optional argument PRE-HOOKS and POST-HOOKS are passed to `reporter-dump-state'. Optional argument SALUTATION is text to be inserted at the top of the mail buffer; in that case, point is left after that text. This function prompts for a summary if `reporter-prompt-for-summary-p' is non-nil. This function does not send a message; it uses the given information to initialize a message, which the user can then edit and finally send (or decline to send). The variable `mail-user-agent' controls which mail-sending package is used for editing and sending the message. (defalias 'reporter-submit-bug-report #[(address pkgname varlist &optional pre-hooks post-hooks salutation) "p\306\211\307\310\205 \311;\203 \202 \312!\313 p\306'()*\314\315!\210\316*!\210\317\n!\210eb\210\320\321!\210+c\210\203X \f\203X \320\322!\210,\203U ,\323\261\210\fc\210\324 \210\325y\210`(-\203m \326-\327\261\210\330\216\331 )\327c\210\332,./0$\210)b\210)\212db\210\333\306x\210(`{1)\301N\211\203\244 \334 \335\306\336$\210\337\340N\306\336#2\337\341N\306\336#32\203\302 \3422!\202\303 \34343\203\321 \3423!\202\322 \3445\345\34645#. \207" [reporter-prompt-for-summary-p hookvar mailbuf agent problem reporter-status-count nil "Formatting bug report buffer..." 0 read-string "(Very) brief summary of problem: " reporter-compose-outgoing require sendmail display-buffer pop-to-buffer mail-position-on-field "to" "subject" "; " mail-text 1 "\n" "\n\n" #[nil "\301\211\223\207" [final-resting-place nil] 3] point-marker reporter-dump-state " \n" add-hook reporter-bug-hook t where-is-internal sendfunc abortfunc key-description "C-c C-c" "M-x kill-buffer" message "Please enter your report. Type %s to send, %s to abort." reporter-status-message after-sep-pos final-resting-place reporter-eval-buffer address pkgname salutation varlist pre-hooks post-hooks reporter-initial-text sendkey-whereis abortkey-whereis sendkey abortkey] 9 (#$ . 6425)]) #@44 Prohibit sending mail if empty bug report. (defalias 'reporter-bug-hook #[nil "\212\302 \210\303y\210`)\212db\210\304\305x\210`Z GU\205&