[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:15165] Re: Bug#149093: yatex does not work with xemacs21-nomule; always sets YaTeX-japan; uses "platex" by default



At Sat, 8 Jun 2002 23:41:11 +0900,
Taketoshi Sano wrote:

> Debian BTS 経由で yatex についての Bug report を
> もらったのですが、解決策についてのヒントなどあれば
> よろしくお願いします。

ヒントだけ…

>  on "Wed, 05 Jun 2002 02:43:37 -0500",
>  with "Bug#149093: yatex does not work with xemacs21-nomule; always sets YaTeX-japan; uses "platex" by default":
> 
> k> Package: yatex
> k> Version: 1.69.2-4
> k> Severity: normal
> k> 
> k> Three somewhat related problems are listed in this bug report:
> k> 
> k>    1) yatex does not work with xemacs21-nomule.  When the command
> k> 
> k>          yatex-mode
> k> 
> k>    is run, it returns the error
> k> 
> k>          "Cannot open load file: mule"
> k> 
> k>    It seems to work (mostly) fine for all other versions of xemacs21 and
> k>    emacs21.
> k> 
> k> 
> k> 
> k>    Easy solution(?): make it depend on all versions of (x)emacs but this
> k>    one.
> k> 
> k>    Better solution: fix the problem (not sure how :-(  )
> k> 
> k>    Note: this is probably the same problem specified by bug #92120

ざっとみたところ nomule じゃ動きそうにないような…
# Japanese 以外で動くかどうかも?
bytecompile する時に mule機能が必要だと判断して mule を loadするように
してるけど nomule ではないのでエラーというかんじ?

> k>    ----------
> k> 
> k>    2) In yatexlib.el, line 24, the variable YaTeX-japan is always set for
> k>    versions of (x)emacs greater than 20.  This means that the modeline
> k>    is always in Japanese and many of the strings and command choices are
> k>    Japanese specific.  This severely limits the usefulness for
> k>    non-Japanese users.
> k> 
> k> 
> k> 
> k>    Easy solution: change line 24 from 
> k> 
> k>       (defvar YaTeX-japan (or (boundp 'NEMACS) (boundp 'MULE) YaTeX-emacs-20)
> k> 
> k>    to
> k> 
> k>       (defvar YaTeX-japan (or (boundp 'NEMACS) (boundp 'MULE))
> k> 
> k>    This will probably break the mode for Japanese users. :-(
> k> 
> k>    Better solution: find a more robust way to determine if the current
> k>    system is running Japanese.  (Is this possible?)

current-language-environment が使えるのでは?

> k>    ----------
> k> 
> k>    3) In yatex.el, line 66, yatex defaults to using "platex", which is
> k>    not included in the main Debian distribution (and is also Japanese
> k>    specific, I believe).  Is this command included in the Japanese
> k>    Debian distribution?  Either way, since it is not in the main
> k>    distribution it would be nice if the default command was something 
> k>    more general, like "latex".  (Yes, I know this is changable in a
> k>    user's .emacs file.  Consider this a wishlist bug.)
> k> 
> k> 
> k> 
> k>    Easy solution: comment out line 66
> k> 
> k>    Better solution: ???

(executable-find "platex") とかで判断する?

-- 
鵜飼文敏