From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: after-delete-terminal-functions Date: Mon, 18 Feb 2008 12:31:04 -0500 Message-ID: References: <20080205.155847.56398348.hanche@math.ntnu.no> <200802051957.m15Jv8r1019258@sallyv1.ics.uci.edu> <200802052349.m15NnxSu013983@sallyv1.ics.uci.edu> <200802062007.m16K7r78005498@sallyv1.ics.uci.edu> <200802080726.m187Q5gL002961@sallyv1.ics.uci.edu> <200802090504.m1954WTM028192@sallyv1.ics.uci.edu> <200802100803.m1A83Eq5026472@sallyv1.ics.uci.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1203355961 21708 80.91.229.12 (18 Feb 2008 17:32:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 17:32:41 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, dann@ics.uci.edu, hanche@math.ntnu.no To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 18:33:04 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JR9rP-0003KO-Jc for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 18:32:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR9qu-0003lU-RF for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2008 12:32:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JR9pb-0002xQ-KY for emacs-devel@gnu.org; Mon, 18 Feb 2008 12:31:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JR9pZ-0002wJ-Vz for emacs-devel@gnu.org; Mon, 18 Feb 2008 12:31:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR9pZ-0002wE-Np for emacs-devel@gnu.org; Mon, 18 Feb 2008 12:31:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JR9pa-0005bA-0L for emacs-devel@gnu.org; Mon, 18 Feb 2008 12:31:06 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JR9pY-0008F3-KV; Mon, 18 Feb 2008 12:31:04 -0500 In-reply-to: (message from Stefan Monnier on Wed, 13 Feb 2008 17:24:43 -0500) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89498 gmane.emacs.pretest.bugs:21196 Archived-At: So it is cleaner to put the "run the hook" in Fdelete_terminal which is pretty much the common path of all 4. But sometimes Fdelete_terminal cannot run elisp, hence the idea of creating an event. It could be run from Fdelete_terminal when possible, and it could be run as I suggested in the case of losing an X connection.