Emacs 光标在 Proof General 句号之前跳转

Emacs cursor jumps before period on Proof General

我只在 运行 Proof General 时遇到这个问题。我假设这是由 Proof General 启动的某种随机次要模式,但无法确定是哪一个!我在下面列出了次要模式的列表,以防你能认出这个名字。

如果我在 Emacs 中放置一个句点,光标会跳到它前面,像这样:

Writing something|

Writing something.|

Writing something|.

其中 | 表示光标,最后两行紧接着另一行。

如果我单击带有句点的行尾,也会发生同样的情况。光标将出现在句点之后,并立即跳到句点之前。

Some sentence. (click here)

Some sentence. |

Some sentence|.

最后两行是一个接一个地发生的。

这是次要模式的列表,以防您发现名称:

Aquamacs-Autoface Auto-Composition
Auto-Compression Auto-Encryption Blink-Cursor Column-Number Cua
Delete-Selection Electric-Indent File-Name-Shadow Font-Lock
Global-Font-Lock Holes Line-Number Menu-Bar Mouse-Wheel Osx-Key
Recentf Savehist Show-Paren Smart-Frame-Positioning Tabbar
Tabbar-Mwheel Tool-Bar Tooltip Transient-Mark

key             binding
---             -------

^C              Prefix Command
ESC             Prefix Command
.               proof-electric-terminator
<C-M-down>      pg-move-region-down
<C-M-mouse-3>   proof-mouse-goto-point
<C-M-up>        pg-move-region-up
<C-S-mouse-1>   pg-identifier-under-mouse-query
<C-return>      proof-script-complete
  (that binding is currently shadowed by another mode)
<M-down>        proof-forward-command
<M-up>          proof-backward-command
<remap>         Prefix Command
... then a bunch of Proof specific minor modes...

Proof General 与 show-paren-mode 不兼容。您可以使用 M-x show-paren-mode 或将 (add-hook 'proof-ready-for-assistant-hook (lambda () (show-paren-mode 0))) 放在 .emacs.

中的适当位置来关闭它

参见 http://proofgeneral.inf.ed.ac.uk/trac/ticket/496