- (pop-to-buffer subject-buf)
- (while (search-backward subject-id nil t)
- )
- (catch 'tag
- (while t
- (tm-partial/preview-article target)
- (pop-to-buffer article-buffer)
- (switch-to-buffer mime::article/preview-buffer)
- (setq cinfo
- (mime::preview-content-info/content-info
- (car mime::preview/content-list)))
- (setq parameters (mime::content-info/parameters cinfo))
- (setq the-id (assoc-value "id" parameters))
- (if (equal the-id id)
- (progn
- (switch-to-buffer article-buffer)
- (mime-article/decode-message/partial
- (point-min)(point-max) parameters)
- (if (file-exists-p full-file)
- (throw 'tag nil)
- )
- ))
- (if (not (progn
- (pop-to-buffer subject-buf)
- (end-of-line)
- (search-forward subject-id nil t)
- ))
- (error "not found")
+ (save-excursion
+ (set-buffer subject-buf)
+ (while (search-backward subject-id nil t))
+ (catch 'tag
+ (while t
+ (tm-partial/preview-article target)
+ (set-buffer article-buffer)
+ (set-buffer mime::article/preview-buffer)
+ (setq cinfo
+ (mime::preview-content-info/content-info
+ (car mime::preview/content-list)))
+ (setq parameters (mime::content-info/parameters cinfo))
+ (setq the-id (assoc-value "id" parameters))
+ (if (equal the-id id)
+ (progn
+ (set-buffer article-buffer)
+ (mime-article/decode-message/partial
+ (point-min)(point-max) parameters)
+ (if (file-exists-p full-file)
+ (throw 'tag nil)
+ )
+ ))
+ (if (not (progn
+ (set-buffer subject-buf)
+ (end-of-line)
+ (search-forward subject-id nil t)
+ ))
+ (error "not found")
+ )