Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Group Specific Sorting and Threading
@ 2014-04-22  5:05 Les Harris
  0 siblings, 0 replies; 5+ messages in thread
From: Les Harris @ 2014-04-22  5:05 UTC (permalink / raw)
  To: info-gnus-english

Apologies if this is easily found.  I can't seem to find how to do it:

Is it possible to have different sorting and threading functions on a
per group basis?

I have a group using the nnrss backend and the feed comes with posts
newest first and threaded. For this group, I would like posts to be
sorted oldest first and have no threading.

Ideally, I would like a way to do this on a Topic level, so these
settings would apply to all groups within a topic.  I may be getting
ahead of myself with that though.

Any help appreciated.

-- 
Les Harris



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Group Specific Sorting and Threading
  2014-04-22  6:37 ` Damien Wyart
@ 2014-04-22 15:25   ` Les Harris
  0 siblings, 0 replies; 5+ messages in thread
From: Les Harris @ 2014-04-22 15:25 UTC (permalink / raw)
  To: info-gnus-english

Damien Wyart <damien.wyart@free.fr> writes:
> You can find something close to this in this file
> (http://people.irisa.fr/Nicolas.Berthier/file:.gnus.el):

This was almost exactly what I was looking for. It's so simple when
it's staring you in the face.  Thank you much!

The following is what I've put into my Gnus init:

,----
| (add-hook
|  'gnus-summary-mode-hook
|  (lambda ()
|    (when (string-match "^nnrss:CSW.*" gnus-newsgroup-name)
|      (make-local-variable 'gnus-show-threads)
|      (make-local-variable 'gnus-use-adaptive-scoring)
|      (make-local-variable 'gnus-use-scoring)
|      (make-local-variable 'gnus-score-find-score-files-function)
|      (setq gnus-show-threads nil
| 	   gnus-use-adaptive-scoring nil
| 	   gnus-use-scoring t
| 	   gnus-score-find-score-files-function 'gnus-score-find-single)
| 	 (gnus-summary-sort-by-date))))
`----

-- 
Do they only stand
By ignorance, is that their happy state,
The proof of their obedience and their faith?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Group Specific Sorting and Threading
  2014-04-22  6:30 ` Damien Wyart
@ 2014-04-22 13:25   ` Igor Sosa Mayor
  0 siblings, 0 replies; 5+ messages in thread
From: Igor Sosa Mayor @ 2014-04-22 13:25 UTC (permalink / raw)
  To: info-gnus-english

Damien Wyart <damien.wyart@free.fr> writes:

> * Les Harris <lharris@gnome.org> in gnu.emacs.gnus:
>> Is it possible to have different sorting and threading functions on
>> a per group basis?
>
> Have a look at group and topic parameters:
>
> http://www.gnus.org/manual/gnus_28.html
> http://www.gnus.org/manual/gnus_39.html
>

thanks. I'm also beginning with gnus and this kind of tips are really
helpful. 

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Group Specific Sorting and Threading
       [not found] <mailman.20028.1398143245.10748.info-gnus-english@gnu.org>
  2014-04-22  6:30 ` Damien Wyart
@ 2014-04-22  6:37 ` Damien Wyart
  2014-04-22 15:25   ` Les Harris
  1 sibling, 1 reply; 5+ messages in thread
From: Damien Wyart @ 2014-04-22  6:37 UTC (permalink / raw)
  To: info-gnus-english

* Les Harris <lharris@gnome.org> in gnu.emacs.gnus:
> Is it possible to have different sorting and threading functions on
> a per group basis?

> I have a group using the nnrss backend and the feed comes with posts
> newest first and threaded. For this group, I would like posts to be
> sorted oldest first and have no threading.

You can find something close to this in this file
(http://people.irisa.fr/Nicolas.Berthier/file:.gnus.el):

,----
| ;; RSS in summary buffer:
| (add-hook
|  'gnus-summary-mode-hook
|  (lambda ()
|    (when (string-match "^nnrss:.*" gnus-newsgroup-name)
|      (make-local-variable 'gnus-show-threads)
|      (make-local-variable 'gnus-use-adaptive-scoring)
|      (make-local-variable 'gnus-use-scoring)
|      (make-local-variable 'gnus-score-find-score-files-function)
|      (make-local-variable 'gnus-summary-line-format)
|      (setq gnus-show-threads nil
|        gnus-use-adaptive-scoring nil
|        gnus-use-scoring t
|        gnus-score-find-score-files-function 'gnus-score-find-single
|        gnus-summary-line-format "%U%R%z%d %I%(%[ %s %]%)\n"))))
`----

-- 
DW

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Group Specific Sorting and Threading
       [not found] <mailman.20028.1398143245.10748.info-gnus-english@gnu.org>
@ 2014-04-22  6:30 ` Damien Wyart
  2014-04-22 13:25   ` Igor Sosa Mayor
  2014-04-22  6:37 ` Damien Wyart
  1 sibling, 1 reply; 5+ messages in thread
From: Damien Wyart @ 2014-04-22  6:30 UTC (permalink / raw)
  To: info-gnus-english

* Les Harris <lharris@gnome.org> in gnu.emacs.gnus:
> Is it possible to have different sorting and threading functions on
> a per group basis?

Have a look at group and topic parameters:

http://www.gnus.org/manual/gnus_28.html
http://www.gnus.org/manual/gnus_39.html


You can also have a construct like this in your .gnus.el:

(add-hook 'gnus-summary-mode-hook
   (lambda ()
      (if (equal gnus-newsgroup-name "xxx")
         (progn
            (setq gnus-summary-thread-gathering-function 'gnus-gather-threads-by-subject)
            (setq gnus-use-scoring t)
            (setq gnus-thread-sort-functions ;; and so on...)))))


to override your default values (several tests on the group name can be
used, of course).
                        
-- 
DW

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-22 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22  5:05 Group Specific Sorting and Threading Les Harris
     [not found] <mailman.20028.1398143245.10748.info-gnus-english@gnu.org>
2014-04-22  6:30 ` Damien Wyart
2014-04-22 13:25   ` Igor Sosa Mayor
2014-04-22  6:37 ` Damien Wyart
2014-04-22 15:25   ` Les Harris

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).