From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: [OT] emacsclient -t (was Re: [OT] Have you also got hooked by Vim?) Date: Fri, 21 Jan 2011 12:41:36 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=45070 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgKzq-0006fj-E8 for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 12:42:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgKzn-00011Q-N2 for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 12:42:02 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:42502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgKzn-00010e-IP for emacs-orgmode@gnu.org; Fri, 21 Jan 2011 12:41:59 -0500 Received: by fxm12 with SMTP id 12so2053618fxm.0 for ; Fri, 21 Jan 2011 09:41:57 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: Matt Lundin , emacs-orgmode@gnu.org, Dan Davison On Thu, Jan 20, 2011 at 11:00 AM, Eric S Fraga wrote: > Matt Lundin writes: > >> Jeff Horn writes: >> >>> On Wed, Jan 19, 2011 at 9:51 PM, Matt Lundin wrote: >>>> alias emacs=3D"emacsclient -t -a /usr/bin/emacs" >>> >>> Thanks for sharing this. My manual doesn't mention the -t flag. What >>> does it do? (I didn't know about -a, but it looks nifty) >>> >> >> Now that I consider this further (and read the emacs man page), I'm not >> sure if the -t flag is correct here. (It may be new to emacs 24). >> >> In any case, "-nw" is the tried and true flag for doing this. > > IIRC, -t is the same as -nw and is present from emacs 23.1 (maybe > earlier) onwards. =A0Very useful when connecting from a non-graphical > terminal (e.g. a mobile phone) to an existing Emacs running on > X... something I do frequently via =3Dscreen=3D for emulating a persisten= t > connection. So IIUC, I have a windowed Emacsen running on a box where I work. If I run `emacsclient -t somefile.txt` from an SSH connection to that box, it uses the server that was started by the windowed emacs, but instead of opening the file in the windowed emacs, it re-routes it to my SSH session? This would be extremely useful to me. However, when I tried that on my box just now, the terminal session froze and the windowed emacs was brought to the front without the correct buffer being displayed... wonder what I'm doing wrong... This is in my bash profile: function ec(){ emacsclient $1 --alternate-editor=3D"" -t & } Any clues? --=20 Jeffrey Horn http://www.failuretorefrain.com/jeff/