Re: Built in way to close buffers opened by semantic-symref?
Eric Ludlam <[email protected]> Fri, 3 Feb 2017 19:44:24 -0500
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 01/26/2017 10:48 PM, Lee Hinman wrote: > Hi Everyone, > > I currently use `semantic-symref` occasionally in my project, using the > "global" method. However, I've noticed that it can sometimes open > maaaaany buffers (like ~300). > > Is there a way to tell semantic-symref to close those buffers after it's > done with the analysis? I've noticed there is a > `semantic-symref-recently-opened-buffers` symbol, but I didn't see a > customization to automatically close those buffers. Hi, It has been a long while since I worked on this, but here are the basics. I'm using CEDET from sourceforge for reference. There is a function `semantic-symref-cleanup-recent-buffers-fcn' which is setup to run in a post-command-hook after getting some tag results. The function `semantic-symref-result-get-tags' gets tags out of a results buffer, and will auto-close the items in the list if the input argument `open-buffers' is specified as nil, otherwise it leaves them open, but sets the variable to nil. Thus, I'm unsure how you have a situation where the variable has a value, but the buffers are still open. It may be that the 'occasionally' in your statement means that an error got thrown in the post command hook. Starting there, perhaps instrumenting the cleanup function to detect errors might help debug what the problem is. Eric ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot