;;; Code:
+(eval-when-compile (require 'cl))
+
;;; List and range functions
(defun gnus-last-element (list)
(setcar ranges (cons (car ranges)
(cadr ranges)))
(setcdr ranges (cddr ranges)))
- (when (= (1+ (car ranges)) (caadr ranges))
+ (when (= (1+ (car ranges)) (car (cadr ranges)))
(setcar (cadr ranges) (car ranges))
(setcar ranges (cadr ranges))
(setcdr ranges (cddr ranges)))))
(when (= (1+ (cdar ranges)) (cadr ranges))
(setcdr (car ranges) (cadr ranges))
(setcdr ranges (cddr ranges)))
- (when (= (1+ (cdar ranges)) (caadr ranges))
- (setcdr (car ranges) (cdadr ranges))
+ (when (= (1+ (cdar ranges)) (car (cadr ranges)))
+ (setcdr (car ranges) (cdr (cadr ranges)))
(setcdr ranges (cddr ranges))))))
(setq ranges (cdr ranges)))
out)))