Re: The methods buffer is cleared sometimes

finalpatch <[email protected]>
Newsgroups gmane.emacs.code-browser
Message-ID <[email protected]>
bread <breaddawson <at> gmail.com> writes:

> 
> Hi, I'm now using ECB with CEDET, both of them are CVS version. Everything was
fine with it except i found that sometimes the content in methods buffer will be
cleared. I do some experiments to figure out why and how it is ruined, but
failed. Sometimes i minimize Emacs and use other apps, for example, use Firefox
to write this mail, and when i come back, i found all the contents in methods
buffer are gone. And sometimes, i just use C-n and C-p to read my cpp files, and
suddenly the contents are gone.But there're some things i can be sure of.1.
First-activate: the methods list are fine when i first activate ecb.2.
Re-activate: After the methods buffer are ruined, i changed to other buffer and
changed back, the methods list will be fine again. 
> 3. Manually Refresh: If i use ecb-windows-sync, the messages list will be fine
agin.Now i can only use ecb-windows-sync to refresh the messages list, and it's
really not convenient. So, can this be solved? If there're some other infos i
need or i can provide, plz let me know.Thanks-- Zhiqiu Kong (孔直秋)
> 

The methods buffer is cleared after a few minutes of idle time because
the idle time triggers semantic's background parsing, which loads files
into an invisible buffer for analysing. I'm not sure if this is the
right solution to the problem but the following patch seems to work for
me.

--- ecb-method-browser.el.~1.82.~	Thu May  8 22:03:44 2008
+++ ecb-method-browser.el	Tue Dec 30 09:05:35 2008
@@ -2830,6 +2830,7 @@
              (equal (selected-frame) ecb-frame)
              (get-buffer-window ecb-methods-buffer-name)
              (buffer-file-name (current-buffer))             
+             (< 0 (length (get-buffer-window-list (current-buffer))))
              ;; The functions of the hook
              ;; `semantic-after-toplevel-cache-change-hook' are also called
              ;; after clearing the cache to set the cache to nil if a buffer



------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecb-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.