새 프레임 (display-buffer-other-frame
, switch-to-buffer-other-frame
)에 버퍼를 여는 데는 몇 가지 기능이 있지만 새 프레임에 간접 버퍼를 만드는 방법은 무엇입니까?emacs에서 한 번의 호출로 새 프레임에서 간접 버퍼를 여는 방법은 무엇입니까?
1
A
답변
1
이게 당신이 찾고 있는게 있니?
clone-indirect-buffer-other-window
는simple.el
에서 대화식 컴파일 리스프 함수이다.
C-x 4 c
. 다른 창에서clone-indirect-buffer
하지만 디스플레이처럼
(clone-indirect-buffer-other-window NEWNAME DISPLAY-FLAG &optional NORECORD)
.
해당 명령의 기능에 대한 자세한 내용은 C-h f clone-indirect-buffer
을 참조하십시오.
확인, 당신은 별도의 프레임 아닌 별도의 이맥스 창에 오픈합니다. 이를 위해 자신의 clone-indirect-buffer-other-frame
을 정의 할 수 있지만 clone-indirect-buffer
을 호출 할 때 pop-up-frames
을 t
으로 바인딩하면 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)))