From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r113773: Gnus: delete temporary files when Gnus exits instead of using timers Date: Fri, 09 Aug 2013 22:19:58 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376101218 30730 80.91.229.3 (10 Aug 2013 02:20:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Aug 2013 02:20:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 10 04:20:19 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7ymx-000848-DW for ged-emacs-devel@m.gmane.org; Sat, 10 Aug 2013 04:20:19 +0200 Original-Received: from localhost ([::1]:39605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7ymw-0000gw-DR for ged-emacs-devel@m.gmane.org; Fri, 09 Aug 2013 22:20:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7yml-0000O9-4x for emacs-devel@gnu.org; Fri, 09 Aug 2013 22:20:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7ymd-00019j-SG for emacs-devel@gnu.org; Fri, 09 Aug 2013 22:20:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:43713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7ymd-00019f-Nl for emacs-devel@gnu.org; Fri, 09 Aug 2013 22:19:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd/Nq/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNAcLFBgNJC6HcAbBLZEKA6R6gV6DE4FKJA X-IPAS-Result: Av4EABK/CFFLd/Nq/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNAcLFBgNJC6HcAbBLZEKA6R6gV6DE4FKJA X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="21305420" Original-Received: from 75-119-243-106.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([75.119.243.106]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 Aug 2013 22:19:52 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 8DFB9AE0F1; Fri, 9 Aug 2013 22:19:58 -0400 (EDT) In-Reply-To: (Katsumi Yamaoka's message of "Sat, 10 Aug 2013 08:16:22 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162543 Archived-At: > That's quite possible. But I have no good idea for the solution. > Is there a better way than using a long timer? [ I haven't followed the code very much, so I don't know what those temp files are or why you can't reliably know when to erase them. ] I don't think there "a solution". You could mix the two previous solutions: have a timer erase the files after some time, plus have an exit-hook that also deletes the files. Stefan