[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposed new core library: alert.el
From: |
John Wiegley |
Subject: |
Re: Proposed new core library: alert.el |
Date: |
Fri, 06 Nov 2015 10:50:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
>>>>> Eli Zaretskii <address@hidden> writes:
> I think it would make sense to provide an intermediate platform-independent
> layer for displaying alerts, not unlike file-notify.el that conceals the
> supported back-ends behind a unified portable API. Then Emacs features could
> use this facility as part of their application code, knowing that the alert
> will be displayed on most or all of the supported platforms.
This is actually what alert.el was written to do. The various platform-
specific backends are separate from the notification engine, and could easily
be moved to their own files (and perhaps should be).
The default alert backend is 'message+log', which works everywhere, and adds
just a touch of extra functionality on top of the current `message'. For
example, you could filter on severity, choose to colorize messages from a
certain component, etc.
Another backend is 'fringe' (it colors the fringe, for example turning green
to indicate a successful M-x compile, or red to indicate a failing one). This
won't work in contexts without a fringe, but it's also not platform specific.
John
- Re: Posting new feature proposals on the wiki?, (continued)
- Re: Posting new feature proposals on the wiki?, raman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, John Wiegley, 2015/11/11
- Re: Posting new feature proposals on the wiki?, T.V Raman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, Richard Stallman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, T.V Raman, 2015/11/11
- Re: Posting new feature proposals on the wiki?, Artur Malabarba, 2015/11/12
- Re: Posting new feature proposals on the wiki?, T.V Raman, 2015/11/12
- Re: Posting new feature proposals on the wiki?, Richard Stallman, 2015/11/12
- Re: Posting new feature proposals on the wiki?, John Wiegley, 2015/11/16
- Re: Posting new feature proposals on the wiki?, raman, 2015/11/16
- Re: Proposed new core library: alert.el,
John Wiegley <=
- Re: Proposed new core library: alert.el, raman, 2015/11/05
- Re: Proposed new core library: alert.el, John Wiegley, 2015/11/05
- Re: Proposed new core library: alert.el, Rasmus, 2015/11/06
- Re: Proposed new core library: alert.el, Artur Malabarba, 2015/11/06
- Re: Proposed new core library: alert.el, Xue Fuqiao, 2015/11/06
- Re: Proposed new core library: alert.el, Juanma Barranquero, 2015/11/06
- Re: Proposed new core library: alert.el, Eli Zaretskii, 2015/11/06
- Re: Proposed new core library: alert.el, Stefan Monnier, 2015/11/06
- Re: Proposed new core library: alert.el, raman, 2015/11/06
- Re: Proposed new core library: alert.el, John Wiegley, 2015/11/06