(forward-line))
(delete-region (point) (point-max))
(insert "\n")
- (insert-file-contents dgnushack-gnus-load-file)
+ ;; smiley-* are duplicated. Remove them all.
+ (let ((point (point)))
+ (insert-file-contents dgnushack-gnus-load-file)
+ (goto-char point)
+ (while (search-forward "smiley-" nil t)
+ (beginning-of-line)
+ (if (looking-at "(autoload ")
+ (delete-region (point) (progn (forward-sexp) (point)))
+ (forward-line))))
+ ;;
(goto-char (point-max))
(when (search-backward "\n(provide " nil t)
(forward-line -1)