Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* XEmacs: *Compile-Log* and *Compile-Log-Show*
@ 2006-04-20 23:43 xyblor
  2006-04-22  0:52 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: xyblor @ 2006-04-20 23:43 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: XEmacs: *Compile-Log* and *Compile-Log-Show*
  2006-04-20 23:43 XEmacs: *Compile-Log* and *Compile-Log-Show* xyblor
@ 2006-04-22  0:52 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2006-04-22  0:52 UTC (permalink / raw)


xyblor <fake@invalid.email> writes:

> 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?

Emacs doesn't seem to make these bogus buffers, but XEmacs does.  I've
now added something similar to your killing function to CVS Gnus.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-22  0:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 23:43 XEmacs: *Compile-Log* and *Compile-Log-Show* xyblor
2006-04-22  0:52 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).