Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Building in a cleaner environment for XEmacs.
@ 2003-04-16  6:36 Steve Youngs
  2003-04-16  9:30 ` Frank Schmitt
  2003-04-17  0:40 ` [PATCH] Building in a cleaner environment for XEmacs Katsumi Yamaoka
  0 siblings, 2 replies; 18+ messages in thread
From: Steve Youngs @ 2003-04-16  6:36 UTC (permalink / raw)


This patch:

        - Sets the command line opts for building with XEmacs to be
          '-batch -no-autoloads...' for a cleaner build environment.

        - Fixes all the byte-compiler warnings that the above
          uncovered. 

        - Sets $datadir to be $prefix/lib in XEmacs instead of
          $prefix/share. 

        - A couple of minor nits in hashcash.el

I'd appreciate it if someone could test this on GNU/Emacs before I
commit this, just to make sure I haven't broken anything there.

Thanks guys!

Gnus patch:
ChangeLog files diff command: cvs -q diff -U 0
Files affected:               lisp/ChangeLog contrib/ChangeLog ChangeLog
Source files diff command:    cvs -q diff -uN
Files affected:               lisp/mailcap.el lisp/lpath.el lisp/dgnushack.el contrib/hashcash.el configure.in aclocal.m4 Makefile.in

Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/ChangeLog,v
retrieving revision 6.48
diff -u -U0 -r6.48 ChangeLog
--- ChangeLog	26 Mar 2003 20:49:55 -0000	6.48
+++ ChangeLog	16 Apr 2003 06:29:34 -0000
@@ -0,0 +1,13 @@
+2003-04-14  Steve Youngs  <youngs@xemacs.org>
+
+	* Makefile.in (XEMACS): Use @EMACS@.
+
+	* aclocal.m4 (AC_PATH_LISPDIR): Set $datadir to $prefix/lib if
+	building with XEmacs.
+
+	* aclocal.m4 (AC_SET_BUILD_FLAGS): New.  So we can set XEmacs
+	command line options to '-batch -no-autoloads...' for a cleaner
+	build environment.
+
+	* configure.in: Use it.
+
@@ -29 +42 @@
-2003-02-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
+2003-02-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
@@ -72 +85 @@
-2002-12-05  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
+2002-12-05  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
@@ -76 +89 @@
-2002-11-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
+2002-11-13  Kai Großjohann  <kai.grossjohann@uni-duisburg.de>
@@ -116 +129 @@
-2001-12-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-12-18  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
@@ -130 +143 @@
-2001-12-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-12-10  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
@@ -135 +148 @@
-2001-11-26  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-11-26  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
@@ -161 +174 @@
-2001-10-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-10-19  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
@@ -184 +197 @@
-2001-09-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-09-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
@@ -197 +210 @@
-2001-05-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-05-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
Index: Makefile.in
===================================================================
RCS file: /usr/local/cvsroot/gnus/Makefile.in,v
retrieving revision 6.4
diff -u -u -r6.4 Makefile.in
--- Makefile.in	6 Oct 2001 12:47:45 -0000	6.4
+++ Makefile.in	16 Apr 2003 06:28:22 -0000
@@ -5,7 +5,7 @@
 
 @SET_MAKE@
 EMACS = @EMACS@
-XEMACS = xemacs
+XEMACS = @EMACS@
 
 all: lick info
 
Index: aclocal.m4
===================================================================
RCS file: /usr/local/cvsroot/gnus/aclocal.m4,v
retrieving revision 6.7
diff -u -u -r6.7 aclocal.m4
--- aclocal.m4	27 Apr 2002 17:26:30 -0000	6.7
+++ aclocal.m4	16 Apr 2003 06:28:23 -0000
@@ -84,6 +84,7 @@
 	theprefix=$ac_default_prefix
     fi
     if test "$EMACS_FLAVOR" = "xemacs"; then
+        datadir="\$(prefix)/lib"
         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/gnus"
     else
     lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
@@ -138,6 +139,26 @@
   fi
   AC_MSG_RESULT($info_dir)
   AC_SUBST(info_dir)
+])
+
+dnl
+dnl This will set the XEmacs command line options to be slightly different
+dnl from the Emacs ones.  If building with XEmacs the options will be
+dnl "-batch -no-autoloads..." to give a much cleaner build environment.
+dnl
+AC_DEFUN(AC_SET_BUILD_FLAGS, [
+  AC_MSG_CHECKING([which options to pass on to (X)Emacs])
+  if test "x$FLAGS" = "x"; then
+    if test "$EMACS_FLAVOR" = "xemacs"; then
+      FLAGS="-batch -no-autoloads -l \$(srcdir)/dgnushack.el"
+    else
+      FLAGS="-batch -q -no-site-file -l \$(srcdir)/dgnushack.el"
+    fi
+  else
+    FLAGS=$FLAGS
+  fi
+  AC_MSG_RESULT($FLAGS)
+  AC_SUBST(FLAGS)
 ])
 
 dnl
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/gnus/configure.in,v
retrieving revision 6.5
diff -u -u -r6.5 configure.in
--- configure.in	27 Apr 2002 17:26:30 -0000	6.5
+++ configure.in	16 Apr 2003 06:28:23 -0000
@@ -23,6 +23,7 @@
 AC_PATH_INFO_DIR
 AC_CHECK_URL
 AC_CHECK_W3
