From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83672 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME parts not saved Date: Tue, 06 Aug 2013 22:52:59 +0900 Message-ID: References: <87wqo439c9.fsf@otago.ac.nz> <87txj4kdxs.fsf@otago.ac.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375797287 9155 80.91.229.3 (6 Aug 2013 13:54:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Aug 2013 13:54:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31928@lists.math.uh.edu Tue Aug 06 15:54:46 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 1V6hin-00087t-Nz for ding-account@gmane.org; Tue, 06 Aug 2013 15:54:46 +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 1V6hhX-0008E6-Ag; Tue, 06 Aug 2013 08:53:27 -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 1V6hhW-0008Dx-6m for ding@lists.math.uh.edu; Tue, 06 Aug 2013 08:53:26 -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 1V6hhQ-0001u2-Ua for ding@lists.math.uh.edu; Tue, 06 Aug 2013 08:53:25 -0500 Original-Received: from mail-halifax.hostforweb.net ([205.234.137.17] helo=halifax.hostforweb.net) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1V6hhO-0002zM-PU for ding@gnus.org; Tue, 06 Aug 2013 15:53:18 +0200 Original-Received: from [219.34.144.17] (port=47964 helo=) by halifax.hostforweb.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80.1) (envelope-from ) id 1V6hhA-0005dP-7n for ding@gnus.org; Tue, 06 Aug 2013 08:53:11 -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 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:O5dGQYiIjM2euQKcuSOUt4ceAdM= 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 - halifax.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: halifax.hostforweb.net: authenticated_id: yamaokac/only user confirmed/virtual account not confirmed 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:83672 Archived-At: Katsumi Yamaoka wrote: >> http://i-yt.info/?date=20090829#p01 (Japanese) >> One says "To make xdg-open work with `start-process', bind >> `process-connection-type' to nil.". I'll try it on Fedora 19 in >> home > I tried it on Fedora 19 and realized there is another problem. > That is, `mm-display-external' deletes a temporary file too early > to let at least xdg-open work. A temporary solution is attached. Now xdg-open should work called by Gnus (hopefully). Binding of `process-connection-type' to nil was necessary for at least Fedora (I don't know why but Cygwin doesn't need it). The other cause of xdg-open not working was simple; xdg-open has no sooner launched an external viewer than it finishes, whereas Gnus deleted a temporary file (before passing it out to the viewer) as soon as xdg-open finished. Now a temporary file will be deleted by a timer 10 seconds after launching xdg-open. It means that a temporary file will be left if you kill Emacs within 10 seconds. Perhaps it might be better to use `kill-emacs-hook' together or decrease the time to wait. As for Windows or Cygwin, those temporary file and folder cannot be deleted while a viewer is running if it is a Windows' app., so a user may want to delete them periodically.