From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.devel Subject: Re: emacsclient misbehaves Date: Mon, 11 Feb 2008 09:01:36 +0100 Message-ID: <20080211080159.GY15002@boetes.org> References: <20080130213919.GI15002@boetes.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202720564 21222 80.91.229.12 (11 Feb 2008 09:02:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 09:02:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 10:03:04 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOUYj-0000Y7-Qj for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 10:02:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOUYG-0005NP-OH for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 04:02:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOUYA-0005MA-Ve for emacs-devel@gnu.org; Mon, 11 Feb 2008 04:02:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOUY6-0005Jo-Sh for emacs-devel@gnu.org; Mon, 11 Feb 2008 04:02:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOUY6-0005Ji-99 for emacs-devel@gnu.org; Mon, 11 Feb 2008 04:02:02 -0500 Original-Received: from boetes.org ([213.84.147.9]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JOUY5-0001m7-NG for emacs-devel@gnu.org; Mon, 11 Feb 2008 04:02:02 -0500 Original-Received: (qmail 22181 invoked by uid 1000); 11 Feb 2008 08:01:59 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-detected-kernel: by monty-python.gnu.org: OpenBSD 3.0-3.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88731 Archived-At: Stefan Monnier wrote: > Han wrote: > > I used this command to start editing a file on the correct line: > > > emacsclient --eval "(progn (find-file > > \"$PWD/Pkgfile\")(beginning-of-buffer)(search-forward > > \"version=\")(move-end-of-line nil))" > > > This worked fine. Now if I do it emacsclient does open the > > file and goes to the right line, it just doesn't get the tty > > like it should. It prints the line one would expect in the > > minibuffer on stdout. > > Until a few months ago, emacsclient never got the tty. Were > you using the multi-tty branch? Ah, I used the mtty-branch before it was added to the main tree. > That emacsclient had a different argument convention, > incompatible with the Emacs-22 emacsclient, so it was changed as > part of the inclusion into Emacs. If you want to grab the tty, > you have to request it explicitly with "-t" (or "-c"). Indeed, and rather unexpectedly. Thanks for the heads-up. # Han