From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83686 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME parts not saved Date: Thu, 08 Aug 2013 09:43:37 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wqo439c9.fsf@otago.ac.nz> <87txj4kdxs.fsf@otago.ac.nz> <87mwotshqt.fsf@uwo.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1375922723 29940 80.91.229.3 (8 Aug 2013 00:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 00:45:23 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31942@lists.math.uh.edu Thu Aug 08 02:45:25 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7ELz-0004ac-3x for ding-account@gmane.org; Thu, 08 Aug 2013 02:45:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1V7EKY-0000FV-FU; Wed, 07 Aug 2013 19:43:54 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1V7EKV-0000FI-NP for ding@lists.math.uh.edu; Wed, 07 Aug 2013 19:43:51 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1V7EKU-0002FB-14 for ding@lists.math.uh.edu; Wed, 07 Aug 2013 19:43:51 -0500 Original-Received: from mail-hampton.hostforweb.net ([216.246.15.223] helo=hampton.hostforweb.net) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1V7EKS-00017U-77 for ding@gnus.org; Thu, 08 Aug 2013 02:43:48 +0200 Original-Received: from localhost.localdomain ([127.0.0.1]:48642 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V7EKK-000ZtH-DL for ding@gnus.org; Wed, 07 Aug 2013 19:43:41 -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:BJXmvZqcCveqWXNioFUOJPdxnmg= 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 - gnus.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-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83686 Archived-At: Dan Christensen wrote: > Katsumi Yamaoka writes: >> Now a temporary file will be deleted by a timer 10 seconds after >> launching xdg-open. > There's already logic to delay deletion in mm-display-external, although > for some reason it is only used in certain situations. Maybe your > change can be merged with the existing code? Why I didn't use `mm-postponed-undisplay-list' was that a data file is made read-only (i.e., not editable) and a viewer doesn't need the file all the while it is running. However, given even a 30 seconds delay is not enough, I think we should not stick to the speediness of deleting the file. > I find that even a 30 second delay is not enough sometimes, as > certain viewers notice the deletion and stop displaying the file. I can imagin it; even in a fast machine, ooffice or equivalent takes a long time for starting up. Moreover, Gnus will never know what program xdg-open and the like launches nor when the program finishes. So, we may have to keep all temporary files from being deleted. > So I think it would be convenient to have a variable which indicates > that temporary files should be left forever, to be cleaned up as > other files in /tmp are. Hm, if it is boolean and defaults to nil (deleting), I don't think a user will find it and alter the value. Instead, how about deleting temporary files at the next time Gnus starts? That is: o Save a list of files to be deleted in "$TMP/.mm-temp-files" when Gnus exits. o Try to delete those files when Gnus starts. If it fails on deleting of some files, schedule them to delete again. This way will be helpful also for Emacs on Windows and Cygwin.