INFO-LIST), otherwise it's a list in the format of the
`gnus-newsrc-hashtb' entries. LEVEL is the new level of the
group, OLDLEVEL is the old level and PREVIOUS is the group (a
-string name) to insert this group after."
+string name) to insert this group before."
(let (group info active num)
;; Glean what info we can from the arguments.
(if (consp entry)
(puthash group (list num info) gnus-newsrc-hashtb)
(when (stringp previous)
(setq previous (gnus-group-entry previous)))
- (let* ((prev-idx (seq-position gnus-group-list (caadr previous)))
- (idx (if prev-idx
- (1+ prev-idx)
- (length gnus-group-list))))
+ (let ((idx (or (seq-position gnus-group-list (caadr previous))
+ (length gnus-group-list))))
(push group (nthcdr idx gnus-group-list)))
(gnus-dribble-enter
(format "(gnus-group-set-info '%S)" info)