unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: "Jan Djärv" <jan.h.d@swipnet.se>,
	"Lennart Borgman" <lennart.borgman@gmail.com>,
	"Stefan Monnier" <monnier@iro.umontreal.ca>,
	"Emacs-Devel devel" <emacs-devel@gnu.org>
Subject: Re: Add function to make frame topmost?
Date: Sun, 02 May 2010 15:43:03 +0100	[thread overview]
Message-ID: <4BDD8F77.5050702@harpegolden.net> (raw)
In-Reply-To: <87iq767aln.fsf@uwakimon.sk.tsukuba.ac.jp>

[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]

Stephen J. Turnbull wrote:
> Jan Djärv writes:
>  > Lennart Borgman skrev 2010-05-02 00.44:
>  > 
>  > > I think this is useful for reminders/appointments, log tail buffers etc.
>  > 
>  > I don't get it.
> 
> "Programmer knows best."  Why users put up with it, I don't know.
> 
>  > For reminders I'd rather see the kind of windows gnome uses for this, see 
>  > screen shot.  They are indeed topmost, but not transient for.
> 
> That's a pretty good try, but it's still more obtrusive than it need
> be.  Why a close box?  *Any* click it such a window should dismiss it.
> 

FWIW, on my system, notifications popups via libnotify [1] have close 
buttons but they're cosmetic/affordances, clicking on them anywhere 
dismisses them. Using libnotify means the desktop environment's uniform 
notifications are used. I use XFCE, their appearance and behaviour is 
configured via xfce4-notifyd-config, which allows changing graphical 
theme, position, timeout and opacity of them. (I found a tip on the arch 
linux wiki saying gnome users can edit the registry^Wgconf key 
/apps/notification-daemon/ to configure them on GNOME)

Try the following from the shell:

aptitude install libnotify-bin
notify-send  "Hello, World" "<b>I am a Fish.</b> On $(date)"

Results shown in the attached screenshot.

Linking emacs, at least x11/gtk emacs, against libnotify and supporting 
a (notify-send ...) or something usable from within emacs would probably 
be quite doable. Maybe the elisp api could be wrapped around the other 
platforms' native similar facilities on non-x11.

This approach wouldn't allow the notification popup to be an emacs frame 
with arbitrary contents, obviously you're limited to what the 
notification kinda-sorta-spec allows.

[1]
A bit different and more complex than the systray spec balloon message 
api I previously mentioned, allowing fancier notifications.

http://www.galago-project.org/docs/index.php
http://www.galago-project.org/specs/notification/0.9/index.html
http://manishtech.wordpress.com/2009/03/29/working-with-libnotify/

[-- Attachment #2: notifyeg.png --]
[-- Type: image/png, Size: 28575 bytes --]

  parent reply	other threads:[~2010-05-02 14:43 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30  1:48 Add function to make frame topmost? Lennart Borgman
2010-04-30 13:06 ` Stefan Monnier
2010-04-30 13:26   ` Lennart Borgman
2010-04-30 20:54     ` Stefan Monnier
2010-04-30 22:02       ` Jan Djärv
2010-04-30 22:13         ` Lennart Borgman
2010-05-01  8:00           ` Jan Djärv
2010-04-30 22:32       ` David De La Harpe Golden
2010-04-30 23:22         ` Lennart Borgman
2010-05-01  1:48           ` David De La Harpe Golden
2010-05-01  2:06             ` Lennart Borgman
2010-05-01 13:05               ` Stefan Monnier
2010-05-01 18:03                 ` David De La Harpe Golden
2010-05-01 20:20                   ` Drew Adams
2010-05-01 22:02                     ` David De La Harpe Golden
2010-05-01 22:09                       ` David De La Harpe Golden
2010-05-02 14:07                       ` Drew Adams
2010-05-02 15:27                         ` David De La Harpe Golden
2010-05-02 15:58                           ` stack-order (z-order) parameter for frames [was: Add function to make frame topmost?] Drew Adams
2010-05-01 22:44                   ` Add function to make frame topmost? Lennart Borgman
2010-05-02  1:18                     ` David De La Harpe Golden
2010-05-02  7:47                       ` Jan Djärv
2010-05-02 12:52                         ` David De La Harpe Golden
2010-05-02  7:27                     ` Jan Djärv
2010-05-02 12:27                       ` Stephen J. Turnbull
2010-05-02 12:53                         ` Jan Djärv
2010-05-02 13:44                           ` David De La Harpe Golden
2010-05-03  3:16                             ` Stephen J. Turnbull
2010-05-02 14:43                         ` David De La Harpe Golden [this message]
2010-05-02 14:48                           ` Lennart Borgman
2010-05-02 14:55                             ` David De La Harpe Golden
2010-05-02 16:48                           ` David De La Harpe Golden
2010-05-02 18:58                           ` Jan Djärv
2010-05-02 21:32                             ` Desktop bubble notifications [Was: Re: Add function to make frame topmost?] David De La Harpe Golden
2010-05-03  0:19                               ` Lennart Borgman
2010-05-03  2:29                                 ` David De La Harpe Golden
2010-05-03 19:46                                   ` Stephen Eilert
2010-05-03 19:58                                     ` Lennart Borgman
2010-05-04 11:48                               ` Desktop bubble notifications Bastien
2010-05-02 19:17                         ` Add function to make frame topmost? chad
2010-05-03  3:33                           ` Stephen J. Turnbull
2010-05-02 14:01                       ` Drew Adams
2010-05-02 15:06                         ` Lennart Borgman
2010-05-03  3:43                           ` Stephen J. Turnbull
2010-05-03  9:59                             ` Lennart Borgman
2010-05-03 17:21                               ` Stefan Monnier
2010-05-03 19:50                                 ` Lennart Borgman
2010-05-03 21:31                               ` David De La Harpe Golden
2010-05-02  0:36                   ` Stefan Monnier
2010-05-02  1:17                     ` David De La Harpe Golden
2010-05-01  2:10           ` David De La Harpe Golden
2010-05-01  2:32             ` Lennart Borgman
2010-05-01  3:49               ` Lennart Borgman
2010-05-03 16:39             ` Tom Tromey
2010-05-03 19:33               ` systray support [was: Re: Add function to make frame topmost?] Dan Nicolaescu
2010-05-01  3:19           ` Add function to make frame topmost? David De La Harpe Golden
2010-05-01  8:28           ` Jan Djärv
2010-05-01 19:46             ` David De La Harpe Golden
2010-05-01 22:46               ` Lennart Borgman
2010-05-01  5:25     ` Eli Zaretskii
2010-05-03 12:47 ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BDD8F77.5050702@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=lennart.borgman@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=stephen@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).