smime.el (from): Restrict declaration to XEmacs.
[gnus] / lisp / smime.el
index 3045e76..b8ee4c1 100644 (file)
@@ -426,7 +426,9 @@ Any details (stdout and stderr) are left in the buffer specified by
     (insert-buffer-substring smime-details-buffer)
     nil))
 
-(defvar from) ;; Necessary for XEmacs to silence the byte compiler.
+;; TODO: fix this properly by giving it a prefix.
+(if (featurep 'xemacs)
+    (defvar from))
 
 (defun smime-decrypt-region (b e keyfile)
   "Decrypt S/MIME message in region between B and E with key in KEYFILE.