?
Current Path : /usr/share/emacs/24.3/lisp/erc/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/erc/erc-backend.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:34 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'erc-compat) #@60 Hashtable mapping server responses to their handler hooks. (defvar erc-server-responses (make-hash-table :test 'equal) (#$ . 580)) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put erc-response\.unparsed compiler-macro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211&\207" [cl-x cl--defsubst-expand (cl-x) (cl-block erc-response\.unparsed (or (and (memq (aref cl-x 0) cl-struct-erc-response-tags)) (error "%s accessing a non-%s" 'erc-response\.unparsed 'erc-response)) (aref cl-x 1)) nil] 7] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) (defalias 'erc-response\.unparsed #[(cl-x) "\302H >\204 \303\304\305\306#\210\307H\207" [cl-x cl-struct-erc-response-tags 0 error "%s accessing a non-%s" erc-response\.unparsed erc-response 1] 4]) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put erc-response\.sender compiler-macro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211&\207" [cl-x cl--defsubst-expand (cl-x) (cl-block erc-response\.sender (or (and (memq (aref cl-x 0) cl-struct-erc-response-tags)) (error "%s accessing a non-%s" 'erc-response\.sender 'erc-response)) (aref cl-x 2)) nil] 7] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) (defalias 'erc-response\.sender #[(cl-x) "\302H >\204 \303\304\305\306#\210\307H\207" [cl-x cl-struct-erc-response-tags 0 error "%s accessing a non-%s" erc-response\.sender erc-response 2] 4]) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put erc-response\.command compiler-macro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211&\207" [cl-x cl--defsubst-expand (cl-x) (cl-block erc-response\.command (or (and (memq (aref cl-x 0) cl-struct-erc-response-tags)) (error "%s accessing a non-%s" 'erc-response\.command 'erc-response)) (aref cl-x 3)) nil] 7] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) (defalias 'erc-response\.command #[(cl-x) "\302H >\204 \303\304\305\306#\210\307H\207" [cl-x cl-struct-erc-response-tags 0 error "%s accessing a non-%s" erc-response\.command erc-response 3] 4]) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put erc-response\.command-args compiler-macro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211&\207" [cl-x cl--defsubst-expand (cl-x) (cl-block erc-response\.command-args (or (and (memq (aref cl-x 0) cl-struct-erc-response-tags)) (error "%s accessing a non-%s" 'erc-response\.command-args 'erc-response)) (aref cl-x 4)) nil] 7] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) (defalias 'erc-response\.command-args #[(cl-x) "\302H >\204 \303\304\305\306#\210\307H\207" [cl-x cl-struct-erc-response-tags 0 error "%s accessing a non-%s" erc-response\.command-args erc-response 4] 4]) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put erc-response\.contents compiler-macro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211&\207" [cl-x cl--defsubst-expand (cl-x) (cl-block erc-response\.contents (or (and (memq (aref cl-x 0) cl-struct-erc-response-tags)) (error "%s accessing a non-%s" 'erc-response\.contents 'erc-response)) (aref cl-x 5)) nil] 7] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) (defalias 'erc-response\.contents #[(cl-x) "\302H >\204 \303\304\305\306#\210\307H\207" [cl-x cl-struct-erc-response-tags 0 error "%s accessing a non-%s" erc-response\.contents erc-response 5] 4]) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put erc-response-p compiler-macro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211&\207" [cl-x cl--defsubst-expand (cl-x) (cl-block erc-response-p (and (vectorp cl-x) (>= (length cl-x) 6) (memq (aref cl-x 0) cl-struct-erc-response-tags) t)) nil] 7] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) (defalias 'erc-response-p #[(cl-x) "\302!\205 G\303Y\205 \304H >\205 \305\207" [cl-x cl-struct-erc-response-tags vectorp 6 0 t] 2]) (defalias 'copy-erc-response #[(x) "\301!\207" [x copy-sequence] 2]) (byte-code "\301\302\303\304#\210\305\301\302\306\307\310!!#\210)\301\207" [file put make-erc-response compiler-macro #[(cl-whole &rest #1=#:--cl-rest--) "\306>\206 \307A@\310>\206 \311A@\312>\206 \313A@\314>\206% \315A@\316>\206/ \317A@\203e @\320>\203L AA\211\2027 \321>A@\203[ \322\211\2027 \323\324@\"\210\2025 )\325\326\327\322\322 \n\f &\n-\207" [#1# unparsed sender command command-args contents :unparsed (nil #2="") :sender (nil #2#) :command (nil #2#) :command-args (nil 'nil) :contents (nil #2#) (:unparsed :sender :command :command-args :contents :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:unparsed :sender :command :command-args :contents)" cl--defsubst-expand (unparsed sender command command-args contents) (cl-block make-erc-response (vector 'cl-struct-erc-response unparsed sender command command-args contents)) #:--cl-keys-- cl-whole] 12 "\n\n(fn CL-WHOLE &cl-quote &key UNPARSED SENDER COMMAND COMMAND-ARGS CONTENTS)"] "/builddir/build/BUILD/emacs-24.3/lisp/erc/erc-backend.el" compiler-macro-file purecopy file-name-nondirectory] 6) #@59 (fn &key UNPARSED SENDER COMMAND COMMAND-ARGS CONTENTS) (defalias 'make-erc-response #[(&rest #1=#:--cl-rest--) "\306>\206 \307A@\310>\206 \311A@\312>\206 \313A@\314>\206% \315A@\316>\206/ \317A@\203e @\320>\203L AA\211\2027 \321>A@\203[ \322\211\2027 \323\324@\"\210\2025 )\325\326 \n\f &-\207" [#1# unparsed sender command command-args contents :unparsed (nil #2="") :sender (nil #2#) :command (nil #2#) :command-args (nil nil) :contents (nil #2#) (:unparsed :sender :command :command-args :contents :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:unparsed :sender :command :command-args :contents)" vector cl-struct-erc-response #3=#:--cl-keys--] 8 (#$ . 6085)]) (byte-code "\301C\302\303\304\305#\210\302\303\306\307#\210\302\303\310\311#\210\302\303\312\313#\210\302\314\315\313#\210\302\316\315\313#\210\302\317\315\320#\210\302\321\315\313#\210\302\322\315\313#\210\302\323\315\313#\210\302\324\315\313#\210\302\325\315\313#\207" [cl-struct-erc-response-tags cl-struct-erc-response put erc-response cl-struct-slots ((cl-tag-slot) (unparsed #1="" :type string) (sender #1# :type string) (command #1# :type string) (command-args 'nil :type list) (contents #1# :type string)) cl-struct-type (vector nil) cl-struct-include nil cl-struct-print t make-erc-response side-effect-free copy-erc-response erc-response-p error-free erc-response\.contents erc-response\.command-args erc-response\.command erc-response\.sender erc-response\.unparsed] 4) #@72 Nickname on the current server. Use `erc-current-nick' to access this. (defvar erc-server-current-nick nil (#$ . 7605)) (make-variable-buffer-local 'erc-server-current-nick) #@60 The process object of the corresponding server connection. (defvar erc-server-process nil (#$ . 7785)) (make-variable-buffer-local 'erc-server-process) #@54 The server name used to connect to for this session. (defvar erc-session-server nil (#$ . 7943)) (make-variable-buffer-local 'erc-session-server) #@69 The function used to connect to this session (nil for the default). (defvar erc-session-connector nil (#$ . 8095)) (make-variable-buffer-local 'erc-session-connector) #@30 The port used to connect to. (defvar erc-session-port nil (#$ . 8268)) (make-variable-buffer-local 'erc-session-port) #@39 The name the server announced to use. (defvar erc-server-announced-name nil (#$ . 8392)) (make-variable-buffer-local 'erc-server-announced-name) #@44 The name and version of the server's ircd. (defvar erc-server-version nil (#$ . 8543)) (make-variable-buffer-local 'erc-server-version) #@1060 Alist listing the supported server parameters. This is only set if the server sends 005 messages saying what is supported on the server. Entries are of the form: (PARAMETER . VALUE) or (PARAMETER) if no value is provided. Some examples of possible parameters sent by servers: CHANMODES=b,k,l,imnpst - list of supported channel modes CHANNELLEN=50 - maximum length of channel names CHANTYPES=#&!+ - supported channel prefixes CHARMAPPING=rfc1459 - character mapping used for nickname and channels KICKLEN=160 - maximum allowed kick message length MAXBANS=30 - maximum number of bans per channel MAXCHANNELS=10 - maximum number of channels allowed to join NETWORK=EFnet - the network identifier NICKLEN=9 - maximum allowed length of nicknames PREFIX=(ov)@+ - list of channel modes and the user prefixes if user has mode RFC2812 - server supports RFC 2812 features SILENCE=10 - supports the SILENCE command, maximum allowed number of entries TOPICLEN=160 - maximum allowed topic length WALLCHOPS - supports sending messages to all operators in a channel (defvar erc-server-parameters nil (#$ . 8687)) (make-variable-buffer-local 'erc-server-parameters) #@57 Mapping of server buffers to their specific ping timer. (defvar erc-server-ping-timer-alist nil (#$ . 9851)) #@210 Non-nil if the current buffer has been used by ERC to establish an IRC connection. If you wish to determine whether an IRC connection is currently active, use the `erc-server-process-alive' function instead. (defvar erc-server-connected nil (#$ . 9967)) (make-variable-buffer-local 'erc-server-connected) #@68 Number of times we have failed to reconnect to the current server. (defvar erc-server-reconnect-count 0 (#$ . 10279)) (make-variable-buffer-local 'erc-server-reconnect-count) #@38 Non-nil if the user requests a quit. (defvar erc-server-quitting nil (#$ . 10460)) (make-variable-buffer-local 'erc-server-quitting) #@97 Non-nil if the user requests an explicit reconnect, and the current IRC process is still alive. (defvar erc-server-reconnecting nil (#$ . 10599)) (make-variable-buffer-local 'erc-server-reconnecting) #@56 Non-nil if the IRC server failed to respond to a ping. (defvar erc-server-timed-out nil (#$ . 10805)) (make-variable-buffer-local 'erc-server-timed-out) #@63 Non-nil if the user is denied access because of a server ban. (defvar erc-server-banned nil (#$ . 10964)) (make-variable-buffer-local 'erc-server-banned) #@49 Non-nil if the user triggers some server error. (defvar erc-server-error-occurred nil (#$ . 11124)) (make-variable-buffer-local 'erc-server-error-occurred) #@15 Line counter. (defvar erc-server-lines-sent nil (#$ . 11286)) (make-variable-buffer-local 'erc-server-lines-sent) #@91 Last peers used, both sender and receiver. Those are used for /MSG destination shortcuts. (defvar erc-server-last-peers '(nil) (#$ . 11406)) (make-variable-buffer-local 'erc-server-last-peers) #@65 Time the message was sent. This is useful for flood protection. (defvar erc-server-last-sent-time nil (#$ . 11605)) (make-variable-buffer-local 'erc-server-last-sent-time) #@67 Time the last ping was sent. This is useful for flood protection. (defvar erc-server-last-ping-time nil (#$ . 11783)) (make-variable-buffer-local 'erc-server-last-ping-time) #@100 Time the last message was received from the server. This is useful for detecting hung connections. (defvar erc-server-last-received-time nil (#$ . 11964)) (make-variable-buffer-local 'erc-server-last-received-time) #@86 Calculated server lag time in seconds. This variable is only set in a server buffer. (defvar erc-server-lag nil (#$ . 12185)) (make-variable-buffer-local 'erc-server-lag) #@71 The data that arrived from the server but has not been processed yet. (defvar erc-server-filter-data nil (#$ . 12362)) (make-variable-buffer-local 'erc-server-filter-data) #@53 Internal variable used to track duplicate messages. (defvar erc-server-duplicates (make-hash-table :test 'equal) (#$ . 12540)) (make-variable-buffer-local 'erc-server-duplicates) #@497 Non-nil when we're currently processing a message. When ERC receives a private message, it sets up a new buffer for this query. These in turn, though, do start flyspell. This involves starting an external process, in which case Emacs will wait - and when it waits, it does accept other stuff from, say, network exceptions. So, if someone sends you two messages quickly after each other, ispell is started for the first, but might take long enough for the second message to be processed first. (defvar erc-server-processing-p nil (#$ . 12726)) (make-variable-buffer-local 'erc-server-processing-p) #@116 When we sent the last message. See `erc-server-flood-margin' for an explanation of the flood protection algorithm. (defvar erc-server-flood-last-message 0 (#$ . 13333)) (make-variable-buffer-local 'erc-server-flood-last-message) #@141 The queue of messages waiting to be sent to the server. See `erc-server-flood-margin' for an explanation of the flood protection algorithm. (defvar erc-server-flood-queue nil (#$ . 13569)) (make-variable-buffer-local 'erc-server-flood-queue) #@30 The timer to resume sending. (defvar erc-server-flood-timer nil (#$ . 13817)) (byte-code "\300\301!\210\302\303\304\305\306\307%\210\310\311\312\313\306\303\314\315&\210\310\316\317\320\306\303\314\321&\210\310\322\323\324\306\303\314\325&\210\310\326\327\330\314\331\306\303&\210\310\332\333\334\306\303\335\336\314\337& \210\310\340\341\342\306\303\314\343&\210\310\344\304\345\306\303\314\346&\210\310\347\350\351\306\303\314\352&\210\310\353\354\355\314\356\306\303&\210\310\357\360\361\314\331\306\303&\210\310\362\363\364\335\365\314\366\306\303& \210\310\367\370\371\314\331\306\303&\210\310\372\373\374\314\331\306\303&\210\310\375\376\377\306\303\314\201@ &\210\310\201A \201B \201C \306\303\314\201D &\207" [make-variable-buffer-local erc-server-flood-timer custom-declare-group erc-server nil "Parameters for dealing with IRC servers." :group erc custom-declare-variable erc-server-auto-reconnect t "Non-nil means that ERC will attempt to reestablish broken connections.\n\nReconnection will happen automatically for any unexpected disconnection." :type boolean erc-server-reconnect-attempts 2 "The number of times that ERC will attempt to reestablish a\nbroken connection, or t to always attempt to reconnect.\n\nThis only has an effect if `erc-server-auto-reconnect' is non-nil." (choice (const :tag "Always reconnect" t) integer) erc-server-reconnect-timeout 1 "The amount of time, in seconds, that ERC will wait between\nsuccessive reconnect attempts.\n\nIf a key is pressed while ERC is waiting, it will stop waiting." number erc-split-line-length 440 "The maximum length of a single message.\nIf a message exceeds this size, it is broken into multiple ones.\n\nIRC allows for lines up to 512 bytes. Two of them are CR LF.\nAnd a typical message looks like this:\n\n :nicky!uhuser@host212223.dialin.fnordisp.net PRIVMSG #lazybastards :Hello!\n\nYou can limit here the maximum length of the \"Hello!\" part.\nGood luck." integer erc-coding-system-precedence '(utf-8 undecided) "List of coding systems to be preferred when receiving a string from the server.\nThis will only be consulted if the coding system in\n`erc-server-coding-system' is `undecided'." :version "24.1" (repeat coding-system) erc-server-coding-system (if (and (fboundp 'coding-system-p) (coding-system-p 'undecided) (coding-system-p 'utf-8)) '(utf-8 . undecided) nil) "The default coding system for incoming and outgoing text.\nThis is either a coding system, a cons, a function, or nil.\n\nIf a cons, the encoding system for outgoing text is in the car\nand the decoding system for incoming text is in the cdr. The most\ninteresting use for this is to put `undecided' in the cdr. This\nmeans that `erc-coding-system-precedence' will be consulted, and the\nfirst match there will be used.\n\nIf a function, it is called with the argument `target' and should\nreturn a coding system or a cons as described above.\n\nIf you need to send non-ASCII text to people not using a client that\ndoes decoding on its own, you must tell ERC what encoding to use.\nEmacs cannot guess it, since it does not know what the people on the\nother end of the line are using." (choice (const :tag "None" nil) coding-system (cons (coding-system :tag "encoding" :value utf-8) (coding-system :tag "decoding" :value undecided)) function) erc-encoding-coding-alist "Alist of target regexp and coding-system pairs to use.\nThis overrides `erc-server-coding-system' depending on the\ncurrent target as returned by `erc-default-target'.\n\nExample: If you know that the channel #linux-ru uses the coding-system\n`cyrillic-koi8', then add '(\"#linux-ru\" . cyrillic-koi8) to the\nalist." (repeat (cons (string :tag "Target") coding-system)) erc-server-connect-function 'open-network-stream "Function used to initiate a connection.\nIt should take same arguments as `open-network-stream' does." function erc-server-prevent-duplicates '("301") "Either nil or a list of strings.\nEach string is a IRC message type, like PRIVMSG or NOTICE.\nAll Message types in that list of subjected to duplicate prevention." (choice (const nil) (list string)) erc-server-duplicate-timeout 60 "The time allowed in seconds between duplicate messages.\n\nIf two identical messages arrive within this value of one another, the second\nisn't displayed." erc-server-timestamp-format "%Y-%m-%d %T" "Timestamp format used with server response messages.\nThis string is processed using `format-time-string'." "24.3" string erc-server-flood-margin 10 "A margin on how much excess data we send.\nThe flood protection algorithm of ERC works like the one\ndetailed in RFC 2813, section 5.8 \"Flood control of clients\".\n\n * If `erc-server-flood-last-message' is less than the current\n time, set it equal.\n * While `erc-server-flood-last-message' is less than\n `erc-server-flood-margin' seconds ahead of the current\n time, send a message, and increase\n `erc-server-flood-last-message' by\n `erc-server-flood-penalty' for each message." erc-server-flood-penalty 3 "How much we penalize a message.\nSee `erc-server-flood-margin' for an explanation of the flood\nprotection algorithm." erc-server-send-ping-interval 30 "Interval of sending pings to the server, in seconds.\nIf this is set to nil, pinging the server is disabled." (choice (const :tag "Disabled" nil) (integer :tag "Seconds")) erc-server-send-ping-timeout 120 "If the time between ping and response is greater than this, reconnect.\nThe time is in seconds.\n\nThis must be greater than or equal to the value for\n`erc-server-send-ping-interval'.\n\nIf this is set to nil, never try to reconnect." (choice (const :tag "Disabled" nil) (integer :tag "Seconds"))] 10) #@46 This variable holds the periodic ping timer. (defvar erc-server-ping-handler nil (#$ . 19509)) (make-variable-buffer-local 'erc-server-ping-handler) #@155 Return a list of lines which are not too long for IRC. The length is specified in `erc-split-line-length'. Currently this is called by `erc-send-input'. (defalias 'erc-split-line #[(longline) "G W\203\n C\207\304\305!r\nq\210\306\216c\210 \307ed\310\311$\210)\312\313 \314\"+\207" [longline erc-split-line-length #1=#:temp-buffer fill-column generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) fill-region nil t split-string buffer-string "\n"] 5 (#$ . 19665)]) #@31 Upcase the first word in STR. (defalias 'erc-upcase-first-word #[(str) "\302\303!rq\210\304\216 c\210eb\210\305\306!\210\307 +\207" [#1=#:temp-buffer str generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) upcase-word 1 buffer-string] 2 (#$ . 20197)]) #@96 Set up a timer to periodically ping the current server. The current buffer is given by BUFFER. (defalias 'erc-server-setup-periodical-ping #[(buffer) "rq\210 \203\f \304 !\210\n\205 \305\306\n\307$ BB\211)\207" [buffer erc-server-ping-handler erc-server-send-ping-interval erc-server-ping-timer-alist erc-cancel-timer run-with-timer 4 erc-server-send-ping] 5 (#$ . 20515)]) #@62 Return non-nil when `erc-server-process' is open or running. (defalias 'erc-server-process-alive #[nil "\205 \301!\205 \302!\303>\207" [erc-server-process processp process-status (run open)] 2 (#$ . 20902)]) #@133 Perform the connection and login using the specified SERVER and PORT. We will store server variables in the buffer given by BUFFER. (defalias 'erc-server-connect #[(server port buffer) "\306\307\310\311 %\312\313\n\"\210\314\315 #\316 $\317\f!\204\"