I'm new to emacs and ecb.
Usually, there's only one edit window in my emacs when editing code.
If I want to navigate from method, I press meta-f8, so method
window was opened and focused. I select a tag and press ENTER, cursor jump to
edit widow again, but method window is still open.
I want method window to be closed automatically after selecting a tag, so I defined
a hook as below:
(defun fj-ecb-hide-ecb-window (tag)
"hide ecb window when select a tag"
(setq new-point (ecb-tag-visit-smart-tag-start tag))
(setq ecb-tag-visit-post-actions '((default . (fj-ecb-hide-ecb-window))
(java-mode . (ecb-tag-visit-goto-doc-start))
(jde-mode . (ecb-tag-visit-goto-doc-start))))
The code does not work as expected. Could anyone tell me what's wrong?
Thanks very much!