Commit be8e7380 authored by David Byers's avatar David Byers
Browse files

Review texts will not fail when reviewing many to a conference with few texts

parent 8a0d2723
2000-08-10 David Byers <davby@ida.liu.se> 2000-08-10 David Byers <davby@ida.liu.se>
Fix review many to conferences with few texts:
* review.el (lyskom-get-letters-to): Protect nthcdr from negative
arguments.
(lyskom-get-texts-by-and-to): Ditto.
(lyskom-get-texts-by-generic): Ditto.
(lyskom-get-texts-to): Ditto.
Fix kom-super-jump on empty subject:
* filter.el (kom-super-jump): Protect empty subject with ^$. * filter.el (kom-super-jump): Protect empty subject with ^$.
2000-08-01 David Byers <davby@ida.liu.se> 2000-08-01 David Byers <davby@ida.liu.se>
Menus were sometimes very wide:
* lyskom-buttons.el (lyskom-make-button-menu): Truncate menu title * lyskom-buttons.el (lyskom-make-button-menu): Truncate menu title
to 43 characters. to 43 characters.
......
...@@ -459,7 +459,7 @@ Cannot be called from a callback." ...@@ -459,7 +459,7 @@ Cannot be called from a callback."
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(nfirst (- (length result) num) result)) (nfirst (- (length result) num) result))
(nthcdr (- (length result) num) result)) (nthcdr (max 0 (- (length result) num)) result))
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(nthcdr (- num) result)) (nthcdr (- num) result))
...@@ -740,7 +740,7 @@ Args: persno confno num &optional again pstart cstart" ...@@ -740,7 +740,7 @@ Args: persno confno num &optional again pstart cstart"
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(cons lyskom-last-review-saved-result-list (cons lyskom-last-review-saved-result-list
(make-list (- (length by-list) 1) nil))) (make-list (- (length by-list) 1) nil)))
(nthcdr (- (length result-list) num) result-list)) (nthcdr (max 0 (- (length result-list) num)) result-list))
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
...@@ -862,7 +862,7 @@ Cannot be called from a callback." ...@@ -862,7 +862,7 @@ Cannot be called from a callback."
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(nfirst (- (length result) num) result)) (nfirst (- (length result) num) result))
(nthcdr (- (length result) num) result)) (nthcdr (max 0 (- (length result) num)) result))
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(nthcdr (- num) result)) (nthcdr (- num) result))
...@@ -929,7 +929,7 @@ Cannot be called from a callback." ...@@ -929,7 +929,7 @@ Cannot be called from a callback."
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(nfirst (- (length result) num) result)) (nfirst (- (length result) num) result))
(nthcdr (- (length result) num) result)) (nthcdr (max 0 (- (length result) num)) result))
(progn (progn
(setq lyskom-last-review-saved-result-list (setq lyskom-last-review-saved-result-list
(nthcdr (- num) result)) (nthcdr (- num) result))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment