X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-range.el;h=672e72653d11ad154f8e8fbff4ce8a16bcca4e60;hb=9954729d205c97242f0787c79dc23e7b051a6201;hp=ed615edce577877a156706eae125ff109b3558c1;hpb=aa88205ebb3cd4ade3696b2faf1d72a687cffa49;p=gnus diff --git a/lisp/gnus-range.el b/lisp/gnus-range.el index ed615edce..672e72653 100644 --- a/lisp/gnus-range.el +++ b/lisp/gnus-range.el @@ -1,7 +1,7 @@ ;;; gnus-range.el --- range and sequence functions for Gnus -;; Copyright (C) 1996 Free Software Foundation, Inc. +;; Copyright (C) 1996,97,98 Free Software Foundation, Inc. -;; Author: Lars Magne Ingebrigtsen +;; Author: Lars Magne Ingebrigtsen ;; Keywords: news ;; This file is part of GNU Emacs. @@ -25,6 +25,8 @@ ;;; Code: +(eval-when-compile (require 'cl)) + ;;; List and range functions (defun gnus-last-element (list) @@ -53,7 +55,7 @@ list1)) (defun gnus-sorted-complement (list1 list2) - "Return a list of elements of LIST1 that do not appear in LIST2. + "Return a list of elements that are in LIST1 or LIST2 but not both. Both lists have to be sorted over <." (let (out) (if (or (null list1) (null list2)) @@ -263,7 +265,7 @@ Note: LIST has to be sorted over `<'." (defun gnus-range-add (range1 range2) "Add RANGE2 to RANGE1 destructively." - (cond + (cond ;; If either are nil, then the job is quite easy. ((or (null range1) (null range2)) (or range1 range2))