From xemacs-m  Wed Apr 23 03:12:29 1997
Received: from frege.math.ethz.ch (root@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id DAA23553
	for <xemacs-beta@xemacs.org>; Wed, 23 Apr 1997 03:12:22 -0500 (CDT)
Received: from midget.math.ethz.ch (vroonhof@midget [129.132.145.4]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id KAA09564 for <xemacs-beta@xemacs.org>; Wed, 23 Apr 1997 10:11:32 +0200
Received: (vroonhof@localhost) by midget.math.ethz.ch (8.6.12/D-MATH-client) id KAA07961; Wed, 23 Apr 1997 10:11:05 +0200
Sender: vroonhof@math.ethz.ch
To: xemacs-beta@xemacs.org
Subject: Re: The status of gnuattach lossage
References: <kigwwpvqidt.fsf@jagor.srce.hr> <byk9lv14f6.fsf@midget.math.ethz.ch> <kigzpuqz1w1.fsf@jagor.srce.hr>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Date: 23 Apr 1997 10:11:05 +0200
In-Reply-To: Hrvoje Niksic's message of 23 Apr 1997 08:31:10 +0200
Message-ID: <by3esixip2.fsf@midget.math.ethz.ch>
Lines: 26
X-Mailer: Gnus v5.4.37/XEmacs 19.15

Hrvoje Niksic <hniksic@srce.hr> writes:

> > There is however that server-kill-buffer problem that needs to be
> > fixed.
> 
> Yes.  It's really obnoxious from gnuserv.el to alias `kill-buffer' to
> something else.  It should run whatever it has to run from a hook
> (e.g. `kill-buffer-hook').  If the appropriate hook doesn't exist, we
> should make it.

I have looked at it now. It also aliases kill-local-variables.. ugh!

It can in priniple be run from kill-buffer-kook, but that would make
it more unriable. The user could change the hook of course. More
importantly if you look at the kill-buffer C code, there are still a
lot of failure points after the hook is called. It could leave us with
a unkilled buffer, but the client already thinking it has onctrol
back.

However I am not sure the ends justify the means here.

I am also not sure whether aliasing kill-buffer was a delibirate
decision or just due to fact that gnuserv is so old it existed before
there was a kill-buffer-hook.

Jan

