From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: can one run tk/Ruby gui code from an emacs shell with compile? Date: Sun, 20 Nov 2005 02:13:54 +0100 Message-ID: <5594e70a5f00c1b800e4e04d56e93054@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132449270 25442 80.91.229.2 (20 Nov 2005 01:14:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 01:14:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 02:14:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eddma-0007L6-LF for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2005 02:14:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EddmZ-0003He-UU for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2005 20:14:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EddmK-0003HM-QP for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 20:14:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EddmI-0003GO-6a for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 20:14:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EddmI-0003GL-2A for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 20:13:58 -0500 Original-Received: from [217.72.192.225] (helo=smtp07.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EddmH-0002WO-Mu for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 20:13:58 -0500 Original-Received: from [84.245.189.87] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #317) id 1EddmG-0000m6-00; Sun, 20 Nov 2005 02:13:56 +0100 In-Reply-To: Original-To: Anne G X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@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:31181 Archived-At: Am 20.11.2005 um 01:16 schrieb Anne G: > Turning the le into el and rebooting, emacs now gives me a > permission denied on line 1, > Just entered the command at the prompt. And the command was .bashrc? That's not needed! bash reads that file automatically when it launches. It's like Emacs reads .emacs (and other files, for example .emacs_bash when you create the shell buffer in Emacs). So the 'permission denied' message tells you that .bashrc can't be executed, which is normal, since you usually do not create files in Emacs (or by vi) that are executable from the start. You would have to make them executable (with chmod; did you already try in Emacs M-x manual-entry ? At the prompt you can type chmod and give it a .) > turning the .el back to .le did not get it to work again. > There is no Dyld that I can see. > Because you cut away lines starting with A, B, C, D ... Try exactly this with the single quotes to see in *Shell Command Output* maximally two lines: M-! env | egrep -w 'PATH|DYLD_LIBRARY_PATH' M-! inveokes Emacs' shell-command function. Then env (list the shell's environment) is excuted. Its output is filtered with egrep, which is told to look up whole words (-w). The words are described in the regular expression following. This has a vertical bar (|) which has a special meaning in a shell, so it has to be escaped by putting it into single quotes. > Turning the le into el and rebooting, Anne, you don't need to reboot your Mac when you change an Elisp (Emacs Lisp) file's name. Just re-launch that application. It's here already after midnight. It's Sunday. And I'm going to bed. I won't have much time before local noon and I'll be out of house for some hours in the afternoon. I think there is no real error, you just made a mistake in shell. Earlier I forgot one file to mention: ~/.emacs_bash! That's the one with the unset command. If you try to find out whether /usr/local/bin/ruby works correctly with DYLD_LIBRARY_PATH then you should comment that unset statement. This comment *will* raise another error, but don't get confused of this, it's normal interaction of Emacs and bash. Nothing fails there, it's just that the unset command can't be executed, so shell will have DYLD_LIBRARY_PATH set. -- Greetings Pete A lot of us are working harder than we want, at things we don't like to do. Why? ...In order to afford the sort of existence we don't care to live. -- Bradford Angier