From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: erc-burnt-toast - Provide Windows Notification Center to erc with burnt-toast and erc-match Date: Thu, 05 Mar 2020 08:28:13 +0200 Message-ID: <8336anwc1u.fsf@gnu.org> References: <87d09t8cyx.fsf@gmx.de> <87v9nk77i1.fsf@gmx.de> <83pndsw2od.fsf@gnu.org> <87mu8w6rml.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="19785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, michael.albinus@gmx.de, mab@gnu.org To: Corwin Brust Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 05 07:29:04 2020 Return-path: Envelope-to: ged-emacs-devel@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 1j9k0G-00052w-2I for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Mar 2020 07:29:04 +0100 Original-Received: from localhost ([::1]:43782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9k0F-0007xk-4y for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Mar 2020 01:29:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58977) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9jzn-0007Xv-Ih for emacs-devel@gnu.org; Thu, 05 Mar 2020 01:28:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9jzn-0006yd-2i; Thu, 05 Mar 2020 01:28:35 -0500 Original-Received: from [176.228.60.248] (port=4208 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9jzk-0003VU-Da; Thu, 05 Mar 2020 01:28:33 -0500 In-Reply-To: (message from Corwin Brust on Wed, 4 Mar 2020 16:09:52 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245248 Archived-At: > From: Corwin Brust > Date: Wed, 4 Mar 2020 16:09:52 -0600 > Cc: Eli Zaretskii , mab@gnu.org, Emacs developers > > There is one feature I cannot see how to accomplish and I'm afraid I > somewhat centered erc-burnt-toast around it. > > Burnt-Toast calls this feature Shoulder Tap Notifications, but I'll > tall them "STN", here. I find this quite useful. STN will fall back > creating to creating normal toast/addition to stack/whatever is > configured in WIndows. When an extra argument "person" matches the > Email address of a contact, and given that contact has been previously > pinned to the task-bar, a second additional argument "image" can be > displayed hovering over the deskop. > > I use the app "Buttery Toast" to make my start menu and task-bar > "extra hidden" (they did not show unless I press the "flag" key). In > any case, I often have (several) apps full-screen. So erc-burnt-toast > makes a someone popup and dance over my full-screen Netflix when I get > mentioned on IRC, and my friends all think I am cool, and that Emacs > is cool, and so on. Sorry, I don't think I understand what that means in practice. Can you describe in more detail what this "Shoulder Taps" feature does, and perhaps show a few screenshots? I know very little about the new look-and-feel of Windows 10, and even less about all the new buzzwords they added to describe those features. Also, it is not yet clear to me what kind of information would you like to show in these ERC notifications. Can you post a more detailed description, and perhaps also tell which features of D-Bus notifications you think you may be lacking in w32-notification-notify? (I've read the README on the erc-burnt-toast site, but I still have the above questions largely unanswered, probably because I don't know enough about the Windows 10 notifications.) > WWYT of adding "SholderTaps"? II haven't started looking at w32's > source so not sure what technical options may exist. AFAIU, this cannot be done in Emacs, because the underlying APIs are for C# programs. So if you want this, you will have to invoke external programs (which will have to be written in C# or compatible languages). That said, w32-notification-notify supports displaying images via the :icon parameter, so I'd suggest first to investigate whether this could do at least some subset of what "shoulder taps" do. There's one other aspect of this discussion that bothers me: it sounds like erc-burnt-toast is for Windows only? and there's no direct equivalent of that for GNU/Linux? If that's so, I suggest first to figure out how these notifications will look on GNU/Linux (or in general any platform that fully supports D-Bus), and only then discuss how to do something similar natively on Windows. The erc-burnt-toast package is out there, so people who want it can use it; but adding a core feature to ERC which comes with Emacs must first implement this on GNU systems, and we cannot, as a matter of policy, have significant features that work only on non-free platforms, without any equivalents on free ones.