Gnus development mailing list
 help / color / mirror / Atom feed
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Subject: Re: Red Gnus v0.61 is released
Date: 14 Nov 1996 19:22:34 +0100	[thread overview]
Message-ID: <byralwv8np.fsf@math.ethz.ch> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 14 Nov 1996 09:57:12 +0100

Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

> Jan Vroonhof <vroonhof@math.ethz.ch> writes:
> 
> > Lars, please remove this patch (it's very ugly hack IMHO anyway, you
> > are braking very basic Emacs semantics here). Please Please.
> 
> Nope, nope.  It's quite nice, actually, since the only other solution
> is to delete all the .elc files first.

It's ugly. It's ugly. It's ugly. :-P . What Gnus does with its own
files is its problem but it should never EVER load other .el files
before .elc files. That just isn't right. What you want is to not load
the Gnus .elc if you have never .el files. Just get rid of them:

> > I have my mail-utils.el gzipped so that the .el version of that
> > doesn't exist either. There are probably other people who have
> > thrown out the .el files altogether.
> 
> Fix in Red Gnus v0.62.

What If I am hacking mail-utils.el at the moment?

> Just trust me.  It's the right thing to do.  :-)

Trust me, just apply this patch :-)

--- dgnushack.el.orig	Thu Nov 14 16:25:27 1996
+++ dgnushack.el	Thu Nov 14 19:12:35 1996
@@ -37,16 +37,6 @@
 (defalias 'efs-re-read-dir 'ignore)
 (defalias 'ange-ftp-re-read-dir 'ignore)
 
-(fset 'orig-require (symbol-function 'require))
-
-(defun require (package &optional file)
-  "Avoid loading .elc files."
-  (let ((filename (concat (symbol-name package) ".el")))
-    (condition-case err
-	(orig-require package filename)
-      (error
-       (orig-require package)))))
-
 (eval-and-compile
   (unless (string-match "XEmacs" emacs-version)
     (fset 'get-popup-menu-response 'ignore)
@@ -59,11 +49,19 @@
   (let ((files (directory-files "." nil ".el$"))
 	(xemacs (string-match "XEmacs" emacs-version))
 	;;(byte-compile-generate-call-tree t)
-	byte-compile-warnings file elc)
+	byte-compile-warnings file comp-files elc)
     (condition-case ()
 	(require 'w3-forms)
       (error (setq files (delete "nnweb.el" files))))
+    (setq files (delete "dgnushack.el" files))
+;; Delete offending .elc files if we are going to recreate them anyway    
     (while (setq file (pop files))
+	(when (file-newer-than-file-p file (setq elc (concat file "c")))
+	  (progn
+	    (push file comp-files)
+	    (when (file-exists-p elc)
+	       (delete-file elc)))))
+    (while (setq file (pop comp-files))
       (cond 
        ((or (string= file "custom.el") (string= file "browse-url.el"))
 	(setq byte-compile-warnings nil))
@@ -77,10 +75,8 @@
 				    "messagexmas.el" "nnheaderxm.el"
 				    "smiley.el")))
 		xemacs)
-	(when (or (not (file-exists-p (setq elc (concat file "c"))))
-		  (file-newer-than-file-p file elc))
 	  (ignore-errors
-	    (byte-compile-file file)))))))
+	    (byte-compile-file file))))))
 
 (defun dgnushack-recompile ()
   (require 'gnus)


  reply	other threads:[~1996-11-14 18:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-12 18:11 Lars Magne Ingebrigtsen
1996-11-12 19:05 ` Steven L Baur
1996-11-12 19:53   ` Jan Vroonhof
1996-11-14  8:57     ` Lars Magne Ingebrigtsen
1996-11-14 18:22       ` Jan Vroonhof [this message]
1996-11-15 22:25         ` Lars Magne Ingebrigtsen
1996-11-12 21:02   ` Karl Kleinpaste

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=byralwv8np.fsf@math.ethz.ch \
    --to=vroonhof@math.ethz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).