bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtags.el: add function to kill all gtags buffers


From: Shigio YAMAGUCHI
Subject: Re: gtags.el: add function to kill all gtags buffers
Date: Wed, 20 Jan 2010 08:28:58 +0900

Hi,
I'm hesitant to accept your code because 'gtags-pop-stack' command doesn't
work correctly with your implementation (There is no return destination).
If you change also the tag stack when you delete 'GTAGS SELECT MODE buffer's
then I will accept your code.
Anywary, thank you for your offer.

> After a code browsing session in emacs with gtags, a lot of
> GTAGS buffers get created. I frequently use this function
> to kill them. Is there a chance this can be included in
> standard gtags.el release ?
>  
> (defun gtags-kill-buffers ()
>   "Kill all GTAGS buffers."
>   (interactive)
>   (mapcar (function (lambda (buffer)
>               (let ((bname (buffer-name buffer)))
>             (if (string-match "^\*GTAGS" bname)
>                 (kill-buffer buffer)))))
>       (buffer-list)))
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]