From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xiao-Yong Jin Newsgroups: gmane.emacs.help Subject: Re: Emacs Lisp Q: Switch Emacs Frame Between Current/Original FVWM Desktop? Date: Thu, 19 Jul 2007 13:07:39 -0400 Message-ID: <871wf4725g.fsf@presario.homelinux.org> References: <1184797865.415997.177070@o11g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184864894 12711 80.91.229.12 (19 Jul 2007 17:08:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2007 17:08:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Edward Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 19:08:13 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 1IBZU4-0007rq-M0 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2007 19:08:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBZU4-00053p-41 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2007 13:08:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBZTp-00053Z-8N for help-gnu-emacs@gnu.org; Thu, 19 Jul 2007 13:07:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBZTn-00052t-Nk for help-gnu-emacs@gnu.org; Thu, 19 Jul 2007 13:07:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBZTn-00052l-AI for help-gnu-emacs@gnu.org; Thu, 19 Jul 2007 13:07:55 -0400 Original-Received: from serrano.cc.columbia.edu ([128.59.29.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IBZTm-0008D9-Uk for help-gnu-emacs@gnu.org; Thu, 19 Jul 2007 13:07:55 -0400 Original-Received: from presario.homelinux.org (dyn-carl-202-52.dyn.columbia.edu [160.39.202.52]) (user=xj2106 mech=PLAIN bits=0) by serrano.cc.columbia.edu (8.13.7/8.13.6) with ESMTP id l6JH7cF4014885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 19 Jul 2007 13:07:42 -0400 (EDT) In-Reply-To: <1184797865.415997.177070@o11g2000prd.googlegroups.com> (Edward's message of "Wed\, 18 Jul 2007 22\:31\:05 -0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.48 on 128.59.29.6 X-detected-kernel: Solaris 9 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:45813 Archived-At: Edward writes: > 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. > I'm not sure I understand your term `desktop' very well. However, if you mean different DISPLAY, emacsclient is capable to open a new frame on new display, AFAIK. Something like this will do, emacsclient -e "(make-frame-on-display \"$DISPLAY\")" But if you mean the Desktop in FVWM2, you might just use the command provided by our powerful window manager. Bind All ("emacs") MoveToDesk or similar to some keys you like in FVWM2, and you can feel it. > > Edward > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > > Cheers, Xiao-Yong -- c/* __o/* <\ * (__ */\ <