help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Lisp Q: Switch Emacs Frame Between Current/Original FVWM Deskt


From: Anselm Helbig
Subject: Re: Emacs Lisp Q: Switch Emacs Frame Between Current/Original FVWM Desktop?
Date: Thu, 19 Jul 2007 09:45:23 +0200
User-agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.0 Mule/5.0 (SAKAKI)

Hi, 

> I recently realized you can send Elisp commands to an Emacs session
> (with a running server) using the following shell command:
> 
> emacsclient -n -e "(iconify-or-deiconify-frame)"
> 
> It's nice to be able to iconify or deiconify Emacs from the command
> line by setting the above command to an easy-to-type alias,  but I'd
> really like to do something a little more useful.  I want to bring
> Emacs to my current FVWM2 desktop and then send it back to its
> original desktop when I'm done,  something like (thisdesktop-or-
> thatdesktop-frame).  Anyone know a nice,   elegant way to accomplish
> this?  Thanks in advance.

AFAIK workspaces/desktops are a window manager specific thing, so
there is no general solution to this. For FVWM, there's a program
called FvwmConsole which looks like it could do the trick - you could
define some functions to change the desktop which call FvwmConsole and
issue the appropriate commands to FVWM and then add them to the right
hooks, or call them with some longish invocation to emacsclient, for
which you will probably write a shell function. 8-)

I don't use Fvwm myself, but if you need some help with the elisp,
post again. 

Regards, 

Anselm




reply via email to

[Prev in Thread] Current Thread [Next in Thread]