Gnus development mailing list
 help / color / mirror / Atom feed
From: jidanni@jidanni.org
To: ding@gnus.org
Subject: sort-by-random docstrings
Date: Sat, 12 Jan 2008 19:25:41 +0800	[thread overview]
Message-ID: <87ve5zthe2.fsf@jidanni.org> (raw)

Gentlemen, you have just copied docstrings without thinking.

(defsubst gnus-article-sort-by-number (h1 h2)
  "Sort articles by article number."
  (< (mail-header-number h1)
     (mail-header-number h2)))

(defun gnus-thread-sort-by-number (h1 h2)
  "Sort threads by root article number."
  (gnus-article-sort-by-number
   (gnus-thread-header h1) (gnus-thread-header h2)))

(defsubst gnus-article-sort-by-random (h1 h2)
  "Sort articles by article number." <===========Clodsburgers
  (zerop (random 2)))

(defun gnus-thread-sort-by-random (h1 h2)
  "Sort threads by root article number."  <===========Clodsburgers
  (gnus-article-sort-by-random
   (gnus-thread-header h1) (gnus-thread-header h2)))



             reply	other threads:[~2008-01-12 11:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-12 11:25 jidanni [this message]
2008-01-12 11:53 ` Reiner Steib

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=87ve5zthe2.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --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).