From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81608 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: [PATCH 1/5] Allow gnus-summary-insert-subject to work in empty groups. Date: Thu, 15 Mar 2012 14:23:09 -0400 Message-ID: <1331835793-70228-2-git-send-email-dave@boostpro.com> References: <1331835793-70228-1-git-send-email-dave@boostpro.com> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1331835932 18857 80.91.229.3 (15 Mar 2012 18:25:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Mar 2012 18:25:32 +0000 (UTC) Cc: Dave Abrahams To: ding@gnus.org Original-X-From: ding-owner+M29892@lists.math.uh.edu Thu Mar 15 19:25:29 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S8FMX-0008Tq-Sq for ding-account@gmane.org; Thu, 15 Mar 2012 19:25:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1S8FLn-0003gk-SZ; Thu, 15 Mar 2012 13:24:35 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1S8FLm-0003gd-Lb for ding@lists.math.uh.edu; Thu, 15 Mar 2012 13:24:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S8FLM-0006nC-8L for ding@lists.math.uh.edu; Thu, 15 Mar 2012 13:24:34 -0500 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S8FLK-0000f9-ML for ding@gnus.org; Thu, 15 Mar 2012 19:24:06 +0100 Original-Received: by ggmi1 with SMTP id i1so4480640ggm.17 for ; Thu, 15 Mar 2012 11:24:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=P8kDuSiQJKaqcbxS7QNblLVxCq+7zrrDRMb2GP9popU=; b=VvVaoFSnCLZlIMaAy8bFC2VUotgSngfvDPtJqqQqgfO0Dxez4QNm3s4B5+9t2NPL4u ujXksel00yE/i8+1+ZvB2I25iEngjqWBtzNsriyIfCefLie1XlAjLJxoI2Hrx5XqlOZy s0cO9EUXafFk0HFZIyBdkPuXo1AuyobQH2BfRpdd5JmR4+KZ9boDb/ejyxvC5M8NgRH2 4fp9PzZRc2UiNqYLIzW2X3G1S64bfHpXPo2xsiDtAjDuEVv4K6q8+YCxQRarppg+5XZ4 95xjPs7xYZqV2S29Q2NzmQ/1uhOlXPmaJOIsvk+0eRtH/kfsEQQZuotttgmVcT8rn3aA 6I1w== Original-Received: by 10.229.77.36 with SMTP id e36mr2675550qck.108.1331835840643; Thu, 15 Mar 2012 11:24:00 -0700 (PDT) Original-Received: from pluto.luannocracy.com (207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com. [207.172.223.249]) by mx.google.com with ESMTPS id z6sm5378736qap.17.2012.03.15.11.23.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Mar 2012 11:24:00 -0700 (PDT) X-Mailer: git-send-email 1.7.9.2 In-Reply-To: <1331835793-70228-1-git-send-email-dave@boostpro.com> X-Gm-Message-State: ALoCoQnhvjnrBx6eUGC6hpx3jBjAUF/JAOEjdDq/CqFIplXPPJpsOVlc2OAcx6WsWYD4khjkiJVR X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81608 Archived-At: In groups that haven't been populated yet, the minimum and maximum article numbers are nil; that wasn't accounted for --- lisp/gnus-sum.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 46e246f..8c7334a 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -6626,9 +6626,9 @@ too, instead of trying to fetch new headers." ;; article if ID is a number -- so that the next `P' or `N' ;; command will fetch the previous (or next) article even ;; if the one we tried to fetch this time has been canceled. - (when (> number gnus-newsgroup-end) + (unless (and gnus-newsgroup-end (< number gnus-newsgroup-end)) (setq gnus-newsgroup-end number)) - (when (< number gnus-newsgroup-begin) + (unless (and gnus-newsgroup-begin (> number gnus-newsgroup-begin)) (setq gnus-newsgroup-begin number)) (setq gnus-newsgroup-unselected (delq number gnus-newsgroup-unselected))) -- 1.7.5.4