diff options
| author | Tassilo Horn | 2013-07-30 08:16:20 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-07-30 08:16:20 +0000 |
| commit | a3fd87cb69eb4e93238a2701118559bee9d493eb (patch) | |
| tree | a91fffe5c2f3f193fc7ad5ca4733630b29730db6 /doc/misc | |
| parent | 1e6c60074fd3d412f3ec982c583937e01b2eb3b0 (diff) | |
| download | emacs-a3fd87cb69eb4e93238a2701118559bee9d493eb.tar.gz emacs-a3fd87cb69eb4e93238a2701118559bee9d493eb.zip | |
Gnus: Improve subthread sorting;
make subthread sorting customizable and add docs for it
* doc/misc/gnus.texi (Sorting the Summary Buffer): Document new defcustom
`gnus-subthread-sort-functions' and remove the obsolete documentation
of `gnus-sort-threads-recursively'.
* lisp/gnus/gnus-sum.el (gnus-subthread-sort-functions): New defcustom.
(gnus-sort-threads-recursively): Delete defcustom.
(gnus-sort-threads-recursive): Adapt accordingly.
* lisp/gnus/gnus-sum.el (gnus-sort-subthreads-recursive): New function.
(gnus-sort-threads-recursive): Use it.
(gnus-sort-threads): Unconditionally call `gnus-sort-threads-recursive'
again. Now that determines how to sort subthreads.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 11 |
2 files changed, 14 insertions, 5 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index b306ce5ba0a..9b45ac06f4c 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,4 +1,10 @@ | |||
| 1 | 2013-07-29 David Engster <deng@randomsample.de> | 1 | 2013-07-30 Tassilo Horn <tsdh@gnu.org> |
| 2 | |||
| 3 | * gnus.texi (Sorting the Summary Buffer): Document new defcustom | ||
| 4 | `gnus-subthread-sort-functions' and remove the obsolete documentation | ||
| 5 | of `gnus-sort-threads-recursively'. | ||
| 6 | |||
| 7 | 2013-07-29 David Engster <deng@randomsample.de> | ||
| 2 | 8 | ||
| 3 | * eieio.texi (top): Make clear that EIEIO is not a full CLOS | 9 | * eieio.texi (top): Make clear that EIEIO is not a full CLOS |
| 4 | implementation. | 10 | implementation. |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 5f9e0b9db28..808bd2b114b 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -7394,10 +7394,13 @@ say something like: | |||
| 7394 | gnus-thread-sort-by-score)) | 7394 | gnus-thread-sort-by-score)) |
| 7395 | @end lisp | 7395 | @end lisp |
| 7396 | 7396 | ||
| 7397 | By default, threads are sorted recursively, that is, first the roots, | 7397 | By default, threads including their subthreads are sorted according to |
| 7398 | then all subthreads, and so on. If you feel more like sorting only | 7398 | the value of @code{gnus-thread-sort-functions}. By customizing |
| 7399 | the roots, so that inside a thread the original chronological order is | 7399 | @code{gnus-subthread-sort-functions} you can define a custom sorting |
| 7400 | retained, you can set @code{gnus-sort-threads-recursively} to nil. | 7400 | order for subthreads. This allows for example to sort threads from |
| 7401 | high score to low score in the summary buffer, but to have subthreads | ||
| 7402 | still sorted chronologically from old to new without taking their | ||
| 7403 | score into account. | ||
| 7401 | 7404 | ||
| 7402 | @vindex gnus-thread-score-function | 7405 | @vindex gnus-thread-score-function |
| 7403 | The function in the @code{gnus-thread-score-function} variable (default | 7406 | The function in the @code{gnus-thread-score-function} variable (default |