(defun compare-strings ()
(interactive)
(setq bufferA (get-buffer-create "*A*"))
(setq bufferB (get-buffer-create "*B*"))
(with-current-buffer bufferB
(erase-buffer)
(insert (current-kill 0)))
(with-current-buffer bufferA
(erase-buffer)
(insert (current-kill 1)))
(ediff-buffers bufferA bufferB))
在 emacs -Q 中用 C-x C-e 执行这个后会非常奇怪, 比如 M-x 按 tab 补全会提示:
但明明我都还没执行这个 compare-strings
, 我只是执行了它的定义, 为什么就会这样? 再说这个代码有什么 bug 呢?