Current File : //usr/share/emacs/24.3/lisp/erc/erc-list.elc |
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:41 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/erc/erc-list.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)
(defconst erc-list-nusers-column 25)
(defconst erc-list-topic-column (+ erc-list-nusers-column 10))
(defvar erc-list-buffer nil)
(defvar erc-list-last-argument nil)
(defvar erc-list-server-buffer nil)
#@260 Non-nil if Erc-List mode is enabled.
See the command `erc-list-mode' for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node `Easy Customization')
or call the function `erc-list-mode'.
(custom-declare-variable 'erc-list-mode nil '(#$ . 772) :set 'custom-set-minor-mode :initialize 'custom-initialize-default :group 'erc-list :type 'boolean)
#@216 Toggle ERC list mode.
With a prefix argument ARG, enable list if ARG is positive,
and disable it otherwise. If called from Lisp, enable the mode
if ARG is omitted or nil.
List channels nicely in a separate buffer.
(defalias 'erc-list-mode #[(&optional arg) "\303 \304=\203 \n?\202 \305 !\306V\211\203 \307 \210\202! \310 \210\311\312\n\203+ \313\202, \314\"\210\315\316!\203Q \317\302!\210\303 \203D \303 \232\203Q \320\321\n\203N \322\202O \323\"\210)\324 \210\n\207" [#1=#:last-message arg erc-list-mode current-message toggle prefix-numeric-value 0 erc-list-enable erc-list-disable run-hooks erc-list-mode-hook erc-list-mode-on-hook erc-list-mode-off-hook called-interactively-p any customize-mark-as-set message "Erc-List mode %sabled" "en" "dis" force-mode-line-update] 4 (#$ . 1194) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n \303\211%\207" [erc-list-mode-map add-minor-mode erc-list-mode nil boundp] 6)
#@23 Enable ERC list mode.
(defalias 'erc-list-enable #[nil "\301\302\303\"\210\304\305\306\307\"\210\305\310\311\"\207" [erc-list-mode add-to-list erc-modules list t remove-hook erc-server-321-functions erc-server-321-message erc-server-322-functions erc-server-322-message] 3 (#$ . 2157) nil])
#@24 Disable ERC list mode.
(defalias 'erc-list-disable #[nil "\304\305\"\306\211\307\310\311\312\n\"\"\210*\313\314\315\316#\210\313\317\320\316#\207" [erc-modules erc-list-mode #1=#:pro #2=#:pre delq list nil erc-open-server-buffer-p mapcar #[(buffer) "rq\210\301\302\303\304#)\207" [buffer remove-hook erc-server-322-functions erc-list-handle-322 t] 4] erc-buffer-list add-hook erc-server-321-functions erc-server-321-message t erc-server-322-functions erc-server-322-message] 6 (#$ . 2455) nil])
(byte-code "\300\301\302\303#\210\300\304\302\303#\210\300\305\302\303#\207" [put erc-list-mode definition-name list erc-list-enable erc-list-disable] 4)
(defalias 'erc-list-make-string #[(channel users topic) "\305\306\307\310\311 E\312\313%\n\305\306\307\310\311E\312\313%\f\260\207" [channel erc-list-nusers-column users erc-list-topic-column topic erc-propertize " " display space :align-to face fixed-pitch] 9])
(defalias 'erc-list-insert-item #[(channel users topic) "\212\304db\210\305 \n#\306\261*\207" [buffer-read-only channel users topic nil erc-list-make-string "\n"] 4])
#@42 Join the irc channel named on this line.
(defalias 'erc-list-join #[nil "m?\205 \302 \210\303\304!\204 \305\306!\210\307\310!r q\210\311!*\207" [chan erc-list-server-buffer beginning-of-line looking-at "\\([&#+!][^ \n]+\\)" error "Not looking at channel name?" match-string 1 erc-join-channel] 2 (#$ . 3553) nil])
#@35 Kill the current ERC list buffer.
(defalias 'erc-list-kill #[nil "\300p!\207" [kill-buffer] 2 (#$ . 3877) nil])
#@31 Refresh the list of channels.
(defalias 'erc-list-revert #[nil "rq\210\302 !)\207" [erc-list-server-buffer erc-list-last-argument erc-cmd-LIST] 2 (#$ . 3995) nil])
#@49 Sort the channel list by the column clicked on.
(defalias 'erc-list-menu-sort-by-column #[(&optional e) "\203 \306!\210\307!\211\211\310\n8)\206 \n\311\n8))\211\203- \312A\313@#\202J \312 \314\n8\206G \nA@:\203D \nA@@\202G \nA@)\313\"\315\f\316U\203[ \317\fed#\202` \320\fed#,\207" [e pos position obj col buffer-read-only mouse-select-window event-start 7 4 get-text-property column-number 5 nil 1 sort-fields sort-numeric-fields] 5 (#$ . 4166) (list last-input-event)])
#@43 Local keymap for `erc-list-mode' buffers.
(defvar erc-list-menu-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)\207" [map special-mode-map make-keymap set-keymap-parent define-key "k" erc-list-kill "j" erc-list-join "g" erc-list-revert "n" next-line "p" previous-line] 4) (#$ . 4659))
#@54 Local keymap for ERC list menu mode sorting buttons.
(defvar erc-list-menu-sort-button-map (byte-code "\301 \302\303\304#\210\302\305\306#\210)\207" [map make-sparse-keymap define-key [header-line mouse-1] erc-list-menu-sort-by-column [follow-link] mouse-face] 4) (#$ . 5034))
(defalias 'erc-list-button #[(title column) "\303\304 \305\306\307\310\311\n& \207" [title column erc-list-menu-sort-button-map erc-propertize column-number help-echo "mouse-1: sort by column" mouse-face highlight keymap] 10])
(byte-code "\300\301N\204 \302\300\301\303\304!#\210\305\306!\204 \302\306\307\310#\210\300\207" [erc-list-menu-mode-hook variable-documentation put purecopy "Hook run when entering ERC-List mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp erc-list-menu-mode-map definition-name erc-list-menu-mode] 5)
(defvar erc-list-menu-mode-map (make-sparse-keymap))
(byte-code "\300\301N\204 \302\300\301\303\304!#\210\305\306!\204 \302\306\307\310#\210\300\207" [erc-list-menu-mode-map variable-documentation put purecopy "Keymap for `erc-list-menu-mode'." boundp erc-list-menu-mode-syntax-table definition-name erc-list-menu-mode] 5)
(defvar erc-list-menu-mode-syntax-table (make-syntax-table))
(byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [erc-list-menu-mode-syntax-table variable-documentation put purecopy "Syntax table for `erc-list-menu-mode'." erc-list-menu-mode-abbrev-table definition-name erc-list-menu-mode] 5)
(defvar erc-list-menu-mode-abbrev-table (progn (define-abbrev-table 'erc-list-menu-mode-abbrev-table nil) erc-list-menu-mode-abbrev-table))
(byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [erc-list-menu-mode-abbrev-table variable-documentation put purecopy "Abbrev table for `erc-list-menu-mode'." erc-list-menu-mode derived-mode-parent special-mode] 5)
#@240 Major mode for editing a list of irc channels.
In addition to any hooks its parent mode `special-mode' might have run,
this mode runs the hook `erc-list-menu-mode-hook', as the final step
during initialization.
\{erc-list-menu-mode-map}
(defalias 'erc-list-menu-mode #[nil "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204'