From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73538: [PATCH] Add notifications support to 'mpc' Date: Sun, 13 Oct 2024 14:11:58 +0200 Message-ID: <87ed4krylt.fsf@gmx.de> References: <87frpjtmx6.fsf@pub.pink> <87r08lwhi1.fsf@pub.pink> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: John Wiegley , Stefan Monnier , 73538@debbugs.gnu.org To: john muhl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 13 14:13:02 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1szxT3-0003Xr-FI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Oct 2024 14:13:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szxSr-0005ur-3j; Sun, 13 Oct 2024 08:12:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szxSo-0005tU-J2 for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 08:12:46 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szxSo-0003PO-Aa for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 08:12:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=NtgpakE+YOxkiCJCrtHMJ1Zqu7/lsTPPHCsxJpcrMio=; b=INGC3hxEUk8d19KDg1iZEnAHdZ//H6IXn9rlQpT5xMPSFjtbIoRke6LKv0ETD0FDZrN0bZA9yRT4CgyXp5nSAR2M/BUvLcIRQYOHUTKoIsrmayipBlYFJd8XbAUGPcE+i/IG4mNP0edvDYgknzHXsG56hBbGrTFsKrDnogd8Rlcc+EoKe+G+sJFiYzWZVdGBywF2R9EBLfckzlwfFD0fXlBDdDvOClMxoe37q5yZXsTjDyqe47da8YGIiuwYSwgB0CoEpCyi9Rs+MxrndBH0G5NKV+JZJiIrAe3NWEnhFQVr9fofUJ6MBazLFf5+SSmF+RmrVlU4ineku+ZEdbL6Sw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szxT3-0006do-K6 for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 08:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Oct 2024 12:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73538 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73538-submit@debbugs.gnu.org id=B73538.172882156025490 (code B ref 73538); Sun, 13 Oct 2024 12:13:01 +0000 Original-Received: (at 73538) by debbugs.gnu.org; 13 Oct 2024 12:12:40 +0000 Original-Received: from localhost ([127.0.0.1]:50489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szxSh-0006d4-Hi for submit@debbugs.gnu.org; Sun, 13 Oct 2024 08:12:40 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:38471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szxSe-0006cg-FH for 73538@debbugs.gnu.org; Sun, 13 Oct 2024 08:12:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1728821523; x=1729426323; i=michael.albinus@gmx.de; bh=NtgpakE+YOxkiCJCrtHMJ1Zqu7/lsTPPHCsxJpcrMio=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=jY4swKIWE3vXoi6z8Cmc4OyFkR4h3RoMVSbtzYQcQj81xFkxredvRfeVuYa5+PpK Fvv+xwS7XpHfzVO5ntQZYRpa7kTRQHtrQ3aIelPWJPVSMxsDGE8GYzYobWqybUNWx tN2RMGs4uHjzSNjs3uczbO0bjiw+2dcGTwVnrre3JlRsr9FjyLBndkjRZnVnCbig7 +R0ZExKVanEJMMw7jpm4fa5zlYdD8PV5B2/ZDplYVmLIu0VIk7aBmMX9BZ0vGt1I0 cUQIsfY3FIKLEbdvzP+PC3as9xpfyJ0pwc5byUvvW0ltrujGsy6vibXyDU8c0Yv0J YWndZfyXOpO9JkhQog== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MsYqp-1tnecz2879-00yeEJ; Sun, 13 Oct 2024 14:12:02 +0200 In-Reply-To: <87r08lwhi1.fsf@pub.pink> (john muhl's message of "Fri, 11 Oct 2024 20:39:29 -0500") X-Provags-ID: V03:K1:scJ/BKUDiIgjqIkz3vAx5m/mdOGl1DftE2Te69dCQKOTQr/jLRB g10QFV+zBNp0f85bpjXOEosKtRLnoa79jpIQ88QSLeWpqaloDc93T2rjGVjMwyjjxmf+u/u GVbyTpEOReRi56sXlMs0mJPb2Zue7+pcq+J68zoNFXzEA+MpyE8MLPbwNmm9rxz1DR7laVN hBnEEBIhmFih59Tjs1Pxg== UI-OutboundReport: notjunk:1;M01:P0:rTfOX3gpVDw=;AIA560X/4wY9EocEwebY3/xoAz1 c9yEv0t2NhZVk6DzXhI039qomXZ5c7/QqieQ3t1sfnQPkPQMdZ4kJDjsG3vINRZc+NyoFvUDY 5IqY66YcculQzZVeENa3W4DtOAyyb+jWCnklJIoXzaFdB1GPf1xzuCvgHt4+VUYRhPEGadmdG UR3hc7tER9ZpAp/j7UOXbk06VH+WkoCTNOiarJJB2T+ZafWIYxmBsl45wDm5p/zJq89T/PO8B Al8aUoyjCoAkv67Du6AYstNy6bXHOahKEBHvPtJChD3dQ+MfIXKtIipI/LGPNGXv8qhGpJlAU lFU8ht9/S69HwqoHbB+EcHlovQjiVdClsnUSx5Max21PYpVz5rHVc1l005u0+M9tJlzSgW3A6 2UzvJHrQ+5mIrHqcVj1C7c56NS+79bq+rLqkjHM4G+ijF4u0tol6c21WMbw/cWCBsaFPSyxtY 8BO2c46hNb7Hy0YLSdFNt16mvQ5RoUngweXojetL4Lo4Z+RwkF/P6xLhVWFuN0r714MF+RgVp +naAZv5YnHdA3DtXO5Ncc24s5NgX1y/Y0FE8J5+vbuoF1uGWaam13VxGAY1NuZLihSp5lM7sn VyrV6iklpt8DCjDFingqkugbb+PJTSxTyo5LbQFxq+baLKqDvZ/et3RTcnFzkV1paTBwgSb3o m625piTv6jmnDfDeggGhGbXzZMkn5Wd/8haBrliPk52rcXNsZRySF7qnSlHsZMCrTrt9SCk+G vrLBmg2t6w8mddNOwBiUYbjpczsughJArbUitkXFUTTRaSjzydlIa/+D4um+mVs1FmDjjirN X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293516 Archived-At: john muhl writes: Hi John, > Well there are erc-notifications-notify, gnus-notifications-notify > and org-show-notifications but none of those seemed appropriate > for reuse by mpc. There is alert.el in MELPA, and some other packages which use it. Perhaps it could help? --8<---------------cut here---------------start------------->8--- /home/albinus/.emacs.d/elpa/archives/melpa/elpa-packages.eld 96: (alert :url "https://github.com/jwiegley/alert.git") 97: (alert-termux :url "https://github.com/gergelypolonkai/alert-termux.= git") 99: (alert-toast :url "https://github.com/gkowzan/alert-toast.git") 3294: (mu4e-alert :url "https://github.com/xzz53/mu4e-alert.git") 3600: (org-alert :url "https://github.com/spegoraro/org-alert.git") 4312: (rcirc-alert :url "https://github.com/csantosb/rcirc-alert.git") 4314: (rcirc-alertify :url "https://github.com/fgallina/rcirc-alertify.git= ") 4954: (term-alert :url "https://github.com/calliecameron/term-alert.git") 5310: (weechat-alert :url "https://github.com/Kungi/weechat-alert.git") --8<---------------cut here---------------end--------------->8--- Yes, I would like to see alert.el in GNU ELPA. > Rather than add a fourth implementation I removed support for > everything except DBus. I=E2=80=99ll try to work up a patch for > notifications.el that could be used in erc, gnus, org and mpc then > we can revisit support for the rest. Does that sound OK or do you > have another idea? Perhaps they could be changed to use alert.el instead? In its Commentary, alert.el says: --8<---------------cut here---------------start------------->8--- ;; There are several builtin styles, and it is trivial to create new ones. ;; The builtins are: ;; ;; fringe - Changes the current frame's fringe background color ;; mode-line - Changes the current frame's mode-line background color ;; gntp - Uses gntp, it requires gntp.el (see https://github.com= /tekai/gntp.el) ;; growl - Uses Growl on OS X, if growlnotify is on the PATH ;; ignore - Ignores the alert entirely ;; libnotify - Uses libnotify if notify-send is on the PATH ;; log - Logs the alert text to *Alerts*, with a timestamp ;; message - Uses the Emacs `message' facility ;; momentary - Uses the Emacs `momentary-string-display' facility ;; notifications - Uses notifications library via D-Bus ;; notifier - Uses terminal-notifier on OS X, if it is on the PATH ;; osx-notifier - Native OSX notifier using AppleScript ;; toaster - Use the toast notification system ;; x11 - Changes the urgency property of the window in the X Wi= ndow System ;; termux - Use termux-notification from the Termux API --8<---------------cut here---------------end--------------->8--- > Thanks. Best regards, Michael.