From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Emacs Lisp Q: Switch Emacs Frame Between Current/Original FVWM Desktop? Date: Thu, 19 Jul 2007 09:45:23 +0200 Organization: Freie Universitaet Berlin Message-ID: <87zm1sj0q4.wl@nospam.anselm.chemie.fu-berlin.de> References: <1184797865.415997.177070@o11g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1184834465 27797 80.91.229.12 (19 Jul 2007 08:41:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2007 08:41:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 10:41:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IBRZC-0004B8-CT for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2007 10:40:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBRZB-0002Bf-Po for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2007 04:40:57 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-X-Trace: news.uni-berlin.de SVwAGPCEdwHbDi8+gkY9Cw1OHiel5fqF6G07HflDQlx8BjWOQL92ZT7dcO Cancel-Lock: sha1:h3nOL6ZlhgJ/uUQGY0e8sXW/pfs= In-Reply-To: <1184797865.415997.177070@o11g2000prd.googlegroups.com> Mail-Followup-To: anselm@chemie.fu-berlin.de User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.0 Mule/5.0 (SAKAKI) Original-Xref: shelby.stanford.edu gnu.emacs.help:150217 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45802 Archived-At: 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