[OS X TeX] Tiger and Emacs 22 and TeX Menu Commands

Peter Dyballa Peter_Dyballa at Web.DE
Fri Sep 23 15:49:18 EDT 2005


Am 23.09.2005 um 20:43 schrieb Jose Figueroa-O'Farrill:

> (carbon-emacs-package-add-to-path
>

That's not the proper solution! This function is special to the 
Japanese Carbon Emacs, and it's used from a file that's usually not 
loaded.

There are two solutions: add/correct the value of PATH in 
~/.MacOSX/environment.plist or use Enrico Franconi's way:

(defvar emacs-bin-path
   (let (result)
     (dolist (single-path exec-path result)
       (when (string-match ".app/Contents/MacOS/bin" single-path)
         (setq result (concat single-path "/")))))
   "Returns the absolute path of emacs binaries")

(defvar shell-bin-exec-path
   '("/usr/local/teTeX/bin/powerpc-apple-darwin-current/"
     "/sw/bin" "/sw/sbin" "/usr/libexec" "/Developer/Tools"
     "/usr/local/bin" "/usr/local/sbin" "/bin" "/sbin"
     "/usr/bin" "/usr/sbin" "/usr/X11R6/bin")
   "The paths where binaries can be found")

(when darwinp
   (unless (and (boundp 'exec-path) (listp exec-path))
     (setq exec-path nil))
   (setq exec-path
         (append exec-path
                 shell-bin-exec-path
                 (list emacs-bin-path)))
   (setenv "PATH" (concat (getenv "PATH")
                          (let ((result ""))
                            (dolist (path (reverse shell-bin-exec-path))
                              (setq result (concat ":" path result)))
                            (concat result ":" emacs-bin-path))))
   )


Edit the elements of shell-bin-exec-path! This will make your TeX 
binaries available in Carbon Emacs.

--
Greetings

   Pete

Got Mole problems?
Call Avogadro 6.02 x 10^23

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list