From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7125 Path: news.gmane.org!not-for-mail From: xyblor Newsgroups: gmane.emacs.gnus.user Subject: XEmacs: *Compile-Log* and *Compile-Log-Show* Date: Thu, 20 Apr 2006 19:43:00 -0400 Organization: UseNetServer.com Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145580043 8102 80.91.229.2 (21 Apr 2006 00:40:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Apr 2006 00:40:43 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Apr 21 02:40:42 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWjhP-0002DZ-AF for gegu-info-gnus-english@m.gmane.org; Fri, 21 Apr 2006 02:40:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWjhO-0007Ko-LC for gegu-info-gnus-english@m.gmane.org; Thu, 20 Apr 2006 20:40:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c08.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (windows-nt) Cancel-Lock: sha1:7emZ9/LgvpiO4dxoegOKu8SzYVY= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 18 Original-X-Trace: 6554e44481c7f6b5d24f026982 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77307 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7125 Archived-At: When Gnus prepares a summary of a group, I guess it has to compile the newsrc.eld file, and XEmacs creates two logs of the compilation in buffers. However, since these are always empty, it's just a nuisance to have these useless buffers created all the time. Here's what I added to my init.el to solve the problem: (defun kill-empty-logs () (dolist (buf (list (get-buffer "*Compile-Log*") (get-buffer "*Compile-Log-Show*"))) (if (and buf (= (buffer-size buf) 0)) (kill-buffer buf)))) (add-hook 'gnus-summary-prepare-hook 'kill-empty-logs) Is this a good solution? Why doesn't Gnus have something like this built in? Or should it be considered XEmacs' fault for not cleaning up after itself? Is the situation the same in Gnu Emacs?