From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ken Manheimer" Newsgroups: gmane.emacs.devel Subject: emacsclient almost working! Date: Mon, 21 Apr 2008 14:17:24 -0400 Message-ID: <2cd46e7f0804211117k33a4d515p1863f2b16c9c9419@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_16810_13450811.1208801844458" X-Trace: ger.gmane.org 1208801924 2158 80.91.229.12 (21 Apr 2008 18:18:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2008 18:18:44 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 21 20:19:09 2008 connect(): Connection refused 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 1Jo0bb-0000Hm-8X for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 20:19:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jo0as-0006Wu-3i for ged-emacs-devel@m.gmane.org; Mon, 21 Apr 2008 14:18:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jo0an-0006Wa-CL for emacs-devel@gnu.org; Mon, 21 Apr 2008 14:18:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jo0ai-0006Uo-D6 for emacs-devel@gnu.org; Mon, 21 Apr 2008 14:18:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jo0ai-0006Ul-8b for emacs-devel@gnu.org; Mon, 21 Apr 2008 14:18:12 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jo0ac-0004dX-2c for emacs-devel@gnu.org; Mon, 21 Apr 2008 14:18:12 -0400 Original-Received: by wa-out-1112.google.com with SMTP id k34so3035662wah.10 for ; Mon, 21 Apr 2008 11:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=jW7jQ/8EzPssrsaE5T1nT/Gv/kBTRG/EEYBqTA+qHLM=; b=dFq3/hBefzS/4iDTNrr4eqSz6tzNuS+PzrYwsoYSl0090ohhPrQLMfHc9QiAIfrNjNb7UEzPWO9KZXAU+WsxxGuOWwr22P5Zc2b2oqQdDWUKoh8eUZ4JP8Fqa8qyar7Z7n6zgNEx6AwAK+Ah+9UQR0o7QRm665NP/E/xG2p0rK4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=IpxXvGaAaIy/qxouEi/BJOOAqFST/hpxK5Y4Koro/y4FKtrOj1dcuRVl7aOiW95AIWqe7Lhi/V/bdyfe6Uef+LjI+kGADt/8L9sb0Kz/oQ7VvLpHJf+JimdureObm20Suy1Eczo3wkxJqxgpPxpgMVmfa0Ois2NMkKb4rOxsP60= Original-Received: by 10.114.176.1 with SMTP id y1mr3380531wae.176.1208801844482; Mon, 21 Apr 2008 11:17:24 -0700 (PDT) Original-Received: by 10.114.160.14 with HTTP; Mon, 21 Apr 2008 11:17:24 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:95669 Archived-At: ------=_Part_16810_13450811.1208801844458 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi, all. i'm thrilled to see that - in emacs 23.0.60, debian "emacs-snapshot" from a few days ago - i can use emacsclient to get a tty frame connected to a X-based emacs session! yay, yay, yay! i had to poke and prod a bit to get it to work, though, and am wondering whether this is a known problem. specifically, if i just do emacsclient --tty i get an assertion error: *ERROR*: Assertion failed: (eq (match-end 0) (length string)) i avoid that error by inhibiting the shell environment (and adding back the TERM setting): env -i TERM=xterm emacsclient --tty (spelunking a tiny bit through the operation, it looks like my elaborate shell environment, with numerous multi-line shell functions, may be thwarting server.el server-process-filter. it may be something else in the environment, though.) looks like emacsclient is a bit too sensitive to environment settings. it sure is nice to use the multi-tty support, though!! -- ken http://myriadicity.net ------=_Part_16810_13450811.1208801844458 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi, all.  i'm thrilled to see that - in emacs 23.0.60, debian "emacs-snapshot" from a few days ago - i can use emacsclient to get a tty frame connected to a X-based emacs session!  yay, yay, yay!  i had to poke and prod a bit to get it to work, though, and am wondering whether this is a known problem.

specifically, if i just do

  emacsclient --tty

i get an assertion error:

  *ERROR*: Assertion failed: (eq (match-end 0) (length string))

i avoid that error by inhibiting the shell environment (and adding back the TERM setting):

  env -i TERM=xterm emacsclient --tty

(spelunking a tiny bit through the operation, it looks like my elaborate shell environment, with numerous multi-line shell functions, may be thwarting server.el server-process-filter.  it may be something else in the environment, though.)

looks like emacsclient is a bit too sensitive to environment settings.

it sure is nice to use the multi-tty support, though!!
--
ken
http://myriadicity.net ------=_Part_16810_13450811.1208801844458--