From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: emacsclient usage Date: Tue, 18 Dec 2007 00:07:41 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <6532e226-caed-43bb-923d-b2b26cc2031b@d21g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197968284 19600 80.91.229.12 (18 Dec 2007 08:58:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 08:58:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 18 09:58:17 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 1J4YHC-0007t7-Rd for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 09:58:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4YGs-0007Kl-K3 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 03:57:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e23g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 59.95.5.73 Original-X-Trace: posting.google.com 1197965261 21190 127.0.0.1 (18 Dec 2007 08:07:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Dec 2007 08:07:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000prf.googlegroups.com; posting-host=59.95.5.73; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070508 Iceweasel/2.0.0.4 (Debian-2.0.0.4-0etch1), gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154746 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:50171 Archived-At: On Dec 17, 8:03 pm, Nikos Apostolakis wrote: > rustom writes: > > Trying to use emacsclient (though not yet sure its what I need to > > use :-) ) came upon the following questions: > > > 1. How do I tell emacsclient that my server is not emacs but emacs- > > snapshot-gtk ? > > If you are using Debian then each emacs flavor has its own server. > For emacs-snapshot-gtk is probably emacsclient.emacs-snapshot. > Still on Debian you can make emacs-snapshot and its client the > standard alternative for emacs by using the command > `update-alternatives'. > > > 2. How do I tell emacsclient (to tell the server...) not to read a > > file but to run a command (say remember) > > > Note in my attempts so far it barfs at the -e option though the man > > page shows it. It accepts and ignores the -a or ALTERNATE_EDITOR > > settings > > I think that the -e option is relatively recent, it doesn't work > with older emacsclient. > > HTH, > Nikos Thanks that was quite helpful. Ive set gconf-editor->apps->metacity->keybinding-commands->command_1 to the foll: bash -c "wmctrl -a emacs-snapshot-gtk; emacsclient.emacs-snapshot -e '(remember)'" The wmctrl is required because the emacsclient on its own does not activate the emacs window. And because of that the bash -c is required. Is there a neater way?