2011-10-16 50 views
9

爲什麼emacs總是在other窗口中打開*Man <man-name>*緩衝區而不是使用相同的窗口? 如何強迫它在當前打開? same-window-regexpssame-window-buffer-names看起來是無用的。 - 我不能強制使用相同的窗口通過定製這些變量。open * Man <pages> *在同一個emacs窗口中

+0

這更多的是一個unix問題,而不是編程問題。如果沒有人能幫到你,可以到這裏http://unix.stackexchange.com/。 – nmagerko

+0

@nmagerko在SO上有一些Emacs問題的傳統,我想在這裏保留這些問題。但我認爲有一個元討論,我們允許與工具相關的問題有多遠,但現在找不到它,並且不記得它的結果。 – pmr

回答

15

您需要更改Man-notify-method的值。您可以通過M-x customize-group RET man RET的可能值(這裏提到的自定義頁面沒有他們)這樣做:

newframe -- put the manpage in its own frame (see `Man-frame-parameters') 
pushy  -- make the manpage the current buffer in the current window 
bully  -- make the manpage the current buffer and only window (sf) 
aggressive -- make the manpage the current buffer in the other window (sf) 
friendly -- display manpage in the other window but don't make current (sf) 
polite  -- don't display manpage, but prints message and beep when ready 
quiet  -- like `polite', but don't beep 
meek  -- make no indication that the manpage is ready 

看一看的man.el源代碼,看看自己。

+0

這是相當全面的:) – phils

+0

@phils複製實際文檔總是,不是? :) – pmr

+0

確實,但我指的是提供的一系列選項,看起來它對每個人都有幫助。 – phils