emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ange-ftp-ftp-program-args default value


From: Chris Moore
Subject: ange-ftp-ftp-program-args default value
Date: Sun, 11 Apr 2004 03:47:16 +0200

Chris Moore writes:

 > Adding "-u" to ange-ftp-ftp-program-args fixes the problem for me,
 > but perhaps there's a bug in the handling of the "KERBEROS_V4
 > rejected as an authentication type" message.

I spoke too soon.  Adding "-u" mostly fixes the problem, but I've
just found an FTP server for which it doesn't fix it.

To reproduce:

Replace .emacs with the following:

-------cut-here-------8<--------cut-here--------8<-------cut-here-------
(setq tramp-default-method "ftp"
      ange-ftp-ftp-program-args '("-i" "-n" "-g" "-v" "-u")
      tramp-auto-save-directory "~/emacs/Tramp-Auto-Saves/"
      ange-ftp-send-hash nil
      debug-on-error t
      )

(defun f3 ()
  (interactive)
 (dired "/address@hidden:/"))
-------cut-here-------8<--------cut-here--------8<-------cut-here-------

and run Emacs like this:

  emacs -f f3

I see the following backtrace:

-------cut-here-------8<--------cut-here--------8<-------cut-here-------
Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
  gethash("." nil)
  byte-code("...[byte code deleted]..." [file file-ent gethash 
file-name-nondirectory "" "." ange-ftp-get-files file-name-directory] 6)
  ange-ftp-file-symlink-p("/address@hidden:/")
  apply(ange-ftp-file-symlink-p "/address@hidden:/")
  ange-ftp-hook-function(file-symlink-p "/address@hidden:/")
  apply(ange-ftp-hook-function file-symlink-p "/address@hidden:/")
  tramp-ftp-file-name-handler(file-symlink-p "/address@hidden:/")
  apply(tramp-ftp-file-name-handler file-symlink-p "/address@hidden:/")
  tramp-file-name-handler(file-symlink-p "/address@hidden:/")
  file-symlink-p("/address@hidden:/")
  ange-ftp-insert-directory("/address@hidden:/" "--dired -al" nil t)
  apply(ange-ftp-insert-directory ("/address@hidden:/" "--dired -al" nil t))
  ange-ftp-hook-function(insert-directory "/address@hidden:/" "--dired -al" nil 
t)
  apply(ange-ftp-hook-function insert-directory ("/address@hidden:/" "--dired 
-al" nil t))
  tramp-ftp-file-name-handler(insert-directory "/address@hidden:/" "--dired 
-al" nil t)
  apply(tramp-ftp-file-name-handler insert-directory ("/address@hidden:/" 
"--dired -al" nil t))
  tramp-file-name-handler(insert-directory "/address@hidden:/" "--dired -al" 
nil t)
  insert-directory("/address@hidden:/" "--dired -al" nil t)
  dired-insert-directory("/address@hidden:/" "-al" nil nil t)
  dired-readin-insert()
  dired-readin()
  dired-internal-noselect("/address@hidden:/" nil)
  dired-noselect("/address@hidden:/" nil)
  dired("/address@hidden:/")
  f3()
* call-interactively(f3)
  command-execute(f3)
  command-line-1(("-f" "f3"))
  command-line()
  normal-top-level()
-------cut-here-------8<--------cut-here--------8<-------cut-here-------

Do you?

The *ftp address@hidden buffer contains the following:

-------cut-here-------8<--------cut-here--------8<-------cut-here-------
ftp> open ftp.mirror.ac.uk
Connected to ftp.mirror.ac.uk.
220 UK Mirror Service FTP server version 1.4 ready
user "anonymous" Turtle Power!
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 331 Guest login ok: please send your email address as the password
230-  Welcome to the UK Mirror Service funded by JISC
230-  More information can be found at our web site: http://www.mirror.ac.uk/
230-  Please send comments or questions to address@hidden
230-  
230-  ------------------------------------------------
230-  IMPORTANT UK MIRROR SERVICE FUNDING ANNOUNCEMENT
230-  ------------------------------------------------
230-  
230-  The UK Mirror Service sadly announces that Lancaster University and the
230-  University of Kent have lost the Joint Information Systems Committee
230-  contract to jointly provide mirroring services. From 1st August a new
230-  contractor will be funded by the JISC to provide an internet resources
230-  mirroring service for further and higher education. The JISC (see
230-  http://www.jisc.ac.uk) will no doubt make an announcement regarding a
230-  new service provider in due course.
230-  
230-  For the full announcement, please see
230-  http://www.mirror.ac.uk/help/funding_announcement.html
230-  
230-  Best wishes
230-  The UK Mirror Service Team
230-  
230 Logged in for anonymous FTP
fpwd
tp> 257 "/" is current directory
ftp> pwd
257 "/" is current directory
ftp> cd /
250 Current directory now /
ftp> ls -al /home/chris/tmp/ange-ftp16898kHK
200 Data port set
150 About to open data connection
226 Transfer complete
ftp> 
-------cut-here-------8<--------cut-here--------8<-------cut-here-------

Note particularly the line that says "fpwd".  The "f" of the "ftp>"
prompt was printed, then the "pwd" command was sent, and then the
"tp>" of the prompt was printed.  This happens every time.  If you
remove "ange-ftp-send-hash nil" from the .emacs then the "fpwd" line
becomes "fhash" instead, and the same backtrace happens.  Is this
what is leading to the "hash-table-p nil" error?

Chris.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]