`gnus-original-article-buffer' with `eval-when-compile' to keep
information where they are defined.
(add-hook 'gnus-article-prepare-hook 'lsdb-gnus-update-record)
(add-hook 'gnus-save-newsrc-hook 'lsdb-mode-save))
-(defvar gnus-article-current-summary)
-(defvar gnus-original-article-buffer)
+(eval-when-compile
+ (defvar gnus-article-current-summary)
+ (defvar gnus-original-article-buffer))
+
(defun lsdb-gnus-update-record ()
(with-current-buffer (with-current-buffer gnus-article-current-summary
gnus-original-article-buffer)