From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "William McCallum" Newsgroups: gmane.emacs.devel Subject: Workaround for kpathsea problem with carbon Emacs on OS X Date: Wed, 8 Jan 2003 18:37:18 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <458284E6-237B-11D7-863A-000393598146@math.arizona.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042077053 6725 80.91.224.249 (9 Jan 2003 01:50:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 01:50:53 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18WRqO-0001kC-00 for ; Thu, 09 Jan 2003 02:50:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18WRvh-0003gv-00 for ; Thu, 09 Jan 2003 02:56:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18WRoe-0006LW-04 for emacs-devel@quimby.gnus.org; Wed, 08 Jan 2003 20:49:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18WRn9-0005mz-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 20:47:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18WRi3-0003uq-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 20:42:17 -0500 Original-Received: from mpls-qmqp-02.inet.qwest.net ([63.231.195.113]) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18WRdo-0002kv-00 for emacs-devel@gnu.org; Wed, 08 Jan 2003 20:37:53 -0500 Original-Received: (qmail 31150 invoked by uid 0); 9 Jan 2003 01:23:37 -0000 Original-Received: from mpls-pop-14.inet.qwest.net (63.231.195.14) by mpls-qmqp-02.inet.qwest.net with QMQP; 9 Jan 2003 01:23:37 -0000 Original-Received: from tcsndslgw6poolh29.tcsn.uswest.net (HELO math.arizona.edu) (65.101.190.29) by mpls-pop-14.inet.qwest.net with SMTP; 9 Jan 2003 01:37:51 -0000 Original-To: emacs-devel@gnu.org X-Mailer: Apple Mail (2.551) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10594 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10594 For a long time I have been having a problem that when I invoke tex related programs from within carbon emacs (such as latex or xdvi, using auctex) they fail to find certain files. This seems always a result of a failure in kpathsea, the file-searching program used by my implementation of TeX. I do not have the same problem when I use Emacs under X, called from the command line. So it seems that carbon emacs fails to pass on some key environment variable to kpathsea (I was never able to figure out which ... I did try putting various different settings in ~/.MacOSX/environment.plist). I just discovered that if I call carbon Emacs from the command line (i.e., type in /Applications/Emacs.app/Contents/MacOS/Emacs at the command prompt), rather than starting the application in the usual way, then the problems go away in carbon emacs as well. I am happy to have discovered this work-around, but it would be nice to have a way of having the application itself properly inherit all the environment variables of the user who opens it. I am using emacs 21.3.50, from cvs a couple of weeks ago. Regards, Bill McCallum (520) 621 6697 http://www.math.arizona.edu/~wmc