unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs into focus
@ 2008-08-07  5:36 Richard G Riley
  2008-08-07  9:16 ` Tim X
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Richard G Riley @ 2008-08-07  5:36 UTC (permalink / raw)
  To: help-gnu-emacs


Can someone recommend the best way to have emacs come to the foreground
on a Linux desktop? I'm trying to get emacsclient wired up properly so I
can handle mailto URLS from iceweasel (firefox) properly. I have tried:

,----
| /usr/bin/emacsclient -e "(progn (raise-frame)(message-mail (substring \"$1\" 7) \"Subject\"  '((\"from\"  \"Richard Riley<rileyrgdev@gmail.com>\"))))"
`----

But raise-frame does not seem to work on my Gnome desktop.

Replacing raise-frame with (bring-on-top)

where

,----
| (defun bring-on-top()
|   (interactive)
|    (x-send-client-message
|     nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_FULLSCREEN" 1))
| )
`----

Does work but removes the WM border from the emacs frame.

Does anyone have a cleaner solution?

regards

r.





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-08-09 22:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07  5:36 Emacs into focus Richard G Riley
2008-08-07  9:16 ` Tim X
2008-08-07  9:41 ` Joost Kremers
2008-08-07 11:01 ` Andrea Vettorello
2008-08-07 11:52 ` Chris Giroir
     [not found] ` <mailman.15986.1218106891.18990.help-gnu-emacs@gnu.org>
2008-08-07 14:33   ` Richard G Riley
2008-08-07 17:33     ` Andrea Vettorello
     [not found] ` <mailman.15993.1218120233.18990.help-gnu-emacs@gnu.org>
2008-08-07 14:53   ` Richard G Riley
2008-08-07 21:47     ` Bruce Stephens
2008-08-08  4:33       ` Tim X
2008-08-08  1:31 ` Ian Swainson
2008-08-09 22:08 ` Richard G Riley

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).