Gnus development mailing list
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
To: ding@gnus.org
Subject: Re: Exiting groups moves the cursor to next line
Date: Mon, 14 May 2007 09:14:08 +1000	[thread overview]
Message-ID: <87bqgo1flr.fsf@zip.com.au> (raw)
In-Reply-To: <87bqgqm5wd.fsf@lrde.org> (=?iso-8859-1?Q?Micha=EBl?= Cadilhac's message of "Sat, 12 May 2007 17:13:38 +0200")

I've been using the exit command below for semi-smart advance.  If
reviewing an old group it doesn't advance, but in normal reading it
does.

"Old" means anything unsubscribed (I keep bits of occasional interest
in unsubscribed level), or anything with no unread articles (which is
not necessarily old, but is certainly a case of going back to
revisit).

I guess it's personal preference, but maybe there'd be a clean way to
have a notion of "reading in sequence" versus revisiting, and only
advance for the former.


(defun my-gnus-summary-exit (&optional temporary)
  "Like `gnus-summary-exit', but sometimes preserve point in *Group*."
  (interactive "P")
  (if (save-excursion
        (with-current-buffer "*Group*"
          (beginning-of-line)
          (looking-at "^ U\\|^. *0:")))
      (my-gnus-summary-exit-nonext temporary)
    (gnus-summary-exit temporary)))

(defun my-gnus-summary-exit-nonext (&optional temporary)
  "Like `gnus-summary-exit', but don't move in *Group*."
  (interactive "P")
  (let ((group gnus-newsgroup-name))
    (gnus-summary-exit temporary)
    (gnus-summary-jump-to-group group)))



  parent reply	other threads:[~2007-05-13 23:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-05 11:21 exiting digest mails does not move " Shanks N
2007-05-06 14:00 ` Katsumi Yamaoka
2007-05-08 12:18   ` Katsumi Yamaoka
2007-05-08 14:25     ` Shanks N
2007-05-09  8:25       ` Katsumi Yamaoka
2007-05-08 13:09 ` Exiting groups moves the cursor to next line (was: exiting digest mails does not move the cursor to next line) Michaël Cadilhac
2007-05-08 17:44   ` Exiting groups moves the cursor to next line Reiner Steib
2007-05-08 21:25     ` Michaël Cadilhac
2007-05-10 12:31       ` Michaël Cadilhac
2007-05-12 15:13         ` Michaël Cadilhac
2007-05-13 23:01           ` Katsumi Yamaoka
2007-05-14 14:57             ` Michaël Cadilhac
2007-05-15  2:13               ` Katsumi Yamaoka
2007-05-18  1:33                 ` Kevin Ryde
2007-05-18  1:56                   ` Katsumi Yamaoka
2007-05-13 23:14           ` Kevin Ryde [this message]
2007-05-14 15:13             ` Michaël Cadilhac
2007-06-30 12:03             ` Johan Bockgård

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=87bqgo1flr.fsf@zip.com.au \
    --to=user42@zip.com.au \
    --cc=ding@gnus.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).