From xemacs-m  Tue Dec 10 02:28:38 1996
Received: from macon.informatik.uni-tuebingen.de (macon2.Informatik.Uni-Tuebingen.De [134.2.13.2]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id CAA22614 for <xemacs-beta@xemacs.org>; Tue, 10 Dec 1996 02:28:34 -0600 (CST)
Received: from modas.Informatik.Uni-Tuebingen.De by macon.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA15878; Tue, 10 Dec 1996 09:28:23 +0100
Received: by modas.informatik.uni-tuebingen.de (AIX 4.1/UCB 5.64/4.03)
          id AA23904; Tue, 10 Dec 1996 09:28:21 +0100
Sender: sperber@informatik.uni-tuebingen.de
To: xemacs-beta@xemacs.org
Subject: 20.0b30: file-name-handlers incongruity
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: 10 Dec 1996 09:28:18 +0100
Message-Id: <y9l682akdlp.fsf@modas.informatik.uni-tuebingen.de>
Lines: 53
X-Mailer: Red Gnus v0.72/XEmacs 19.15


load-internal and insert-file-contents-internal call
file-name-handlers for load and insert-file-contents respectively, but
with argument lists that are too long.  (This breaks EFS.)

I'm not sure the attached patch is politically correct; another
possibility would be to call the handlers directly from load and
insert-file-contents.

Cheers =8-} Mike

*** src/lread.c~	Sun Nov 10 09:37:57 1996
--- src/lread.c	Tue Dec 10 08:51:47 1996
***************
*** 576,583 ****
    /* If file name is magic, call the handler.  */
    handler = Ffind_file_name_handler (file, Qload);
    if (!NILP (handler))
!     RETURN_UNGCPRO (call7 (handler, Qload, file, no_error, nomessage,
! 			   nosuffix, codesys, used_codesys));
  
    /* Do this after the handler to avoid
       the need to gcpro noerror, nomessage and nosuffix.
--- 576,583 ----
    /* If file name is magic, call the handler.  */
    handler = Ffind_file_name_handler (file, Qload);
    if (!NILP (handler))
!     RETURN_UNGCPRO (call5 (handler, Qload, file, no_error,
! 			   nomessage, nosuffix));
  
    /* Do this after the handler to avoid
       the need to gcpro noerror, nomessage and nosuffix.
*** src/fileio.c~	Sun Oct 20 15:20:02 1996
--- src/fileio.c	Tue Dec 10 09:16:34 1996
***************
*** 2923,2930 ****
    handler = Ffind_file_name_handler (filename, Qinsert_file_contents);
    if (!NILP (handler))
      {
!       val = call8 (handler, Qinsert_file_contents, filename,
! 		   visit, beg, end, replace, codesys, used_codesys);
        goto handled;
      }
  
--- 2923,2930 ----
    handler = Ffind_file_name_handler (filename, Qinsert_file_contents);
    if (!NILP (handler))
      {
!       val = call6 (handler, Qinsert_file_contents, filename,
! 		   visit, beg, end, replace);
        goto handled;
      }
  

