%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/erc/
Upload File :
Create Path :
Current File : //usr/local/share/emacs/27.2/lisp/erc/erc-stamp.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\300\302!\210\303\304\305\306\307\301%\210\310\311\312\313\314DD\315\307\304\316\317&\210\310\320\312\313\321DD\322\307\304\316\323&\210\310\324\312\313\325DD\326\307\304\316\327&\210\310\330\312\313\331DD\332\307\304\316\333&\210\310\334\312\313\335DD\336\307\304\316\337&\210\310\340\312\313\341DD\342\307\304\316\343&\210\310\344\312\313\345DD\346\307\304\316\347&\210\310\350\312\313\351DD\352\307\304\316\347&\210\310\353\312\313\354DD\355\307\304\316\356&\210\310\357\312\313\360DD\361\307\304\362\363\316\347&	\210\364\365\366\367\307\370%\210\310\371\312\313\372DD\373\374\375\376\377\307\304\316\347&\207" [require erc erc-compat 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" [#1="[%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" [#2="\n[%a %b %e %Y]\n"] 1 #2#] "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" [#3=" [%H:%M]"] 1 #3#] "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] "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" [#4="<%H:%M>"] 1 #4#] "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] "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] "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] "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" [#5="Timestamped %A, %H:%M:%S"] 1 #5#] "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] "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] "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 "\301 \302\300\303=\203\304\300!?\202\305!\306V\"\210\203\"\307 \210\202%\310 \210\311\312\304\300!\2031\313\2022\314\"\210\315\316!\203\\\317\300!\210\301 \203J\211\301 \232\203\\\320\321\322\304\300!\203W\323\202X\324#\266\210\325 \210\304\300!\207" [erc-stamp-mode current-message set-default toggle default-value prefix-numeric-value 0 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] 7 (#$ . 5408) (byte-code "\206\301C\207" [current-prefix-arg toggle] 1)])
(defvar erc-stamp-mode-hook nil)
(byte-code "\301\302N\204\f\303\301\302\304#\210\305\306\307\310\300!\205\307\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.)" add-minor-mode erc-stamp-mode nil 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 (#$ . 6782) 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 (#$ . 7111) 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\"?\205N\306 \307!\203\310	\"!\210\202\311\312!\210\307\n!\2038\2038\313 \2038	\2048\n\310\"!\210\314ed\315\316\317\320\321\322	!\323\"\324\325%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-byte-code 771 "\301\300\"\207" vconcat vector [erc-echo-timestamp] 6 "\n\n(fn WINDOW BEFORE DIR)"] 11 (#$ . 7633)])
#@42 Last timestamp inserted into the buffer.
(defvar erc-timestamp-last-inserted nil (#$ . 8394))
(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 (#$ . 8553))
(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 (#$ . 8830))
(byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313&\210\302\314\304\305\315DD\316\310\311\312\317&\210\302\320\304\305\321DD\322\310\311\312\313&\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] "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." :group erc-stamp :type boolean erc-timestamp-right-column #[0 "\300\207" [nil] 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] "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."] 8)
#@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 (#$ . 10458)])
#@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 (#$ . 10848)])
#@847 Insert timestamp on the right side of the screen.
STRING is the timestamp to insert.  The 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.  If the buffer is
not shown, and `fill-column' is set, then the timestamp will be
printed just `fill-column'.  As a last resort, the timestamp will
be printed just before the window-width.

(fn STRING)
(defalias 'erc-insert-timestamp-right #[257 "\205\211	\230?\205\220\211db\210\306u\210\307!\n\203\n\202J\310\303!\2039\2039\310\304!\2039\f\2039\fZT\202J
\203D
ZT\202J\311\312 \313#`i\211\314`\315 ZZ\316\245!\\\262\211W\203h\317\"\210\202t\320 \210j\210`\262c\210\321`\322\323$\210\321`\324\325$\210\205\216\321`T\326\325$\266\204\207" [erc-timestamp-only-if-changed-flag erc-timestamp-last-inserted erc-timestamp-right-column erc-fill-mode erc-fill-column fill-column -1 string-width boundp - window-width 1 ceiling point-at-bol 1.6 erc-insert-aligned newline erc-put-text-property field erc-timestamp rear-nonsticky t cursor-intangible erc-timestamp-intangible] 10 (#$ . 11205)])
#@248 This is another function that can be assigned to
`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\"eb\210\310\311G\312\313%\210c\210\314\315!\210\211\211*\207" [erc-timestamp-format-left erc-timestamp-format-right erc-timestamp-last-inserted-left erc-timestamp-last-inserted-right erc-timestamp-last-inserted erc-timestamp-only-if-changed-flag current-time erc-format-timestamp erc-put-text-property 0 field erc-timestamp t erc-insert-timestamp-right] 10 (#$ . 12776)])
#@114 Return TIME formatted as string according to FORMAT.
Return the empty string if FORMAT is nil.

(fn TIME FORMAT)
(defalias 'erc-format-timestamp #[514 "\211\2036\302\"\303\304G\305\306%\210\303\304G\307\310%\210\303\304G\311\310%\210\2034	\2044\303\304G\312\313%\210\211\207\314\207" [erc-timestamp-intangible erc-hide-timestamps format-time-string erc-put-text-property 0 font-lock-face erc-timestamp-face invisible timestamp isearch-open-invisible cursor-intangible t ""] 9 (#$ . 13501)])
(defalias 'erc-munge-invisibility-spec #[0 "\203\305\301!\203	\204\301\306!\210\n\203$\305\303!\203 \204$\303\306!\210\f\203,\307\310!\207\311\310!\207" [erc-timestamp-intangible cursor-intangible-mode erc-echo-timestamps cursor-sensor-mode erc-hide-timestamps boundp 1 add-to-invisibility-spec timestamp remove-from-invisibility-spec] 2])
#@42 Hide timestamp information from display.
(defalias 'erc-hide-timestamps #[0 "\301\302 \207" [erc-hide-timestamps t erc-munge-invisibility-spec] 1 (#$ . 14364) nil])
#@147 Show timestamp information on display.
This function only works if `erc-timestamp-format' was previously
set, and timestamping is already active.
(defalias 'erc-show-timestamps #[0 "\301\302 \207" [erc-hide-timestamps nil erc-munge-invisibility-spec] 1 (#$ . 14537) nil])
#@209 Hide or show timestamps in ERC buffers.

Note that timestamps can only be shown for a message using this
function if `erc-timestamp-format' was set and timestamping was
enabled when the message was inserted.
(defalias 'erc-toggle-timestamps #[0 "\203	\301\202\302\303\304\305 \"\207" [erc-hide-timestamps nil t mapc #[257 "r\211q\210\300 )\207" [erc-munge-invisibility-spec] 2 "\n\n(fn BUFFER)"] erc-buffer-list] 3 (#$ . 14817) nil])
#@66 Print timestamp text-property of an IRC message.

(fn DIR STAMP)
(defalias 'erc-echo-timestamp #[514 "\205\302=\205\211\205\303\304\305	\"\"\207" [erc-echo-timestamps erc-echo-timestamp-format entered message "%s" format-time-string] 7 (#$ . 15263)])
(provide 'erc-stamp)

Zerion Mini Shell 1.0