2017-11-16 7 views

答えて

1

これはあなたが探しているものですか?

clone-indirect-buffer-other-windowsimple.elにおけるインタラクティブコンパイルLispの 関数です。

これは、C-x 4 cに結合しています。別のウィンドウでclone-indirect-bufferが、表示のように

(clone-indirect-buffer-other-window NEWNAME DISPLAY-FLAG &optional NORECORD)

C-h f clone-indirect-bufferを使用して、そのコマンドの機能の詳細を確認してください。


OK、あなたはそれが別々のフレームだけではなく、別のEmacsのウィンドウにオープンします。そのためにはclone-indirect-buffer-other-frameを定義することができますが、clone-indirect-bufferへの呼び出しの前後でpop-up-framestのバインドだけで、clone-indirect-buffer-other-windowがバインドするのと同じ方法でpop-up-windowsをバインドします。

(defun clone-indirect-buffer-other-frame (newname display-flag &optional norecord) 
    "Like `clone-indirect-buffer' but display in another window." 
    (interactive 
    (progn 
    (if (get major-mode 'no-clone-indirect) 
    (error "Cannot indirectly clone a buffer in %s mode" mode-name)) 
    (list (if current-prefix-arg 
      (read-buffer "Name of indirect buffer: " (current-buffer))) 
     t))) 
    ;; (let ((pop-up-windows t)) 
    (let ((pop-up-frames t)) ; <========== 
    (clone-indirect-buffer newname display-flag norecord))) 
関連する問題