From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Session management patch, please comment. Date: Thu, 21 Feb 2002 21:01:50 +0100 (CET) Message-ID: <200202212001.VAA00216@gaffa.gaia.swipnet.se> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: quimby2.netfonds.no 1014322047 26227 195.204.10.66 (21 Feb 2002 20:07:27 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 21 Feb 2002 20:07:27 GMT Cc: emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16dzV0-0006ov-00 for ; Thu, 21 Feb 2002 21:07:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16dzTo-0001Z0-00; Thu, 21 Feb 2002 15:06:12 -0500 Original-Received: from aurora.natverket.com ([195.196.30.60]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16dzQf-0001QJ-00; Thu, 21 Feb 2002 15:02:57 -0500 Original-Received: from gaffa.gaia.swipnet.se (pc35.bodenonline.com [195.196.29.227] (may be forged)) by aurora.natverket.com (8.9.3/8.9.3) with ESMTP id VAA02456; Thu, 21 Feb 2002 21:42:52 +0100 (CET) In-Reply-To: <200202202213.g1KMDWN13533@aztec.santafe.edu> "from Richard Stallman at Feb 20, 2002 03:13:32 pm" Original-To: rms@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1401 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1401 > Well, actually I didn't even want this function, but I could not find > another way to call C from lisp. It is not meant to be "external", > rather a link between the C part and the lisp part of the session > management code. > > It is a good idea to document it clearly anyway, even though it is not > meant for general use. The doc string can say "Don't call this > yourself." > > "End interaction as a response to save_yourself. > A session manager can tell Emacs that the window system is shutting down > by sending Emacs a save_yourself message. Emacs then executes functions > in `save-yourself-hook'. After that, this function shall be called to > inform the session manager that it can continue or abort shutting down > the window system. > > If the argument CANCEL is non-nil, Emacs will tell the session manager > to cancel the shutdown." > > That is good, except for "this function shall be called", which is vague. > What code is supposed to call this function? Yes, that wasn't so good. I will fix that, or if I get the approach suggested by Kim Storm to work, remove this function. > The idea was that as functions in save-yourself-hook are executing, they > might interact with the user, for instance pop up a dialog. That dialog > can have the possibility to cancel the whole window system shutdown. If > the lisp code wants to do that, it shall set this variable to something > non-nil. > > Please document that clearly (but don't use "shall"). I will do that. I guess I've been reading too many ISO-standards lately, thus the "shall" :-) Jan D. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel