(toplevel): Wrap definitions of `gnus-article-current-summary' and
authortsuchiya <tsuchiya>
Wed, 5 May 2004 09:50:24 +0000 (09:50 +0000)
committertsuchiya <tsuchiya>
Wed, 5 May 2004 09:50:24 +0000 (09:50 +0000)
`gnus-original-article-buffer' with `eval-when-compile' to keep
information where they are defined.

lsdb.el

diff --git a/lsdb.el b/lsdb.el
index 5c4b266..ba39641 100644 (file)
--- a/lsdb.el
+++ b/lsdb.el
@@ -1532,8 +1532,10 @@ of the buffer."
   (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)