使用带有mediawiki.el的Emacs编辑MediaWiki实例时出错

时间:2012-10-07 19:34:15

标签: emacs mediawiki

使用带有mediawiki.el的Emacs编辑Mediawiki实例时出现了一些错误

软件版本:

OS:Mac
Emacs:GNU Emacs 24.2(x86_64-apple-darwin10.8.0,NS apple-appkit-1038.36)
mediawiki-el:评论文字说“2.2.3”,函数定义说2.2.4(不一致?)

...
;; Version: 2.2.3
;; Created: Sep 17 2004
;; Keywords: mediawiki wikipedia network wiki
;; URL: http://launchpad.net/mediawiki-el
;; Last Modified: <2012-05-27 22:06:10 mah>

(defconst mediawiki-version "2.2.4"
  "Current version of mediawiki.el")
...

当我尝试连接到mediawiki网站时,我收到错误

Posting to: http://en.wikipedia.org/api.php
Contacting host: en.wikipedia.org:80
xml-parse-tag: XML: (Not Well-Formed) Invalid end tag (expecting link) at pos 3712

我在.emacs中有以下

'(mediawiki-site-alist (quote (("Wikipedia" "http://en.wikipedia.org/" "foobar" "" "XXX"))))

知道怎么解决吗?

1 个答案:

答案 0 :(得分:0)

这似乎是mediawiki.el 2.2.4和GNU Emacs 24. *之间的兼容性问题,至少是通过端口emacs-app @24.1_0下的Mac端口安装的问题。我怀疑这是因为如果我回到emacs-app @23.4.1,问题会立即消失。

通过Mac Ports回滚到早期版本的Emacs:

$ sudo port installed emacs-app
The following ports are currently installed:
  emacs-app @23.3_3
  emacs-app @23.3_4
  emacs-app @23.4_0
  emacs-app @23.4_1
  emacs-app @24.1_0
  emacs-app @24.2_0+fullscreen+inline+patches
  emacs-app @24.2_1+fullscreen+inline+patches (active)
$ sudo port activate emacs-app @23.4_1
--->  Computing dependencies for emacs-app
--->  Deactivating emacs-app @24.1_0
--->  Cleaning emacs-app
--->  Activating emacs-app @23.4_1
--->  Cleaning emacs-app
$ sudo port activate emacs-app @24.1_0
--->  Computing dependencies for emacs-app
--->  Deactivating emacs-app @23.3_4
--->  Cleaning emacs-app
--->  Activating emacs-app @24.1_0
--->  Cleaning emacs-app

使用Emacs编辑Mediawiki实例会掩盖一种做法吗?似乎如果一个人使用Emacs并且足够频繁地编辑任何Mediawiki页面,将两者合二为一将是一种直觉需求。