X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=tm-latex.el;h=472fbcb2733d1167f3239f2a1ec5236bb11e09c4;hb=b77b17617ad6e2d752ffa07cc4232a54c6ebae81;hp=f2d8884f9f992be0ccbd9877323ff4fdab5fa4bf;hpb=1f931d2c745d3d76fea289f0875cfb45e6cd0316;p=elisp%2Ftm.git diff --git a/tm-latex.el b/tm-latex.el index f2d8884..472fbcb 100644 --- a/tm-latex.el +++ b/tm-latex.el @@ -1,14 +1,14 @@ ;;; -;;; tm-latex: tm-view internal decoder for tm-view +;;; tm-latex: tm-view internal decoder for LaTeX ;;; ;;; by OKABE Yasuo (1994/11/11) ;;; ;;; modified by MORIOKA Tomohiko ;;; -;;; $Id: tm-latex.el,v 2.0 1995/04/07 12:05:33 morioka Exp $ +;;; $Id: tm-latex.el,v 3.0 1995/09/14 15:51:35 morioka Exp $ ;;; -(provide 'tm-latex) +(require 'tm-view) (defun mime/decode-text/latex (beg end cal) (let* ((cur-buf (current-buffer)) @@ -17,7 +17,7 @@ (cdr (assoc "x-name" cal)) (concat (make-temp-name "tm") ".tex")))) (switch-to-buffer mime::article/preview-buffer) - (find-file (expand-file-name name mime/tmp-dir)) + (funcall mime/find-file-function (expand-file-name name mime/tmp-dir)) (if (or (<= (buffer-size) 0) (y-or-n-p "Replace the existing buffer?")) (progn @@ -46,3 +46,5 @@ ; ("type" . "latex") ; (method . mime/decode-text/latex) ; )) + +(provide 'tm-latex)