| Server IP : 217.160.0.212 / Your IP : 216.73.216.76 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/erc/ |
Upload File : |
;ELC ;;; Compiled ;;; in Emacs version 28.2 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306\301%\210\307\310\311\312\313DD\314\315\316%\210\307\317\311\312\320DD\321\315\322%\210\307\323\311\312\324DD\325\315\326%\210\307\327\311\312\330DD\331\315\332%\210\307\333\311\312\334DD\335\315\336%\210\307\337\311\312\340DD\341\315\342%\210\307\343\311\312\344DD\345\315\346%\210\307\347\311\312\350DD\351\315\346%\210\307\352\311\312\353DD\354\315\355%\210\307\356\311\312\357DD\360\361\362\315\346&\210\363\364\365\366\306\367%\210\307\370\311\312\371DD\372\373\374\375\376\315\346\306\303&\207" [require erc custom-declare-group erc-stamp nil "For long conversation on IRC it is sometimes quite\nuseful to have individual messages timestamp. This\ngroup provides settings related to the format and display\nof timestamp information in `erc-mode' buffer.\n\nFor timestamping to be activated, you just need to load `erc-stamp'\nin your init file or interactively using `load-library'." :group custom-declare-variable erc-timestamp-format funcall function #[0 "\300\207" ["[%H:%M]"] 1 #1=""] "If set to a string, messages will be timestamped.\nThis string is processed using `format-time-string'.\nGood examples are \"%T\" and \"%H:%M\".\n\nIf nil, timestamping is turned off." :type (choice (const nil) (string)) erc-timestamp-format-left #[0 "\300\207" ["\n[%a %b %e %Y]\n"] 1 #1#] "If set to a string, messages will be timestamped.\nThis string is processed using `format-time-string'.\nGood examples are \"%T\" and \"%H:%M\".\n\nThis timestamp is used for timestamps on the left side of the\nscreen when `erc-insert-timestamp-function' is set to\n`erc-insert-timestamp-left-and-right'.\n\nIf nil, timestamping is turned off." (choice (const nil) (string)) erc-timestamp-format-right #[0 "\300\207" [" [%H:%M]"] 1 #1#] "If set to a string, messages will be timestamped.\nThis string is processed using `format-time-string'.\nGood examples are \"%T\" and \"%H:%M\".\n\nThis timestamp is used for timestamps on the right side of the\nscreen when `erc-insert-timestamp-function' is set to\n`erc-insert-timestamp-left-and-right'.\n\nIf nil, timestamping is turned off." (choice (const nil) (string)) erc-insert-timestamp-function #[0 "\300\207" [erc-insert-timestamp-left-and-right] 1 #1#] "Function to use to insert timestamps.\n\nIt takes a single argument STRING which is the final string\nwhich all text-properties already appended. This function only cares about\ninserting this string at the right position. Narrowing is in effect\nwhile it is called, so (point-min) and (point-max) determine the region to\noperate on.\n\nYou will probably want to set\n`erc-insert-away-timestamp-function' to the same value." (choice (const :tag "Both sides" erc-insert-timestamp-left-and-right) (const :tag "Right" erc-insert-timestamp-right) (const :tag "Left" erc-insert-timestamp-left) function) erc-away-timestamp-format #[0 "\300\207" ["<%H:%M>"] 1 #1#] "Timestamp format used when marked as being away.\n\nIf nil, timestamping is turned off when away unless `erc-timestamp-format'\nis set.\n\nIf `erc-timestamp-format' is set, this will not be used." (choice (const nil) (string)) erc-insert-away-timestamp-function #[0 "\300\207" [erc-insert-timestamp-left-and-right] 1 #1#] "Function to use to insert the away timestamp.\n\nSee `erc-insert-timestamp-function' for details." (choice (const :tag "Both sides" erc-insert-timestamp-left-and-right) (const :tag "Right" erc-insert-timestamp-right) (const :tag "Left" erc-insert-timestamp-left) function) erc-hide-timestamps #[0 "\300\207" [nil] 1 #1#] "If non-nil, timestamps will be invisible.\n\nThis is useful for logging, because, although timestamps will be\nhidden, they will still be present in the logs." boolean erc-echo-timestamps #[0 "\300\207" [nil] 1 #1#] "If non-nil, print timestamp in the minibuffer when point is moved.\nUsing this variable, you can turn off normal timestamping,\nand simply move point to an irc message to see its timestamp\nprinted in the minibuffer." erc-echo-timestamp-format #[0 "\300\207" ["Timestamped %A, %H:%M:%S"] 1 #1#] "Format string to be used when `erc-echo-timestamps' is non-nil.\nThis string specifies the format of the timestamp being echoed in\nthe minibuffer." string erc-timestamp-intangible #[0 "\300\207" [nil] 1 #1#] "Whether the timestamps should be intangible, i.e. prevent the point\nfrom entering them and instead jump over them." :version "24.5" custom-declare-face erc-timestamp-face ((t :weight bold :foreground "green")) "ERC timestamp face." erc-faces erc-stamp-mode #[0 "\300\207" [nil] 1 #1#] "Non-nil if Erc-Stamp mode is enabled.\nSee the `erc-stamp-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-stamp-mode'." :set custom-set-minor-mode :initialize custom-initialize-default] 12) #@249 Toggle ERC stamp mode. With a prefix argument ARG, enable stamp if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. This mode timestamps messages in the channel buffers. (fn &optional ARG) (defalias 'erc-stamp-mode #[256 "\302 \303\301\304=\203 \305\301!?\202! \247\203 \306W\203 \307\202! \310\"\210\311\300!\2038 \312\301\"\305\301!\2038 \301B \203B \313 \210\202E \314 \210\315\316\305\301!\203Q \317\202R \320\"\210\321\322!\203z \323\301!\210\302 \203j \211\302 \232\203z \324\325\305\301!\203v \326\202w \327\330#\210\210\331 \210\305\301!\207" [global-minor-modes erc-stamp-mode current-message set-default toggle default-value 1 nil t boundp delq erc-stamp-enable erc-stamp-disable run-hooks erc-stamp-mode-hook erc-stamp-mode-on-hook erc-stamp-mode-off-hook called-interactively-p any customize-mark-as-set message "Erc-Stamp mode %sabled%s" "en" "dis" "" force-mode-line-update] 6 (#$ . 4982) (byte-code "\203\n \301!\202 \302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)]) (defvar erc-stamp-mode-hook nil) (byte-code "\301\302N\204\f \303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\313\300!\205# \310\211%\207" [erc-stamp-mode-map erc-stamp-mode-hook variable-documentation put "Hook run after entering or leaving `erc-stamp-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode erc-stamp-mode boundp] 6) #@24 Enable ERC stamp mode. (defalias 'erc-stamp-enable #[0 "\301\302\303\"\210\304\305\306\307\"\210\305\310\311\304#\210\305\312\311\304#\207" [erc-stamp-mode add-to-list erc-modules stamp t add-hook erc-mode-hook erc-munge-invisibility-spec erc-insert-modify-hook erc-add-timestamp erc-send-modify-hook] 4 (#$ . 6551) nil]) #@25 Disable ERC stamp mode. (defalias 'erc-stamp-disable #[0 "\302\303\"\304\305\306\307\"\210\305\310\311\"\210\305\312\311\"\207" [erc-modules erc-stamp-mode delq stamp nil remove-hook erc-mode-hook erc-munge-invisibility-spec erc-insert-modify-hook erc-add-timestamp erc-send-modify-hook] 3 (#$ . 6880) nil]) (byte-code "\300\301\302\"\210\303\302\304\305#\210\303\306\304\305#\210\303\307\304\305#\207" [defalias erc-timestamp-mode erc-stamp-mode put definition-name stamp erc-stamp-enable erc-stamp-disable] 4) #@141 Add timestamp and text-properties to message. This function is meant to be called from `erc-insert-modify-hook' or `erc-send-modify-hook'. (defalias 'erc-add-timestamp #[0 "\304`\305\"?\205F \306 \307!\203 \310 \"!\210\202 \311\312!\210\307\n!\2038 \2038 \313 \2038 \2048 \n\310\"!\210\314ed\315\316\317\"CD#\262\207" [erc-insert-timestamp-function erc-timestamp-format erc-insert-away-timestamp-function erc-away-timestamp-format get-text-property invisible current-time fboundp erc-format-timestamp error "Timestamp function unbound" erc-away-time add-text-properties cursor-sensor-functions make-closure #[771 "\301\300\"\207" [V0 erc-echo-timestamp] 6 "\n\n(fn WINDOW BEFORE DIR)"]] 8 (#$ . 7402)]) #@158 The width of the last window that showed the current buffer. his is used by `erc-insert-timestamp-right' when the current buffer is not shown in any window. (defvar erc-timestamp-last-window-width nil (#$ . 8126)) (make-variable-buffer-local 'erc-timestamp-last-window-width) #@42 Last timestamp inserted into the buffer. (defvar erc-timestamp-last-inserted nil (#$ . 8408)) (make-variable-buffer-local 'erc-timestamp-last-inserted) #@150 Last timestamp inserted into the left side of the buffer. This is used when `erc-insert-timestamp-function' is set to `erc-timestamp-left-and-right' (defvar erc-timestamp-last-inserted-left nil (#$ . 8567)) (make-variable-buffer-local 'erc-timestamp-last-inserted-left) #@151 Last timestamp inserted into the right side of the buffer. This is used when `erc-insert-timestamp-function' is set to `erc-timestamp-left-and-right' (defvar erc-timestamp-last-inserted-right nil (#$ . 8844)) (byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311%\210\302\312\304\305\313DD\314\310\315%\210\302\316\304\305\317DD\320\310\311%\207" [make-variable-buffer-local erc-timestamp-last-inserted-right custom-declare-variable erc-timestamp-only-if-changed-flag funcall function #[0 "\300\207" [t] 1 #1=""] "Non-nil means insert timestamp only if its value changed since last insertion.\nIf `erc-insert-timestamp-function' is `erc-insert-timestamp-left', a\nstring of spaces which is the same size as the timestamp is added to\nthe beginning of the line in its place. If you use\n`erc-insert-timestamp-right', nothing gets inserted in place of the\ntimestamp." :type boolean erc-timestamp-right-column #[0 "\300\207" [nil] 1 #1#] "If non-nil, the column at which the timestamp is inserted,\nif the timestamp is to be printed to the right. If nil,\n`erc-insert-timestamp-right' will use other means to determine\nthe correct column." (choice (integer :tag "Column number") (const :tag "Unspecified" nil)) erc-timestamp-use-align-to #[0 "\301=\207" [window-system x] 2 #1#] "If non-nil, use the :align-to display property to align the stamp.\nThis gives better results when variable-width characters (like\nAsian language characters and math symbols) precede a timestamp.\n\nA side effect of enabling this is that there will only be one\nspace before a right timestamp in any saved logs."] 6) #@62 Insert timestamps at the beginning of the line. (fn STRING) (defalias 'erc-insert-timestamp-left #[257 "eb\210\205\n \211 \230G\203 \302\303\"\202 \204 \304\305\306\307%\210\304\305\310\311%\210\211c\207" [erc-timestamp-only-if-changed-flag erc-timestamp-last-inserted make-string 32 erc-put-text-property 0 field erc-timestamp invisible timestamp] 10 (#$ . 10456)]) #@155 Insert STRING at the POSth column. If `erc-timestamp-use-align-to' is t, use the :align-to display property to get to the POSth column. (fn STRING POS) (defalias 'erc-insert-aligned #[514 "\204\n \211j\210\202 \301c\210\302`S`\303\304\305E$\210c\207" [erc-timestamp-use-align-to " " put-text-property display space :align-to] 9 (#$ . 10846)]) #@1093 Insert timestamp on the right side of the screen. STRING is the timestamp to insert. This function is a possible value for `erc-insert-timestamp-function'. If `erc-timestamp-only-if-changed-flag' is nil, a timestamp is always printed. If this variable is non-nil, a timestamp is only printed if it is different from the last. If `erc-timestamp-right-column' is set, its value will be used as the column at which the timestamp is to be printed. If it is nil, and `erc-fill-mode' is active, then the timestamp will be printed just before `erc-fill-column'. Otherwise, if the current buffer is shown in a window, that window's width is used as the right boundary. In case multiple windows show the buffer, the width of the most recently selected one is used. If the buffer is not shown, the timestamp will be printed just before the window width of the last window that showed it. If the buffer was never shown, and `fill-column' is set, it will be printed just before `fill-column'. As a last resort, timestamp will be printed just after each line's text (no alignment). (fn STRING) (defalias 'erc-insert-timestamp-right #[257 "\205 \211 \230?\205\255 \211db\210\306u\210\307!\310\n\203 \n\202f \311\303!\203: \203: \311\304!\203: \f\203: \fZT\202f \312\310\313\"\211\262\203N \314!\211Z\202f \203X Z\202f \203e ZT\202f i`i\211\315`\316 ZZ\317\245!\\\262\211W\203\205 \320\"\210\202\221 \321 \210j\210`\262c\210\322`\323\324$\210\322`\325\313$\210\205\253 \322`T\326\313$\266\205\207" [erc-timestamp-only-if-changed-flag erc-timestamp-last-inserted erc-timestamp-right-column erc-fill-mode erc-fill-column erc-timestamp-last-window-width -1 string-width nil boundp get-buffer-window t window-width ceiling point-at-bol 1.6 erc-insert-aligned newline erc-put-text-property field erc-timestamp rear-nonsticky cursor-intangible fill-column erc-timestamp-intangible] 12 (#$ . 11204)]) #@245 This is another function that can be used with `erc-insert-timestamp-function'. If the date is changed, it will print a blank line, the date, and another blank line. If the time is changed, it will then print it off to the right. (fn STRING) (defalias 'erc-insert-timestamp-left-and-right #[257 "\306 \307\"\307 \"\n\230\204\"