设置PSGML模式上的Emacs 24

问题描述:

我拼命地设立的Emacs 24. PSGML/XML模式我所做的一切依据这样的解释:http://www.lysator.liu.se/~lenst/about_psgml/psgml.html设置PSGML模式上的Emacs 24

我拆包最新的软件包的后确实./configure./make./make install主模式并将整个目录移动到emacs找到的.emacs.d目录的子目录中。

添加以下到我的.emacs文件:

(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t) 
    (autoload 'xml-mode "psgml" "Major mode to edit XML files." t) 

但是运行M-x xml-mode什么变化的时候,当我运行M-x sgml-mode我得到一个SGML菜单条目,但所有的语法高亮/缩进/ ...是走了。当我从SGML菜单中运行任何命令我得到这样一个错误:

Eager macro-expansion failure: (invalid-function (\` (null (sgml-state-reqs ((\, s)))))) 
Eager macro-expansion failure: (invalid-function (\` (defmacro ((\, (intern (format  "sgml-eltype-%s" n)))) (et) (list (quote get) et (quote (quote ((\, n)))))))) 
Loading `psgml-parse': old-style backquotes detected! 
cons: Invalid function: (\` (defmacro ((\, (intern (format "sgml-eltype-%s" n)))) (et) (list (quote get) et (quote (quote ((\, n))))))) 

我用这一切对一个GML文件,即完全形成了。

任何人都可以帮助我或推荐另一种支持自动缩进/隐藏元素/等的XML的主要模式吗?提前致谢,任何帮助表示感谢!

+1

我没有年龄使用它,但在这里,[维基页面](http://www.emacswiki.org/emacs/PsgmlMode)说,这是一个已知问题,有人修复了它并在其他地方上传了修复程序。你可以试试吗? – 2013-10-05 04:36:44

+0

谢谢你的提示,我完全忽略了在维基页面上,虽然我确实在某个时候访问过它。它现在似乎工作。如果你碰巧在德国的卡尔斯鲁厄,我会给你买一瓶啤酒; –

+0

呵呵,谁知道,也许有一天;)干杯! – 2013-10-05 14:21:04

正如wvxvw所说的那样,修复旧式宏将使其工作 - 仍然是我首选的Emacs ml库BTW。试试这个

http://sourceforge.net/projects/psgml/