Silence printing.el compilation
authorGlenn Morris <rgm@gnu.org>
Tue, 21 May 2013 16:13:08 +0000 (09:13 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 21 May 2013 16:13:08 +0000 (09:13 -0700)
* lisp/printing.el (pr-menu-bar): Define when compiling.

lisp/ChangeLog
lisp/printing.el

index fdc0c58..1aaf0a5 100644 (file)
@@ -1,5 +1,7 @@
 2013-05-21  Glenn Morris  <rgm@gnu.org>
 
+       * printing.el (pr-menu-bar): Define when compiling.
+
        * mail/rmail.el (speedbar): No need to load when compiling.
        (speedbar-make-specialized-keymap, speedbar-with-attached-buffer)
        (speedbar-do-function-pointer): Declare.
index bf50aa8..18b2b89 100644 (file)
@@ -1342,6 +1342,10 @@ Used by `pr-menu-bind' and `pr-update-menus'.")
 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; GNU Emacs Definitions
 
+(eval-and-compile
+  (unless (featurep 'xemacs)
+    (defvar pr-menu-bar nil
+      "Specify Printing menu-bar entry.")))
 
 (cond
  ((featurep 'xemacs)                   ; XEmacs
@@ -1372,9 +1376,6 @@ Used by `pr-menu-bind' and `pr-update-menus'.")
   (defun pr-menu-char-width ()
     (frame-char-width))
 
-  (defvar pr-menu-bar nil
-    "Specify Printing menu-bar entry.")
-
   ;; GNU Emacs
   ;; Menu binding
   ;; Replace existing "print" item by "Printing" item.