From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Proposed new core library: alert.el Date: Wed, 04 Nov 2015 21:05:49 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446689183 25814 80.91.229.3 (5 Nov 2015 02:06:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2015 02:06:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 05 03:06:14 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zu9wL-0002yt-Jw for ged-emacs-devel@m.gmane.org; Thu, 05 Nov 2015 03:06:13 +0100 Original-Received: from localhost ([::1]:58117 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu9wK-00064g-U0 for ged-emacs-devel@m.gmane.org; Wed, 04 Nov 2015 21:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu9w5-00064F-AK for emacs-devel@gnu.org; Wed, 04 Nov 2015 21:05:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu9w1-0006B6-Vx for emacs-devel@gnu.org; Wed, 04 Nov 2015 21:05:57 -0500 Original-Received: from mail-yk0-x229.google.com ([2607:f8b0:4002:c07::229]:36363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu9w1-0006B1-ST for emacs-devel@gnu.org; Wed, 04 Nov 2015 21:05:53 -0500 Original-Received: by ykba4 with SMTP id a4so107356321ykb.3 for ; Wed, 04 Nov 2015 18:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mail-followup-to :mime-version:content-type; bh=07S03q0tgYSFK1XB3jkEYevhb0jTyRWiD3rbi1DEg+Q=; b=SGsuDy78+fWB5iISZ8wfHpcQNIPlDftLhNnWYzLkRh5HuqRXFyulUy7R8LGHSAdMLR DWhTovCf4dEedO8XM7oJwyqiYXwGadlc22Bn2bXmlzOu5h6EwIqi9Y4YGieL7Y0mJcXc DsUOwHHAKB52ci40lrDm9nvbySxHlqOHQO6wIjIvqzvJ9fSJI2XKNE52xvQAL6STZC+i ou//nPsoYbOReqQzbF523GHV/UoNXM0ejtVjzJAy4WyTxOSOxn7Y6owj9tLv3kEIMs4N Cj2nPNBRUJy2xa311ri9pCfOsGTZ+8kjPjXb5G4Fih+ZLL69KTnPslQqfxoHVmP1IZA8 xTWg== X-Received: by 10.31.52.193 with SMTP id b184mr4804124vka.136.1446689153346; Wed, 04 Nov 2015 18:05:53 -0800 (PST) Original-Received: from Hermes-2.local ([38.140.12.50]) by smtp.gmail.com with ESMTPSA id 133sm3077978vkf.9.2015.11.04.18.05.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Nov 2015 18:05:52 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Hermes-2.local (Postfix, from userid 501) id 61B4948E6FA3; Wed, 4 Nov 2015 21:05:51 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193261 Archived-At: alert.el is a library I've been using for the last four years to provide a richer notification interface than `message'. The current version is here: https://github.com/jwiegley/alert/blob/master/alert.el It supports many alert backends: ;; 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 ;; notifications - Uses notifications library via D-Bus ;; notifier - Uses terminal-notifier on OS X, if it is on the PATH ;; toaster - Use the toast notification system alert.el also allows highly configurable user-styles, for deciding when and how various alerts are presented. I'm not proposing Emacs be changed to use alert, only that alert be made available to all package authors as a richer alternative to `message' or `notifications-notify'. I suggest core rather than ELPA because I'd like to encourage wider use of such a facility; but I could see an argument for moving it into ELPA too. Being in core would give justification for adding a section in the Elisp manual on using alerts for rich notification. Or, we could start applying it in existing core modules where it makes sense to do so. John