在Emacs 24上设置PSGML模式

时间:2013-10-05 02:31:26

标签: xml emacs gml sgml major-mode

我正在拼命尝试为Emacs 24设置PSGML / XML模式。我根据这个解释做了一切:http://www.lysator.liu.se/~lenst/about_psgml/psgml.html

在解压缩主模式的最新包之后,我做了./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 个答案:

答案 0 :(得分:1)

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

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

相关问题