From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anne G Newsgroups: gmane.emacs.help Subject: Re: can one run tk/Ruby gui code from an emacs shell with compile? Date: Fri, 18 Nov 2005 13:51:47 -0500 (EST) Message-ID: References: <36d88fdb7701f0cd9489bd8d2a6668f0@Web.DE> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1132339992 22644 80.91.229.6 (18 Nov 2005 18:53:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2005 18:53:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 18 19:52:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1EdBLo-0005d4-00 for ; Fri, 18 Nov 2005 19:52:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdBLn-0008D0-Ce for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Nov 2005 13:52:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdBKz-00083U-TL for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:51:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdBKx-000835-4a for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:51:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdBKx-000832-02 for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:51:51 -0500 Original-Received: from [140.247.94.230] (helo=wjh1.wjh.harvard.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EdBKx-0005n3-91 for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:51:51 -0500 Original-Received: from localhost (anne@localhost) by wjh1.wjh.harvard.edu (8.11.7p2/8.11.6) with ESMTP id jAIIpli11131; Fri, 18 Nov 2005 13:51:48 -0500 (EST) Original-To: Peter Dyballa In-Reply-To: <36d88fdb7701f0cd9489bd8d2a6668f0@Web.DE> 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:31147 Archived-At: > Which Emacs are you using? Carbon, Cocoa/Aqua, X11, or Apple's > /usr/bin/emacs which only runs in a terminal? I downloaded the panther version from here http://home.att.ne.jp/alpha/z123/emacs-mac-e.html "this is GNU Emacs 22.0.50.1 (powerpc-apple-darwin7.9.0) of 2005-09-26 on trio.local > > You could do this, once in Terminal, once in Emacs' shell: > > env | sort -o Terminal.environment > env | sort -o Emacs.environment > > Finally do somewhere (would work in Emcas with ediff too): > > diff Terminal.environment Emacs.environment I use esc shell to open a shell, changed to ~/ so the two files would write to the same directory. diff Terminal.environment Emacs.environment 0a1,8 > ASPELL_CONF=prefix /Applications/Emacs.app/Contents/Resources;data-dir /Applications/Emacs.app/Contents/Resources/lib/aspell-0.60;dict-dir /Applications/Emacs.app/Contents/Resources/lib/aspell-0.60;conf-dir /Applications/Emacs.app/Contents/Resources/etc > COLUMNS=80 > DYLD_LIBRARY_PATH=/Applications/Emacs.app/Contents/Resources/lib > EMACS=t > EMACSDATA=/Applications/Emacs.app/Contents/Resources/etc > EMACSDOC=/Applications/Emacs.app/Contents/Resources/etc > EMACSLOADPATH=/Applications/Emacs.app/Contents/Resources/lisp:/Applications/Emacs.app/Contents/Resources/leim:/Applications/Emacs.app/Contents/Resources/site-lisp > EMACSPATH=/Applications/Emacs.app/Contents/MacOS/libexec:/Applications/Emacs.app/Contents/MacOS/bin 2,3c10,12 < LOGNAME=anne < PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin --- > INFOPATH=/Applications/Emacs.app/Contents/Resources/info > OLDPWD=/Users/anne/Desktop > PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/anne:/usr/local/bin:/usr/X11R6/bin 8,10c17,18 < TERM=xterm < TERM_PROGRAM=Apple_Terminal < TERM_PROGRAM_VERSION=100.1.6 --- > TERM=dumb > TERMCAP= I would think that I want the PATH in emacs to be the same as the path in terminal. But the shorter one is the terminal one which works, and it is included in the longer path emacs uses. What is causing the problem? > > This would reveal differences in the runtime environments and might > lead you to the difference that causes the different behaviour. Once > you've found that difference you can record it in > ~/.MacOSX/environment.plist (see Apple's > http://developer.apple.com/qa/qa2001/qa1067.html). This file is read by > Mac OS X applications (like Carbon or Cocoa/Aqua Emacsen) and helps > them to find things in the UNIX world. It won't help /usr/bin/emacs or > GNU Emacs in X11 ... > > Are you using different shells in Emacs and in Terminal? I don't know, I was not really using a shell, did not know you could. > > How are you executing Ruby? From inside a Makefile? just using the compile command on the menu compile ruby myfilename.rb