Re: Using efs-1.6 and FSF Emacs 19.23 (and 24?)

hamish (hamish@bnr.ca)
Thu, 2 Jun 1994 09:31:00 -0400


>>>>> On Tue May 31 20:07:00 1994,
>>>>> Ichiro wrote:

ichiro> I have applied this patch, and tried to chmod. I can chmod, but then my
ichiro> Emacs 19.24 signalled the following error.

ichiro> (wrong-number-of-arguments #<subr find-file-name-handler> 1)

ichiro> The following seems to be where the error occurred, but I
ichiro> don't know how to fix it.

ichiro> (defun dired-uncache (file dir-p)
ichiro>   ;; Remove directory DIR from any directory cache.
ichiro>   ;; If DIR-P is non-nil, then FILE is a directory
ichiro>   (let ((handler (find-file-name-handler file)))
                                                     ^ add 'dired-uncache
ichiro>     (if handler
ichiro>        (funcall handler 'dired-uncache file dir-p))))

Basically, anywhere where find-file-name-handler is called with one
argument, you should add a 2nd argument which is a symbol for the
operation that is being performed.

In Lucid Emacs 19.10, Jamie made the 2nd (symbol) argument of
find-file-name-handler optional, so you never see these errors.