kiwanami / emacs-window-manager

Customizable window manager for emacs
230 stars 28 forks source link

Adding new window to e2wm:c-*-winfo does not work #7

Open tkf opened 12 years ago

tkf commented 12 years ago

以下のコードを実行後に magit perspective を開くと、 "wlf:get-winfo: Window name edit is not found." というエラーが出てしまいます。

setq を require の前に書けば一応動くので急ぎではありませんが、時間のある時に直していただけると助かります。

(require 'e2wm-vcs)

(setq
 e2wm:c-magit-recipe
 '(| (- main (- edit sub))
     (- (:upper-size-ratio 0.9)
        (- (:upper-size-ratio 0.8) logs branches)
        (| files history))))

(setq
 e2wm:c-magit-winfo
 '((:name main     :plugin magit-status)
   (:name edit)
   (:name files    :plugin files)
   (:name history  :plugin history-list)
   (:name sub      :buffer nil :default-hide t)
   (:name branches :plugin magit-branches)
   (:name logs     :plugin magit-logs)))
tkf commented 12 years ago

あと、 setq を require の前に書けば一応動くのですが、 sub window が開く拍子に edit window のバッファが切り替わってしまうようです。

kiwanami commented 12 years ago

遅くなってすみません。確認してみます。

tkf commented 12 years ago

ありがとうございます! sub が開く拍子に切り替わる問題は、 *Help* や magit の status を q で抜けたときなど、 e2wm がトラックしてないバッファがセットされている時に起こる気がします(もう少し特定出来たらissue入れます)。 #17 も関連してるかもです。