Gnus development mailing list
 help / color / mirror / Atom feed
From: Florent Rougon <flo@via.ecp.fr>
Subject: Re: [solved] Problem with gnus-article-sort-by-date
Date: Sun, 08 Oct 2006 18:42:40 +0200	[thread overview]
Message-ID: <874pueyd1b.fsf@florent.maison> (raw)
In-Reply-To: <873ba0s6uv.fsf@florent.maison> (Florent Rougon's message of "Sat, 07 Oct 2006 13:28:08 +0200")

Florent Rougon <flo@via.ecp.fr> wrote:

>          (":Debian-\\(tetex\\|texlive\\|lmodern\\)-commits$"
>
>           [irrelevant group parameters snipped]
>
>           (gnus-article-sort-functions
>            '(not gnus-article-sort-by-date)))

OK, I finally tracked down the problem and the conclusion is that I was
using a bad syntax for gnus-article-sort-functions: it was missing a
pair of parentheses around the "not gnus-article-sort-by-date".

Therefore, the problem is solved by using:

         (":Debian-\\(tetex\\|texlive\\|lmodern\\)-commits$"

          [irrelevant group parameters snipped]

          (gnus-article-sort-functions
           '((not gnus-article-sort-by-date))))

For those who tried to find out what was happening, the form whose
evaluation failed was equivalent to:

((lambda
  (t1 t2)
  (or
   (gnus-article-sort-by-date t1 t2)
   (and
    (not
     (gnus-article-sort-by-date t2 t1))
    (not t1 t2))))
 [889 "SVN tetex-doc-nonfree commit: r1660 - tetex-base/trunk/doc/pdftex/manual tetex-doc-nonfree/trunk/doc/pdftex/manual" "Frank Küster <frank@costa.debian.org>" "Thu, 05 Oct 2006 14:13:03 +0000" "<E1GVTyB-0004V3-Du@costa.debian.org>" "" 456 20 "florent.maison Debian-tetex-commits:889"
      ((To . "debian-tex-maint@lists.debian.org"))]

         [888 "SVN tetex-base commit: r1660 - tetex-base/trunk/doc/pdftex/manual tetex-doc-nonfree/trunk/doc/pdftex/manual" "Frank Küster <frank@costa.debian.org>" "Thu, 05 Oct 2006 14:13:03 +0000" "<E1GVTyB-0004Ux-2G@costa.debian.org>" "" 456 20 "florent.maison Debian-tetex-commits:888"
      ((To . "debian-tex-maint@lists.debian.org"))]
         )

The point of failure was the "(not t1 t2)". This means the lambda
expression returned by gnus-make-sort-function was wrong, and this is
because it was fed with invalid input (parentheses missing around the
not "gnus-article-sort-by-date").

I used a (setq gnus-use-byte-compile nil) early in my .emacs.el to avoid
the byte-compilation of the sort function by
gnus-make-sort-function---that was making the backtrace rather difficult
to use.

-- 
Florent



      reply	other threads:[~2006-10-08 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-07 11:28 Florent Rougon
2006-10-08 16:42 ` Florent Rougon [this message]

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=874pueyd1b.fsf@florent.maison \
    --to=flo@via.ecp.fr \
    /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).