From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r113773: Gnus: delete temporary files when Gnus exits instead of using timers Date: Mon, 12 Aug 2013 10:03:24 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1376269427 21055 80.91.229.3 (12 Aug 2013 01:03:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2013 01:03:47 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 12 03:03:48 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 1V8gXx-0000yg-Ql for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 03:03:45 +0200 Original-Received: from localhost ([::1]:46314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8gXx-0003wW-E4 for ged-emacs-devel@m.gmane.org; Sun, 11 Aug 2013 21:03:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8gXo-0003uH-Sq for emacs-devel@gnu.org; Sun, 11 Aug 2013 21:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8gXk-0008CC-2p for emacs-devel@gnu.org; Sun, 11 Aug 2013 21:03:36 -0400 Original-Received: from mail-hampton.hostforweb.net ([216.246.15.223]:43474 helo=hampton.hostforweb.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8gXj-0008C1-Ud for emacs-devel@gnu.org; Sun, 11 Aug 2013 21:03:31 -0400 Original-Received: from localhost.localdomain ([127.0.0.1]:46365 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V8gXg-002GNn-FV; Sun, 11 Aug 2013 20:03:29 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:SfER/3m6YDmCG2lcVxcSvNpxi1w= X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] X-Received-From: 216.246.15.223 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:162595 Archived-At: Lars Magne Ingebrigtsen wrote: > Stefan Monnier writes: >> 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. > Yes. Having the files in /tmp linger for a "long time" is not what > users expect, I think, and may lead to privacy problems. Yes, we should think much of privacy. A better way would be to set $TMPDIR, $TEMP, $TMP, and so forth to someting like "~/tmp". > So Gnus should delete the files "as fast as possible", which may not > be very fast, but should be quicker than the Emacs lifetime. > So I think deleting on Emacs exit is good, but there should be a timer > to delete things "fast". Like, one minute, perhaps? Surely even the > xgd launcher must have managed to start and read the file by then? Ok, I've restored a timer that tries to delete a temporary file and its directory 1 minute after launching a viewer. (Though the deletion will fail on Windows or Cygwin if a viewer is a Windows application, MS Office, AcroRd, etc. for example.)