From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: emacsclient with emacs-23.0.60 Date: Mon, 29 Oct 2007 11:22:48 +0100 Message-ID: <87d4uy1apz.fsf@thievol.homelinux.org> References: <87k5p7o9pl.fsf@thievol.homelinux.org> <87lk9mq2b6.fsf@thievol.homelinux.org> <76E2A7CF-8662-4C2E-9B9A-70DCF83CFFB9@Web.DE> <871wbea9ym.fsf@columbia.edu> <99BDC275-1B57-4F1D-A534-584E2B426F2C@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1193652891 23450 80.91.229.12 (29 Oct 2007 10:14:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2007 10:14:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 11:14:54 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 1ImRe1-0001jx-Pw for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Oct 2007 11:14:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImRds-0003xq-6V for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Oct 2007 06:14:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImRdL-0003wB-UM for help-gnu-emacs@gnu.org; Mon, 29 Oct 2007 06:14:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImRdK-0003v1-Ez for help-gnu-emacs@gnu.org; Mon, 29 Oct 2007 06:14:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImRdK-0003uc-6k for help-gnu-emacs@gnu.org; Mon, 29 Oct 2007 06:14:10 -0400 Original-Received: from sp604005mt.neufgp.fr ([84.96.92.11] helo=smtp.Neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImRbL-0000kI-Lt for help-gnu-emacs@gnu.org; Mon, 29 Oct 2007 06:12:08 -0400 Original-Received: from thievol.homelinux.org ([88.141.47.90]) by sp604005mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0JQO005MC4C1GPE1@sp604005mt.gpm.neuf.ld> for help-gnu-emacs@gnu.org; Mon, 29 Oct 2007 11:12:02 +0100 (CET) In-reply-to: <99BDC275-1B57-4F1D-A534-584E2B426F2C@Web.DE> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUAAAD/eiojJC8HDgL9 q6CxcyAADQCPoKCbKDEHHjqGqpmkAAACZklEQVQ4jWVTwW7TQBAdZSSL61Jb8jFyVSXcth5inKPF RvSImwTtMSKSPwCoLG44xtKeyal/y9sN1G47x3meN7PvPdNZEzVNQzwTYhGtz8I6EnSJtUQHotni nWYSNA5ciFARkIK0Xvx8LBpmKRppDgyaI+YifLduf54bmpPkgQj0fp6Z1237XTTLyphtoanR4ktr Wv9p27kw7+xQ/WpI+LcxqcYOzhbtJ4x0tjNb0KxMUsdXOc7K2odsHvHK1upOSGLrXFdhZIZR84W4 BJBoKpVDxR9FBvSrnjnfd0ppulW+YuN2CYDNFu8fag90vm8HZSq1aX/sLS50ygO+n4qAVrk26+pU S+c7AehzKfvBnrLM2fi+BNNbodtKpXgudtus/VamXeU/3TKVddpDbxCc1o/nslr6fjKn4AEkI1Gn PJOhwjal7kPrUhKn17LcVbIKq8di3LWssU+cu6Zp3cQVtOg11GYINOEaIE3v/WQ9HeAPldr30TEk Y1rvoYnNF3O+ZOZpiCFm0gPwZh9IRrayUm5nHj4TFxgRfgJm0HQ/mHsfDSyZ7C9NEENk6YTlcbzq pg6WbSHezsp6BIYLcHej3D7ejKKsrPeyU8kN+ICPK4KVXZdmYTIdFYHzKlVpfwgpSMYdy770KdgW pUf6iVgS2DbIl0JWJoAuA3ttKifRREjNF6BLeqHjFIi+eiCxIs/8gKpHHx343fAzLGqOiA5iLi+c wj+ZIwcswZBJ+Zin7jqwPANY8h1+h+00U6HPOsdV5opelrDXwvTRK2C2dC/S+e/cN9bV6vQawA+R 1Fa/7vtXIAb/c/MXBLaluuFkJS8AAAAASUVORK5CYII= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Windows 98 (3 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:48893 Archived-At: Peter Dyballa writes: > Am 29.10.2007 um 04:14 schrieb Xiao-Yong Jin: > >> Presumably, it's related to the handling of the environment variables? > > When you work in a real X11 environment and not in GNUstep/OPENSTEP > or Mac OS X, then X11 should inherit from your login shell the whole > environment. > > In most (all?) shells you can distinguish between interactive > ($PROMPT present) and non-interactive ($PROMPT not present) use. > Additionally you can run shells as login shells, which makes them > read/load another resource script (~/.login etc.). So you can control > which environment variables will be valid in which situation. > > Xterm can be launched with a login (-ls) and with a non-login shell > (+ls, default behaviour). See also loginShell X resource. > > To compare the environment variables set: ``env | sort -o file1=C2=B4=C2= =B4. > Then diff the files. (There are too many shells around and some, like > bash, are much too complicated in case of resource scripts.) > > > GNU Emacs saves the environment it inherits in the variable process-=20 > environment (in a long unsorted list like ``"TERM=3Ddumb" > "HOST=3Dhere.local" "GROUP=3Dpete" "LOGNAME=3Dpete" ...=C2=B4=C2=B4 in wh= ich getenv > searches). For debugging it can help when one augments the shell's RC > files (resource scripts) with statements to output messages (echo, > printf something like "Hi, it's me, RC file so-and-so starting", and > also when leaving) or to save them in files (in /tmp for example) > with unique names (using for example $$ in the resource script when > building the file name, or recent date). Anyway, it will pretty time > consuming. Another, sometimes faster option, is to use a "trace" > facility to watch a programme (or two: GNU and emacsclient) working. > The trace implementations can be set to filter particular "data > streams" (network io, disk io, dynamic/shared libraries, ...). Thanks Peter for help, i keep trying to see what's wrong, checking what's different from one emacs version to the other. --=20 A + Thierry pubkey: http://pgp.mit.edu/