Re: Built in way to close buffers opened by semantic-symref?

Mandar Mitra <[email protected]> Fri, 27 Jan 2017 12:50:36 +0530
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
Lee Hinman wrote (Thu, Jan 26, 2017 at 08:48:23PM -0700):
> 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.
> 
> I can write something like:
> 
> #+BEGIN_SRC emacs-lisp
> (add-hook 'semantic-symref-results-mode-hook
>           (lambda ()
>             (kill-buffers semantic-symref-recently-opened-buffers)))
> #+END_SRC
> 
> But I wanted to know if there was a built-in way to do this.
> 
> If not, is that something people are interested in a patch for? I'm
> happy to add that.

That would be wonderful, many thanks! I didn't know about semantic-symref-recently-opened-buffers, so I currently do this using ibuffer, which is a pretty bad way.

-mandar.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot