Gnus development mailing list
 help / color / mirror / Atom feed
From: Aharon Schkolnik <aharon@health.gov.il>
Subject: PATCH: Skip over ticked articles in summary buffer
Date: 15 Apr 1997 10:55:55 +0300	[thread overview]
Message-ID: <nohbgyb1w.fsf@healdb.matat.health.gov.il> (raw)
In-Reply-To: Aharon Schkolnik's message of 15 Apr 1997 09:36:36 +0300


Hi.

I couldn't get anyone else to do it, so I did it myself :-)

The idea (and the patch) is simple: an option to allow you to enter
the summary buffer with the cursor positioned over the first unread
article, but without selecting the article. This is the way I like to
work, and it seems there are others who feel the same way. 


What I did was add a simple function (which  I called
gnus-summary-goto-first-unread-article) which I stole mostly from
gnus-summary-first-article, and make a small change to
gnus-summary-read-group-1. 

The new option is invoked by setting gnus-auto-select-first to
'position.


First of all, I would like to receive comments and suggestions on my
patch. I will then attempt to improve it as much as possible. Lastly,
I would like to know if this option could be integrated into gnus.


Here's the patch:


*** private-gnus-sum.el	Tue Apr 15 08:57:27 1997
--- /usr/local/lib/xemacs-19.15/lisp/gnus/gnus-sum.el	Wed Mar 26 07:33:23 1997
***************
*** 2601,2609 ****
  		 gnus-auto-select-first)
  	    (unless (if (eq gnus-auto-select-first 'best)
  			(gnus-summary-best-unread-article)
! 		      (if (eq gnus-auto-select-first 'position)
! 			  (gnus-summary-goto-first-unread-article)
! 			(gnus-summary-first-unread-article)))
  	      (gnus-configure-windows 'summary))
  	  ;; Don't select any articles, just move point to the first
  	  ;; article in the group.
--- 2601,2607 ----
  		 gnus-auto-select-first)
  	    (unless (if (eq gnus-auto-select-first 'best)
  			(gnus-summary-best-unread-article)
! 		      (gnus-summary-first-unread-article))
  	      (gnus-configure-windows 'summary))
  	  ;; Don't select any articles, just move point to the first
  	  ;; article in the group.
***************
*** 8660,8681 ****
  	 "Update summary buffer %s? "
  	 (lambda (buf) (switch-to-buffer buf) (gnus-summary-exit))
  	 buffers)))))
- 
- (defun gnus-summary-goto-first-unread-article ()
-   "Goto, (but do not select)  the first unread article.
- Return nil if there are no unread articles."
-   (interactive)
-   (gnus-set-global-variables)
-   (prog1
-       (when (gnus-summary-first-subject t)
- 	(gnus-summary-show-thread)
- 	(gnus-summary-first-subject t)
- 	)
-     (gnus-summary-position-point)
-     (gnus-set-mode-line 'summary)
-     (gnus-configure-windows 'summary 'force)
-     )
-   )
  
  (provide 'gnus-sum)
  
--- 8658,8663 ----




>>>>> "Me" == Aharon Schkolnik <aharon@health.gov.il> writes:

    Me> Hi.

    Me> Most of my groups have a number of ticked articles in
    Me> them. When I enter the summary buffer from the group buffer
    Me> (gnus-topic-select-group), I usually want to skip right over
    Me> those ticked articles to get to the ones I haven't read
    Me> yet. Is there a way to get gnus to do this automatically ? If
    Me> not, can someone help me try to write some code to do this ?
    Me> In fact, this probably should be considered a feature
    Me> request. Anyone else agree ?


    Me> TIA.

    Me> -- The day is short, and the work is great, | Aharon Schkolnik
    Me> and the laborers are lazy, and the reward |
    Me> Aharon@Health.Gov.IL is great, and the Master of the house is
    Me> | impatient. - Ethics Of The Fathers Ch. 2 |


-- 
  The day is short, and the work is great,     |   Aharon Schkolnik
  and the laborers are lazy, and the reward    |   Aharon@Health.Gov.IL
  is great, and the Master of the house is     |
  impatient. - Ethics Of The Fathers Ch. 2     |


-- 
  The day is short, and the work is great,     |   Aharon Schkolnik
  and the laborers are lazy, and the reward    |   Aharon@Health.Gov.IL
  is great, and the Master of the house is     |
  impatient. - Ethics Of The Fathers Ch. 2     |


  parent reply	other threads:[~1997-04-15  7:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-13  4:42 How to skip over ticked articles in summary buffer ? Aharon Schkolnik
1997-04-13  9:32 ` John Griffith
1997-04-13 10:29   ` David Moore
1997-04-13 10:53     ` John Griffith
1997-04-13 11:10     ` Hrvoje Niksic
     [not found] ` <nragcyeq3.fsf@healdb.matat.health.gov.il>
1997-04-15  7:55   ` Aharon Schkolnik [this message]
1997-04-17  9:29     ` PATCH: Skip over ticked articles in summary buffer John Griffith
1997-04-17 11:14       ` Steinar Bang
1997-04-17 11:21         ` Steinar Bang
1997-04-18 17:56           ` robert_pluim
1997-04-19  1:59       ` 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

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

  git send-email \
    --in-reply-to=nohbgyb1w.fsf@healdb.matat.health.gov.il \
    --to=aharon@health.gov.il \
    /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).