+AC_SET_BUILD_FLAGS
 GNUS_CHECK_FONTS
 
 AC_OUTPUT(Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile)
Index: contrib/ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/contrib/ChangeLog,v
retrieving revision 1.77
diff -u -U0 -r1.77 ChangeLog
--- contrib/ChangeLog	19 Mar 2003 22:23:50 -0000	1.77
+++ contrib/ChangeLog	16 Apr 2003 06:29:40 -0000
@@ -0,0 +1,6 @@
+2003-04-14  Steve Youngs  <youngs@xemacs.org>
+
+	* hashcash.el (hashcash-point-at-bol): Move the fbound test
+	outside of the defalias.
+	(hashcash-point-at-eol): Ditto.
+
@@ -52 +58 @@
-2002-04-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-04-24  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
@@ -189 +195 @@
-2000-11-08  Björn Torkelsson  <torkel@hpc2n.umu.se>
+2000-11-08  Björn Torkelsson  <torkel@hpc2n.umu.se>
Index: contrib/hashcash.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/contrib/hashcash.el,v
retrieving revision 1.10
diff -u -u -r1.10 hashcash.el
--- contrib/hashcash.el	11 Mar 2003 21:20:06 -0000	1.10
+++ contrib/hashcash.el	16 Apr 2003 06:28:26 -0000
@@ -60,15 +60,13 @@
 
 (require 'mail-utils)
 
-(defalias 'hashcash-point-at-bol
-    (if (fboundp 'point-at-bol)
-	'point-at-bol
-	'line-beginning-position))
+(if (fboundp 'point-at-bol)
+    (defalias 'hashcash-point-at-bol 'point-at-bol)
+  (defalias 'hashcash-point-at-bol 'line-beginning-position))
 
-(defalias 'hashcash-point-at-eol
-    (if (fboundp 'point-at-eol)
-	'point-at-eol
-	'line-end-position))
+(if (fboundp 'point-at-eol)
+    (defalias 'hashcash-point-at-eol 'point-at-eol)
+  (defalias 'hashcash-point-at-eol 'line-end-position))
 
 (defun hashcash-strip-quoted-names (addr)
   (setq addr (mail-strip-quoted-names addr))
Index: lisp/ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v
retrieving revision 6.2235
diff -u -U0 -r6.2235 ChangeLog
--- lisp/ChangeLog	16 Apr 2003 00:02:03 -0000	6.2235
+++ lisp/ChangeLog	16 Apr 2003 06:30:38 -0000
@@ -0,0 +1,11 @@
+2003-04-14  Steve Youngs  <youngs@xemacs.org>
+
+	* dgnushack.el: Add a whole swag of autoloads and defaliases to
+	satisfy the byte-compiler when building with XEmacs.
+
+	* lpath.el (maybe-bind): Add 'w3-meta-content-type-charset-regexp'
+	and 'w3-meta-charset-content-type-regexp' in XEmacs.  The upstream
+	W3 doesn't have these.
+
+	* mailcap.el: Maybe require 'lpr in XEmacs.
+
Index: lisp/dgnushack.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/dgnushack.el,v
retrieving revision 6.32
diff -u -u -r6.32 dgnushack.el
--- lisp/dgnushack.el	6 Aug 2002 17:57:14 -0000	6.32
+++ lisp/dgnushack.el	16 Apr 2003 06:29:21 -0000
@@ -138,6 +138,53 @@
     (defalias 'x-defined-colors 'ignore)
     (defalias 'read-color 'ignore)))
 
+(eval-and-compile
+  (when (featurep 'xemacs)
+    (autoload 'Info-directory "info" nil t)
+    (autoload 'Info-menu "info" nil t)
+    (autoload 'annotations-at "annotations")
+    (autoload 'apropos "apropos" nil t)
+    (autoload 'apropos-command "apropos" nil t)
+    (autoload 'bbdb-complete-name "bbdb-com" nil t)
+    (autoload 'browse-url "browse-url" nil t)
+    (autoload 'customize-apropos "cus-edit" nil t)
+    (autoload 'customize-save-variable "cus-edit" nil t)
+    (autoload 'customize-variable "cus-edit" nil t)
+    (autoload 'delete-annotation "annotations")
+    (autoload 'dolist "cl-macs" nil nil 'macro)
+    (autoload 'enriched-decode "enriched")
+    (autoload 'info "info" nil t)
+    (autoload 'make-annotation "annotations")
+    (autoload 'make-display-table "disp-table")
+    (autoload 'pp "pp")
+    (autoload 'ps-despool "ps-print" nil t)
+    (autoload 'ps-spool-buffer "ps-print" nil t)
+    (autoload 'ps-spool-buffer-with-faces "ps-print" nil t)
+    (autoload 'read-passwd "passwd")
+    (autoload 'regexp-opt "regexp-opt")
+    (autoload 'reporter-submit-bug-report "reporter")
+    (autoload 'setenv "process" nil t)
+    (autoload 'smtpmail-send-it "smtpmail")
+    (autoload 'sort-numeric-fields "sort" nil t)
+    (autoload 'sort-subr "sort")
+    (autoload 'trace-function-background "trace" nil t)
+    (autoload 'w3-do-setup "w3")
+    (autoload 'w3-prepare-buffer "w3-display")
+    (autoload 'w3-region "w3-display" nil t)
+    (defalias 'frame-char-height 'frame-height)
+    (defalias 'frame-char-width 'frame-width)
+    (defalias 'frame-parameter 'frame-property)
+    (defalias 'make-overlay 'ignore)
+    (defalias 'overlay-end 'ignore)
+    (defalias 'overlay-get 'ignore)
+    (defalias 'overlay-put 'ignore)
+    (defalias 'overlay-start 'ignore)
+    (defalias 'overlays-in 'ignore)
+    (defalias 'replace-dehighlight 'ignore)
+    (defalias 'replace-highlight 'ignore)
+    (defalias 'run-with-idle-timer 'ignore)
+    (defalias 'w3-coding-system-for-mime-charset 'ignore)))
+
 (defun dgnushack-compile (&optional warn)
   ;;(setq byte-compile-dynamic t)
   (unless warn
Index: lisp/lpath.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/lpath.el,v
retrieving revision 6.63
diff -u -u -r6.63 lpath.el
--- lisp/lpath.el	12 Apr 2003 20:30:56 -0000	6.63
+++ lisp/lpath.el	16 Apr 2003 06:29:22 -0000
@@ -52,7 +52,9 @@
 		    enable-multibyte-characters gnus-agent-expire-current-dirs
 		    language-info-alist mark-active mouse-selection-click-count
 		    mouse-selection-click-count-buffer pgg-parse-crc24
-		    temporary-file-directory transient-mark-mode)))
+		    temporary-file-directory transient-mark-mode
+		    w3-meta-content-type-charset-regexp
+		    w3-meta-charset-content-type-regexp)))
   (maybe-fbind '(bbdb-complete-name
 		 delete-annotation device-connection dfw-device
 		 events-to-keys font-lock-set-defaults frame-device
Index: lisp/mailcap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mailcap.el,v
retrieving revision 6.17
diff -u -u -r6.17 mailcap.el
--- lisp/mailcap.el	14 Apr 2003 13:37:26 -0000	6.17
+++ lisp/mailcap.el	16 Apr 2003 06:29:26 -0000
@@ -49,6 +49,12 @@
     table)
   "A syntax table for parsing sgml attributes.")
 
+(eval-and-compile
+  (when (featurep 'xemacs)
+    (condition-case nil
+	(require 'lpr)
+      (error nil))))
+
 (defvar mailcap-print-command
   (mapconcat 'identity
 	     (cons (if (boundp 'lpr-command)

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---|
|            XEmacs - It's not just an editor.             |
|                    It's a way of life.                   |
|------------------------------------<youngs@xemacs.org>---|



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-04-23  4:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16  6:36 [PATCH] Building in a cleaner environment for XEmacs Steve Youngs
2003-04-16  9:30 ` Frank Schmitt
2003-04-16 10:37   ` Steve Youngs
2003-04-16 13:54     ` [Patch] XEmacs args in make.bat (was: [PATCH] Building in a cleaner environment for XEmacs.) Frank Schmitt
2003-04-16 14:57       ` [Patch] XEmacs args in make.bat Reiner Steib
2003-04-16 21:43       ` Steve Youngs
2003-04-16 23:55         ` Kevin Greiner
2003-04-17 15:14           ` Reiner Steib
2003-04-18 13:36             ` Kevin Greiner
2003-04-18 20:48               ` \r\n or \n line endings in make.bat? (was: [Patch] XEmacs args in make.bat) Reiner Steib
2003-04-18 22:53                 ` \r\n or \n line endings in make.bat? Graham Murray
2003-04-19 20:10                   ` Frank Schmitt
2003-04-20  5:20                     ` Kevin Greiner
2003-04-22 18:28                       ` Reiner Steib
2003-04-23  4:27                         ` Kevin Greiner
2003-04-17  0:40 ` [PATCH] Building in a cleaner environment for XEmacs Katsumi Yamaoka
2003-04-17  7:45   ` Steve Youngs
2003-04-17  9:07     ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).