%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/erc/ |
Current File : //usr/local/share/emacs/27.2/lisp/erc/erc-log.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\302\303\304\305\306\301%\210\307\310\311\312\306\303\313\314&\210\307\315\304\316\306\303\313\317&\210\307\320\321\322\306\303\313\323&\210\324\320!\210\307\325\326\327\306\303\313\330&\210\307\331\304\332\306\303\313\317&\210\307\333\321\334\306\303\313\317&\210\307\335\321\336\306\303\313\317&\210\307\337\304\340\306\303\313\317&\210\307\341\304\342\306\303\313\317&\210\307\343\344\345\313\346\306\303&\210\307\347\304\350\306\303\313\351&\210\307\352\304\353\354\355\356\357\306\303\313\317&\207" [require erc custom-declare-group erc-log nil "Logging facilities for ERC." :group custom-declare-variable erc-generate-log-file-name-function 'erc-generate-log-file-name-long "A function to generate a log filename.\nThe function must take five arguments: BUFFER, TARGET, NICK, SERVER and PORT.\nBUFFER is the buffer to be saved,\nTARGET is the name of the channel, or the target of the query,\nNICK is the current nick,\nSERVER and PORT are the parameters that were used to connect to BUFFERs\n`erc-server-process'.\n\nIf you want to write logs into different directories, make a\ncustom function which returns the directory part and set\n`erc-log-channels-directory' to its name." :type (choice (const :tag "#channel!nick@server:port.txt" erc-generate-log-file-name-long) (const :tag "#channel!nick@network.txt" erc-generate-log-file-name-network) (const :tag "#channel.txt" erc-generate-log-file-name-short) (const :tag "#channel@date.txt" erc-generate-log-file-name-with-date) (function :tag "Other function")) erc-truncate-buffer-on-save "Erase the contents of any ERC (channel, query, server) buffer when it is saved." boolean erc-enable-logging t "If non-nil, ERC will log IRC conversations.\nThis can either be a boolean value of nil or t, or a function.\nIf the value is a function, it will be called with one argument, the\nname of the current ERC buffer. One possible function, which saves\nall but server buffers is `erc-log-all-but-server-buffers'.\n\nThis variable is buffer local. Setting it via \\[customize] sets the\ndefault value.\n\nLog files are stored in `erc-log-channels-directory'." (choice boolean function) make-variable-buffer-local erc-log-channels-directory "~/log" "The directory to place log files for channels.\nLeave blank to disable logging. If not nil, all the channel\nbuffers are logged in separate files in that directory. The\ndirectory should not end with a trailing slash.\n\nIf this is the name of a function, the function will be called\nwith the buffer, target, nick, server, and port arguments. See\n`erc-generate-log-file-name-function' for a description of these\narguments." (choice directory #'"Function" (const :tag "Disable logging" nil)) erc-log-insert-log-on-open "Insert log file contents into the buffer if a log file exists." erc-save-buffer-on-part "Save the channel buffer content using `erc-save-buffer-in-logs' on PART.\n\nIf you set this to nil, you may want to enable both\n`erc-log-write-after-send' and `erc-log-write-after-insert'." erc-save-queries-on-quit "Save all query (also channel) buffers of the server on QUIT.\n\nIf you set this to nil, you may want to enable both\n`erc-log-write-after-send' and `erc-log-write-after-insert'." erc-log-write-after-send "If non-nil, write to log file after every message you send.\n\nIf you set this to nil, you may want to enable both\n`erc-save-buffer-on-part' and `erc-save-queries-on-quit'." erc-log-write-after-insert "If non-nil, write to log file when new text is added to a\nlogged ERC buffer.\n\nIf you set this to nil, you may want to enable both\n`erc-save-buffer-on-part' and `erc-save-queries-on-quit'." erc-log-file-coding-system 'emacs-mule "The coding system ERC should use for writing log files.\n\nThis should ideally, be a \"catch-all\" coding system, like\n`emacs-mule', or `iso-2022-7bit'." coding-system erc-log-filter-function "If non-nil, pass text through the given function before writing it to\na log file.\n\nThe function should take one argument, which is the text to filter." (choice #'"Function" (const :tag "No filtering" nil)) erc-log-mode "Non-nil if Erc-Log mode is enabled.\nSee the `erc-log-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `erc-log-mode'." :set custom-set-minor-mode :initialize custom-initialize-default] 12) #@766 Toggle ERC log mode. With a prefix argument ARG, enable log if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. Automatically logs things you receive on IRC into files. Files are stored in `erc-log-channels-directory'; file name format is defined through a formatting function on `erc-generate-log-file-name-function'. Since automatic logging is not always a Good Thing (especially if people say things in different coding systems), you can turn logging behavior on and off with the variable `erc-enable-logging', which can also be a predicate function. To only log when you are not set away, use: (setq erc-enable-logging (lambda (buffer) (with-current-buffer buffer (null (erc-away-time))))) (defalias 'erc-log-mode #[(&optional arg) "\304 \305\302 \306=\203 \307\302!?\202 \310 !\311V\"\210\n\203# \312 \210\202&