diff -Naur auctex-11.83.orig/doc/preview-latex.info auctex-11.83/doc/preview-latex.info --- auctex-11.83.orig/doc/preview-latex.info 2006-06-08 05:52:47.000000000 +0900 +++ auctex-11.83/doc/preview-latex.info 2006-10-02 06:28:43.000000000 +0900 @@ -648,7 +648,7 @@ in order to customize this. One particular problem is that several printer setup files -(typically in a file called `/usr/share/texmf/dvips/config/config.pdf' +(typically in a file called `@PREFIX@/share/texmf-dist/dvips/tetex/config.pdf' if you are using the `-Ppdf' switch) contain the `G' option for `character shifting'. This option will result in `fi' being rendered as `#' (British Pounds sign) in several fonts, unless your version of diff -Naur auctex-11.83.orig/doc/preview-problems.texi auctex-11.83/doc/preview-problems.texi --- auctex-11.83.orig/doc/preview-problems.texi 2005-06-08 16:23:40.000000000 +0900 +++ auctex-11.83/doc/preview-problems.texi 2006-10-02 06:36:21.000000000 +0900 @@ -104,7 +104,7 @@ in order to customize this. One particular problem is that several printer setup files (typically in -a file called @file{/usr/share/texmf/dvips/config/config.pdf} if you are +a file called @file{@PREFIX@/share/texmf-dist/dvips/tetex/config.pdf} if you are using the @option{-Ppdf} switch) contain the @option{G} option for `character shifting'. This option will result in @samp{fi} being rendered as @samp{@pounds{}} (British Pounds sign) in several fonts, diff -Naur auctex-11.83.orig/fink/auctex-install auctex-11.83/fink/auctex-install --- auctex-11.83.orig/fink/auctex-install 1970-01-01 09:00:00.000000000 +0900 +++ auctex-11.83/fink/auctex-install 2006-10-02 09:19:57.000000000 +0900 @@ -0,0 +1,76 @@ +#! /bin/bash -e +# +# <% elisp %> Emacs install script for auctex +# +# Copyright (C) 1997, 98, 99, 2000, 01, 02, 03, 04, 05, 06 +# by Davide G. M. Salvetti. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to: The Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +set -o posix + +FLAVOR=${1} + +INSTALL="install -o root -g admin -m 644" +INSTDIR="${INSTALL} -m 755 -d" + +do_install () { + /bin/echo >&2 "install/auctex: Setting up for ${FLAVOR}... " \ + "(log file: @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog)... \c" + cd @PREFIX@/share/emacs/site-lisp/auctex/; umask 0022; +# touch --reference configure --date "-1 second" configure.ac +# touch --reference configure --date "-1 second" aclocal.m4 +# touch --reference configure --date "-1 second" preview/configure.ac + touch configure + ${INSTDIR} @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ + ./configure --disable-build-dir-test GS=gs \ + --prefix=@PREFIX@/ \ + --with-emacs=${FLAVOR} \ + --with-lispdir=@PREFIX@/share/${FLAVOR}/site-lisp/ \ + --with-texmf-dir=@PREFIX@/etc/texmf.local/ \ + --with-auto-dir=@PREFIX@/var/lib/auctex/${FLAVOR}/ \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make lisp \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \ + install-lisp install-startup \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + ln -sf @PREFIX@/share/emacs/site-lisp/auctex//images @PREFIX@/share/${FLAVOR}/site-lisp/auctex// + pushd preview \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \ + install-el install-nosearch install-startup \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + popd >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make maintainer-clean \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + find @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ \ + -type f -name \*.el -print0 | xargs -0 rm -f ,dummy, \ + >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + gzip -9fq @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog + echo >&2 "done." + return 0 +} + +case "${FLAVOR}" in + (emacs) : ;; + (emacs2*) + do_install ;; + (*) echo >&2 "install/auctex:" \ + "Ignoring emacsen flavor: \"${FLAVOR}\"." + ;; +esac + +exit 0 diff -Naur auctex-11.83.orig/fink/auctex-remove auctex-11.83/fink/auctex-remove --- auctex-11.83.orig/fink/auctex-remove 1970-01-01 09:00:00.000000000 +0900 +++ auctex-11.83/fink/auctex-remove 2006-10-02 08:09:25.000000000 +0900 @@ -0,0 +1,62 @@ +#! /bin/bash -e +# +# <% elisp %> Emacs remove script for auctex +# +# Copyright (C) 1997, 98, 99, 2000, 01, 02, 03, 04, 05, 06 +# by Davide G. M. Salvetti. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to: The Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +set -o posix + +FLAVOR=${1} + +undo_install () { + /bin/echo >&2 "remove/auctex: Removing for ${FLAVOR}... \c" + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//../{auctex,tex-site}.el + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//../preview-latex.el + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog{,.gz} + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//images + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//*.elc + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//.nosearch + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//*.elc + rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//.nosearch + test -d @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/ && \ + rm -rf \ + @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/ + test -d @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ && \ + rm -rf \ + @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ + echo >&2 "done." + return 0 +} + +undo_auto () { + rm -rf @PREFIX@/var/lib/auctex//${FLAVOR}/ + return 0 +} + +case "${FLAVOR}" in + (emacs) : ;; + (emacs2*) + undo_auto + undo_install + ;; + (*) echo >&2 "remove/auctex:" \ + "Ignoring emacsen flavor: \"${FLAVOR}\"." + ;; +esac + +exit 0 diff -Naur auctex-11.83.orig/fink/auctex-startup auctex-11.83/fink/auctex-startup --- auctex-11.83.orig/fink/auctex-startup 1970-01-01 09:00:00.000000000 +0900 +++ auctex-11.83/fink/auctex-startup 2006-10-02 12:36:24.000000000 +0900 @@ -0,0 +1,28 @@ +;;; This is a conffile: you can edit it if you like; however, +;;; please note that if you do not want AUCTeX to override the standard +;;; Emacs TeX mode, you may unload AUCTeX completely by evaluating the +;;; form "(unload-feature 'tex-site)" (i.e., put that string into your +;;; "~/.emacs" to disable AUCTeX completely). + +(let ((list '((lisp . "auctex") (source . "auctex")))) + (while list + (let ((elt (car list))) + (cond + ((equal 'lisp (car elt)) + (let ((dir (concat "@PREFIX@/share/" + (symbol-name fink-emacs-flavor) + "/site-lisp/" (cdr elt)))) + (when (file-directory-p dir) +; (if (fboundp 'fink-pkg-add-load-path-item) + (if (and nil (fboundp 'fink-pkg-add-load-path-item)) + (fink-pkg-add-load-path-item dir) + (add-to-list 'load-path dir 'append))))) + ((equal 'source (car elt)) + (let ((dir (concat "@PREFIX@/share/emacs/site-lisp/" (cdr elt)))) + (when (file-directory-p dir) + (add-to-list 'load-path dir 'append)))))) + (setq list (cdr list)))) + +(load "auctex.el") +(load "preview-latex.el") +(setq TeX-parse-self t) diff -Naur auctex-11.83.orig/tex-jp.el auctex-11.83/tex-jp.el --- auctex-11.83.orig/tex-jp.el 2006-06-08 05:26:51.000000000 +0900 +++ auctex-11.83/tex-jp.el 2006-10-02 09:33:27.000000000 +0900 @@ -99,11 +99,11 @@ (mapcar (lambda (dir) (add-to-list 'TeX-macro-global dir t)) (TeX-macro-global-internal "platex" '("/ptex/" "/jbibtex/bst/") - '("/usr/share/texmf/ptex/" "/usr/share/texmf/jbibtex/bst/"))) + '("@PREFIX@/share/texmf/ptex/" "@PREFIX@/share/texmf/jbibtex/bst/"))) (mapcar (lambda (dir) (add-to-list 'TeX-macro-global dir t)) (TeX-macro-global-internal "jlatex" '("/jtex/" "/jbibtex/bst/") - '("/usr/share/texmf/jtex/" "/usr/share/texmf/jbibtex/bst/"))) + '("@PREFIX@/share/texmf/jtex/" "@PREFIX@/share/texmf/jbibtex/bst/"))) ;; Menus @@ -157,7 +157,7 @@ :type 'string) (make-variable-buffer-local 'japanese-TeX-command-default) -(defcustom japanese-LaTeX-command-default "LaTeX" +(defcustom japanese-LaTeX-command-default "pLaTeX" "*The default command for `TeX-command' in the japanese-LaTeX mode." :group 'AUCTeX-jp :type 'string) diff -Naur auctex-11.83.orig/tex.el auctex-11.83/tex.el --- auctex-11.83.orig/tex.el 2006-06-07 17:59:26.000000000 +0900 +++ auctex-11.83/tex.el 2006-10-02 06:24:56.000000000 +0900 @@ -1614,7 +1614,7 @@ (defun TeX-macro-global () "Return directories containing the site's TeX macro and style files." (TeX-macro-global-internal "latex" '("/tex/" "/bibtex/bst/") - '("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/"))) + '("@PREFIX@/share/texmf/tex/" "@PREFIX@/share/texmf/bibtex/bst/"))) (defun TeX-macro-global-internal (latex search default) "Return directories containing the site's TeX macro and style files.