Emacs22.1で”Non-hex digit used for Unicode escape”エラーについて

No Comment - Post a comment

Meadowを3.05(Emacs22.1.1)にアップデートしたら、起動するとき、”Non-hex digit used for Unicode escape”で怒られて、googleしてみたら、これはCperl-modeのバグらしくて、
cperl-mode で Non-hex digit used for Unicode escape な現象が起きるというページを参考して解決しました。


Loading c:/home/.elisp/My-cc-mode.el (source)...done
Loading c:/home/.elisp/cperl-mode.el (source)...

An error has occurred while loading `c:/home/.emacs':

error: Non-hex digit used for Unicode escape

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.



上のページを参照してエラーなし起動しましたが、.texファイルをロードしても、Yatexが反応なし、よく見ると、Meadowのステータスバーに同じエラーが出っています。同じページのyatexadd.el のバグ?に辿って、解決しました。ここでメモしておきます。

Cperl-modeの修正:
cperl-mode.el
\\U Upcase until \\E .  See also \u, uc.

を以下のように修正
\\U Upcase until \\E .  See also \\u, uc.


Yatexモードの修正:
yatexadd.el

(defvar YaTeX::usepackage-alist-default
'(("version") ("plext") ("url") ("fancybox") ("pifont") ("longtable")
("ascmac") ("bm") ("graphics") ("graphicx") ("alltt") ("misc") ("eclbkbox")
("amsmath") ("amssymb") ("xymtex") ("chemist")
("a4j") ("array") ("epsf") ("color") ("epsfig") ("floatfig")
("landscape") ("path") ("supertabular") ("twocolumn"))
"Default completion table for arguments of \usepackage")


にある\usepackageを\\usepackageに修正

(defvar YaTeX::usepackage-alist-default
'(("version") ("plext") ("url") ("fancybox") ("pifont") ("longtable")
("ascmac") ("bm") ("graphics") ("graphicx") ("alltt") ("misc") ("eclbkbox")
("amsmath") ("amssymb") ("xymtex") ("chemist")
("a4j") ("array") ("epsf") ("color") ("epsfig") ("floatfig")
("landscape") ("path") ("supertabular") ("twocolumn"))
"Default completion table for arguments of \\usepackage")

 
This Post has No Comment Add your own!

コメントを投稿