all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ivan@kanis.fr
Cc: 23069@debbugs.gnu.org
Subject: bug#23069: 25.1.50; in Gnus temporary browse files are always deleted
Date: Thu, 14 Jul 2016 08:27:55 +0900	[thread overview]
Message-ID: <b4moa6186f8.fsf@jpl.org> (raw)
In-Reply-To: <87bn69uog6.fsf@kanis.fr>

On Wed, 13 Jul 2016 10:14:18 -0400, Ted Zlatanov wrote:
> On Wed, 13 Jul 2016 17:42:39 +0900 Katsumi Yamaoka <yamaoka@jpl.org> wrote:
KY> 3. Don't add `gnus-article-browse-delete-temp-files' to
KY>    `gnus-exit-gnus-hook'.

KY> I vote for 3.
KY> `gnus-summary-prepare-exit-hook' is sufficient for those who
KY> want to delete temp files automatically, I think.

> I think it's much more common to want temporary files deleted by Gnus
> when it exits, than to keep them. By definition those files are
> transient.

Roger.  Ivan, here is a solution for you. :)

(defadvice gnus-article-browse-html-parts
    (after dont-delete-temp-files-when-gnus-exits activate)
  "Never delete temp files if `gnus-article-browse-delete-temp' is nil."
  (unless gnus-article-browse-delete-temp
    (remove-hook 'gnus-exit-gnus-hook
		 (byte-compile
		  (lambda ()
		    (gnus-article-browse-delete-temp-files t))))))

If it's ok, please close this bug.

Regards,





  reply	other threads:[~2016-07-13 23:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-20 16:03 bug#23069: 25.1.50; in Gnus temporary browse files are always deleted Ivan Kanis
2016-03-22  2:42 ` Katsumi Yamaoka
2016-07-11 18:58   ` Ivan Kanis
2016-07-13  8:42     ` Katsumi Yamaoka
2016-07-13 14:14       ` Ted Zlatanov
2016-07-13 23:27         ` Katsumi Yamaoka [this message]
2016-08-25  9:57         ` Ivan Kanis

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

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

  git send-email \
    --in-reply-to=b4moa6186f8.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=23069@debbugs.gnu.org \
    --cc=ivan@kanis.fr \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.