unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
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	[thread overview]
Message-ID: <b4m61vb200z.fsf@jpl.org> (raw)
In-Reply-To: m3zjsong93.fsf@stories.gnus.org

Lars Magne Ingebrigtsen wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> 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.)



  reply	other threads:[~2013-08-12  1:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1V7hi3-00028W-75@vcs.savannah.gnu.org>
2013-08-09 14:08 ` [Emacs-diffs] trunk r113773: Gnus: delete temporary files when Gnus exits instead of using timers Stefan Monnier
2013-08-09 23:16   ` Katsumi Yamaoka
2013-08-10  2:19     ` Stefan Monnier
2013-08-11 20:07       ` Lars Magne Ingebrigtsen
2013-08-12  1:03         ` Katsumi Yamaoka [this message]
2013-08-12  5:06           ` Achim Gratz
2013-08-12 13:20           ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4m61vb200z.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).