From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: Enhanced Carbon TeX-run-LateX Date: Wed, 07 Jul 2004 08:38:08 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <10em9ug91qmmq15@corp.supernews.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089215002 13560 80.91.224.253 (7 Jul 2004 15:43:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2004 15:43:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 07 17:43:09 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BiEZh-0003uJ-00 for ; Wed, 07 Jul 2004 17:43:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BiEbl-0007Kl-HU for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Jul 2004 11:45:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 07 Jul 2004 10:38:09 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:qu+3Ru3DNjZiwP0c15znMWO2f8k= Original-Lines: 60 Original-NNTP-Posting-Host: 24.18.253.35 Original-X-Trace: sv3-yVyXodR9wE2egldWAaOqfW53TVHqQM8BHwBiIofRhjAOSQ754SurvikZXncGj3Gfe02kn+n7D0OrZWc!2XZdZKsb8ibHtVqeJOIjOEGcBypN85kh0qUGgiyhMvtiszdVMd0Ar7zq Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:124171 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19502 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19502 Tom Dye writes: >Aloha emacs masters, > >I'm setting up the Enhanced Carbon emacs on several new iMacs, mostly to >run LaTeX. When I run the TeX-run-Latex function, tcsh claims it can't >find latex. I use the bash shell for all the user accounts, and a "which >latex" command finds the latex binary just fine. From the bash prompt I >launched tcsh, and a "which latex" there found the latex binary, too, >which leads me to believe that tcsh can see the latex binary (unless it >was retrieving this info through bash?) > >How can I solve this problem? Do I have to install a .cshrc file to >direct tcsh to the latex binary? Or, is there an easy way to have emacs >send the latex command to the bash shell instead? > A few ideas: - If you're starting emacs from some kind of desktop shortcut, then emacs is inheriting its environment from the desktop, and your .*rc files are not necessarily relevant here. I don't know where OS-X gets the desktop environment, but your description of the disparity between emacs and bash indicates that their environments come from different places. If you want to sidestep the issue of where emacs's environment comes from, and just fix it, you can see where emacs will look for executables for sub-processes by examining the value of exec-path: ,---- | exec-path's value is | | ("/usr/kerberos/bin" "/usr/local/bin" "/bin" "/usr/bin" | "/usr/X11R6/bin" "/home/mikesl/bin" "/usr/java/bin" | "/home/mikesl/bin" "/usr/java/bin" | "/usr/libexec/emacs/21.3/i386-redhat-linux") | | | Documentation: | *List of directories to search programs to run in subprocesses. | Each element is a string (directory name) or nil (try default directory). | | You can customize this variable. `---- If you don't see the directory where your latex executable resides in that list, emacs won't find it. You can add dirs to the list with (add-to-list 'exec-path "/some/new/path") or by using the customize interface, if you're more comfortable with that. - If you're going to make a habit of using emacs to edit LaTeX files, I'd recommend using auctex. It has lots of nifty features, is actively maintained, and is well supported. Google knows where it is, and it has installation instructions that come with. Read those before posting "how do I use auctex?" questions. ;) -- Mike Slass