我正在尝试在OSX上使用Dragon驱动emacs,当然,它是在Windows虚拟机中运行的。我不想在VM中运行emacs,而是希望驱动已经在mac端运行的emacs (从存储库的头部构建)。因此,在仔细阅读了emacs lisp手册之后,我想出了以下lisp代码片段(当前在我解决问题时从暂存缓冲区运行):
;; This part is run from an emacsclient -t session
(defvar slave-frame last-event-frame)
;; and this is run in a GUI frame
(defadvice handle-switch-frame (after update-slave-redirect-advice activate)
(unless (eq last-event-frame slave-frame)
(redirect-frame-focus slave-frame last-event-frame)))一切都很好。我在终端窗口中输入,显示buffer A,然后我的输入出现在GUI框架中,忙碌地显示buffer B。直到我执行C-x C-f或任何其他需要微型缓冲区的命令,在这一点上我得到错误Terminal 1 is locked, cannot read from it。
我在这里找错地方了,或者有没有办法让redirect-frame-focus和使用微型缓冲区的命令很好地协同工作?
发布于 2012-12-26 22:50:10
皮尔斯
您想要什么行为,重定向到(Windows)客户端上的微型缓冲区还是服务器上的微型缓冲区?另外,您使用的是什么版本/风格的emacs?
https://stackoverflow.com/questions/14000710
复制相似问题