Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: info-gnus-english@gnu.org
Subject: Re: read messages becoming unread in nnml
Date: Tue, 12 Aug 2014 19:32:09 +0200	[thread overview]
Message-ID: <87oavplili.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <871tslk4sa.fsf@debian.uxu>

Emanuel Berg <embe8573@student.uu.se> writes:

> (defun gnus-runs ()
>   (get-buffer "*Group*") )
>
> (defun gnus-save-if-runs ()
>   (if (gnus-runs) (gnus-save-newsrc-file t)) ) ; FORCE
>
> (defun shut ()
>   (interactive)
>   (gnus-save-if-runs)
>   (shell-command "shut") )

I think you can arrive at a better solution if you look at Julien's (or
Carlos') hook.

I.e. run the command that actually tells Gnus to close down, instead of
explicitly calling a function to save the one file you happen know
should be handled when shutting down (what if Gnus needs to do more
now/in the future?)


  Best regards,

    Adam

-- 
 "Sorry, no one's allowed to question the masks."             Adam Sjøgren
                                                         asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2014-08-12 17:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6902.1407653531.1147.info-gnus-english@gnu.org>
2014-08-10 20:52 ` Emanuel Berg
2014-08-11  9:17   ` Adam Sjøgren
2014-08-11 10:54     ` Julien Cubizolles
2014-08-11 10:51   ` Julien Cubizolles
2014-09-17  9:15     ` Julien Cubizolles
     [not found]   ` <mailman.6960.1407748672.1147.info-gnus-english@gnu.org>
2014-08-11 21:55     ` Emanuel Berg
2014-08-11 22:48       ` Adam Sjøgren
     [not found]       ` <mailman.6989.1407797356.1147.info-gnus-english@gnu.org>
2014-08-11 23:16         ` Emanuel Berg
2014-08-12 10:33           ` Adam Sjøgren
     [not found]           ` <mailman.7007.1407839648.1147.info-gnus-english@gnu.org>
2014-08-12 17:15             ` Emanuel Berg
2014-08-12 17:32               ` Adam Sjøgren [this message]
2014-08-12 17:32               ` Adam Sjøgren
     [not found]               ` <mailman.7028.1407864763.1147.info-gnus-english@gnu.org>
2014-08-12 17:59                 ` Emanuel Berg
2014-08-12 20:17                   ` Adam Sjøgren
     [not found]                   ` <mailman.7035.1407874665.1147.info-gnus-english@gnu.org>
2014-08-13 20:02                     ` Emanuel Berg
     [not found]               ` <mailman.7029.1407864916.1147.info-gnus-english@gnu.org>
2014-08-12 18:07                 ` Emanuel Berg
2014-08-12 17:21         ` Carlos Pita
2014-08-12 17:20           ` Emanuel Berg
2014-08-10  6:51 Julien Cubizolles

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=87oavplili.fsf@topper.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=info-gnus-english@gnu.org \
    /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.
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 NNTP newsgroup(s).