MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.117.158.174
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/erc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/erc/erc-truncate.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:08:49 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/erc/erc-truncate.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.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(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\317\320\321\322\306\303\313\323&\207" [require erc custom-declare-group erc-truncate nil "Truncate buffers when they reach a certain size" :group custom-declare-variable erc-max-buffer-size 30000 "Maximum size in chars of each ERC buffer.\nUsed only when auto-truncation is enabled.\n(see `erc-truncate-buffer' and `erc-insert-post-hook')." :type integer erc-truncate-mode "Non-nil if Erc-Truncate mode is enabled.\nSee the command `erc-truncate-mode' for 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-truncate-mode'." :set custom-set-minor-mode :initialize custom-initialize-default boolean] 12)
#@386 Toggle ERC truncate mode.
With a prefix argument ARG, enable truncate if ARG is positive,
and disable it otherwise.  If called from Lisp, enable the mode
if ARG is omitted or nil.
Truncate a query buffer if it gets too large.
This prevents the query buffer from getting too large, which can
bring any grown Emacs to its knees after a few days worth of
tracking heavy-traffic channels.
(defalias 'erc-truncate-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-truncate-mode current-message toggle prefix-numeric-value 0 erc-truncate-enable erc-truncate-disable run-hooks erc-truncate-mode-hook erc-truncate-mode-on-hook erc-truncate-mode-off-hook called-interactively-p any customize-mark-as-set message "Erc-Truncate mode %sabled" "en" "dis" force-mode-line-update] 4 (#$ . 1398) (list (or current-prefix-arg 'toggle))])
(byte-code "\301\302\303\304\300!\205\n\303\211%\207" [erc-truncate-mode-map add-minor-mode erc-truncate-mode nil boundp] 6)
#@27 Enable ERC truncate mode.
(defalias 'erc-truncate-enable #[nil "\301\302\303\"\210\304\305\306\307\"\207" [erc-truncate-mode add-to-list erc-modules truncate t add-hook erc-insert-post-hook erc-truncate-buffer] 3 (#$ . 2571) nil])
#@28 Disable ERC truncate mode.
(defalias 'erc-truncate-disable #[nil "\302\303\"\304\305\306\307\"\207" [erc-modules erc-truncate-mode delq truncate nil remove-hook erc-insert-post-hook erc-truncate-buffer] 3 (#$ . 2809) nil])
(byte-code "\300\301\302\303#\210\300\304\302\303#\210\300\305\302\303#\207" [put erc-truncate-mode definition-name truncate erc-truncate-enable erc-truncate-disable] 4)
#@170 Truncates the buffer to the size SIZE.
If BUFFER is not provided, the current buffer is assumed.  The deleted
region is logged if `erc-logging-enabled' returns non-nil.
(defalias 'erc-truncate-buffer-to-size #[(size &optional buffer) "\204	p\202\306!\204\307\310\"\210\311!	\312\\V\205Qrq\210\214~\210\n	Z\211b\210\313 \210`\314\304!\203D\f\203D\315!\203D\316 \210\317 \210\320e|\210*\321 *\207" [buffer size erc-insert-marker end erc-enable-logging inhibit-read-only get-buffer error "erc-truncate-buffer-to-size: %S is not a buffer" buffer-size 512 beginning-of-line boundp erc-logging-enabled erc-save-buffer-in-logs buffer-disable-undo t buffer-enable-undo] 4 (#$ . 3212)])
#@112 Truncates the current buffer to `erc-max-buffer-size'.
Meant to be used in hooks, like `erc-insert-post-hook'.
(defalias 'erc-truncate-buffer #[nil "\301!\207" [erc-max-buffer-size erc-truncate-buffer-to-size] 2 (#$ . 3917) nil])
(provide 'erc-truncate)

MMCT - 2023