]> git.eshelyaron.com Git - emacs.git/commitdiff
nnspool.el (news-path): Use eval-and-compile
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 25 May 2012 06:43:29 +0000 (06:43 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 25 May 2012 06:43:29 +0000 (06:43 +0000)
lisp/gnus/ChangeLog
lisp/gnus/nnspool.el

index e096b9b2b26ffe0ae15e0a824b9185ef874bac95..c917e81a175957f0799ba8a1834ab6baca58926f 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-25  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * nnspool.el (news-path): Use eval-and-compile.
+
 2012-05-24  Glenn Morris  <rgm@gnu.org>
 
        * nnspool.el (news-directory, news-path, news-inews-program):
index fd079d909eb2c8cef8fc8d4e0b64099a92182c20..ad9e9c62d6d715dc4793fe6ddb2d04a3dc59b9ea 100644 (file)
 ;; Probably this entire thing should be obsolete.
 ;; It's only used to init nnspool-spool-directory, so why not just
 ;; set that variable's default directly?
-(defvar news-directory (if (file-exists-p "/usr/spool/news/")
-                          "/usr/spool/news/"
-                        "/var/spool/news/")
-  "The root directory below which all news files are stored.")
-(defvaralias 'news-path 'news-directory)
+(eval-and-compile
+  (defvar news-directory (if (file-exists-p "/usr/spool/news/")
+                            "/usr/spool/news/"
+                          "/var/spool/news/")
+    "The root directory below which all news files are stored.")
+  (defvaralias 'news-path 'news-directory))
 
 ;; Ditto re obsolescence.
 (defvar news-inews-program