%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/erc/ |
Current File : //usr/local/share/emacs/27.2/lisp/erc/erc-desktop-notifications.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\300\303!\210\300\304!\210\300\305!\210\306\307\310\311\312\313\314\301&\207" [require erc xml notifications erc-match dbus custom-declare-group erc-notifications nil "Send notifications on PRIVMSG or mentions." :version "24.3" :group] 8) #@23 Last notification id. (defvar erc-notifications-last-notification nil (#$ . 686)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\315\316\306\307\310\317& \207" [custom-declare-variable erc-notifications-icon funcall function #[0 "\300\207" [nil] 1] "Icon to use for notification." :group erc-notifications :type (choice (const :tag "No icon" nil) file) erc-notifications-bus #[0 "\300\207" [:session] 1] "D-Bus bus to use for notification." :version "25.1" (choice (const :tag "Session bus" :session) string)] 10) #@173 Notify that NICK send some MSG, where PRIVP should be non-nil for PRIVMSGs. This will replace the last notification sent with this function. (fn NICK MSG &optional PRIVP) (defalias 'erc-notifications-notify #[770 "\3041= \211\203 \305!\202 p\306\307\310\311\312\313\n!#\314\313 !\315 \316\n\317\320\321\322\323\324\325\326!\327\"\330\331%&\262\2110\207\205G \332@A\"\207" [erc-notifications-bus erc-notifications-last-notification erc-notifications-icon dbus-debug (dbus-error) erc-get-buffer notifications-notify :bus :title format "%s in %s" xml-escape-string :body :replaces-id :app-icon :actions ("default" "Switch to buffer") :on-action make-byte-code 128 "\301\300!\207" vconcat vector [pop-to-buffer] 3 "\n\n(fn &rest _)" signal] 24 (#$ . 1247)]) #@20 (fn PROC PARSED) (defalias 'erc-notifications-PRIVMSG #[514 "\302\303!>\204 \304\305\306D\"\210\307H!@\303!>\204$ \304\305\306D\"\210\310H@\303!>\2047 \304\305\306D\"\210\311H\312!\203X \313\301!\203L \235\204X \314!\204X \315\316#\210\266\317\207" [cl-struct-erc-response-tags erc-track-exclude erc-parse-user type-of signal wrong-type-argument erc-response 2 4 5 erc-current-nick-p boundp erc-is-message-ctcp-and-not-action-p erc-notifications-notify t nil] 9 (#$ . 2024)]) #@36 (fn MATCH-TYPE NICKUSERHOST MSG) (defalias 'erc-notifications-notify-on-match #[771 "\302=\205- \303!@\304\305\306\307#)\266\203\206# \310\301!\205# \211 \235?\205+ \311\"\262\207" [inhibit-changing-match-data erc-track-exclude current-nick erc-parse-user "^Server:" nil t string-match boundp erc-notifications-notify] 11 (#$ . 2528)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315&\207" [custom-declare-variable erc-notifications-mode funcall function #[0 "\300\207" [nil] 1] "Non-nil if Erc-Notifications mode is enabled.\nSee the `erc-notifications-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-notifications-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :group erc-notifications :type boolean] 12) #@273 Toggle ERC notifications mode. With a prefix argument ARG, enable notifications if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. Send notifications on private message reception and mentions. (fn &optional ARG) (defalias 'erc-notifications-mode #[256 "\301 \302\300\303=\203 \304\300!?\202 \305!\306V\"\210\203\"