From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Session management patch, please comment. Date: Thu, 21 Feb 2002 21:32:24 -0700 (MST) Message-ID: <200202220432.g1M4WOd13945@aztec.santafe.edu> References: <80384FF2-2640-11D6-ABC5-00039363E640@mbox200.swipnet.se> <5xit8rwywv.fsf@kfs2.cua.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1014352525 15228 195.204.10.66 (22 Feb 2002 04:35:25 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 22 Feb 2002 04:35:25 GMT Cc: Jan.Djarv@mbox200.swipnet.se, 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 16e7Qa-0003xW-00 for ; Fri, 22 Feb 2002 05:35:24 +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 16e7PH-0003pj-00; Thu, 21 Feb 2002 23:34:03 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16e7Nh-0003Ox-00; Thu, 21 Feb 2002 23:32:25 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g1M4WRu02990; Thu, 21 Feb 2002 21:32:27 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g1M4WOd13945; Thu, 21 Feb 2002 21:32:24 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: kfs@cua.dk In-reply-to: <5xit8rwywv.fsf@kfs2.cua.dk> (no-spam@cua.dk) 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:1408 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1408 I believe the normal approach when calling lisp functions from C is to run a hook, i.e. call the function(s) bound to a variable defined in C. Not necessarily. We handle this in various ways. Sometimes a hook is useful, sometimes not. Using `special-event-map' as you do is the right approach (I think). I agree. I don't quite understand. What purpose does the emacs-session-save-function serve, why not call a lisp function directly? emacs-session-save-function would serve no purpose as far as I can see. We might as well put the code of that function directly into the function that calls it. However, to have a non-normal hook emacs-session-save-functions, a list of functions, might be useful. Various packages might add hooks to this list. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel