Jorgen Schaefer <[EMAIL PROTECTED]> writes:

> The problem you described was that `file-exists-p' throws an error
> in `emms-player-mplayer-subtitle-checker'. This is because it
> tries to open a file called http://www.archive.org/....sub - which
> will invoke tramp, leading to the error you describe. As the
> subtitle file should not include slashes (that makes it read like
> it's in a directory, which it shouldn't be, AFAIK), replacing the
> slashes with underscores should prevent both the invocation of
> tramp as well as the subdirectory confusion.

This change in the name of the subtitle file is deliberate.  I didn't
know about this policy choice.

>> In any case this didn't solve the problem I described.
>
> Interesting, it did for me. Does the backtrace show slashes in the
> subtitle files still? Could you attach another backtrace?

Yes, sure.

This can also be a tramp bug (or feature), so I should include my
Emacs and TRAMP versions:

Emacs version: GNU Emacs 23.0.50.2 (i686-pc-linux-gnu, GTK+ Version
2.12.0) of 2007-10-09 on onosendai

TRAMP version: 2.1.11-pre

Debugger entered--Lisp error: (file-error "Permission denied")
  signal(file-error ("Permission denied"))
  tramp-error(["scp" nil "http" 
"__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"]
 file-error "Permission denied")
  apply(tramp-error ["scp" nil "http" 
"__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"]
 file-error "Permission denied" nil)
  byte-code("ÄŽÅÆ      \n%)‡" [vec-or-proc signal fmt-string args ((byte-code 
"ƒ-
  tramp-process-actions(#<process *tramp/scp http*> ["scp" nil "http" 
"__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"]
 ((tramp-login-prompt-regexp tramp-action-login) (tramp-password-prompt-regexp 
tramp-action-password) (tramp-wrong-passwd-regexp 
tramp-action-permission-denied) (shell-prompt-pattern tramp-action-succeed) 
(tramp-shell-prompt-pattern tramp-action-succeed) (tramp-yesno-prompt-regexp 
tramp-action-yesno) (tramp-yn-prompt-regexp tramp-action-yn) 
(tramp-terminal-prompt-regexp tramp-action-terminal) 
(tramp-process-alive-regexp tramp-action-process-alive)) 60)
  tramp-maybe-open-connection(["scp" nil "http" 
"__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"])
  tramp-send-command(["scp" nil "http" 
"__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"]
 "cd ~; pwd")
  
tramp-handle-expand-file-name("/http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"
 "/")
  apply(tramp-handle-expand-file-name 
("/http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"
 "/"))
  tramp-sh-file-name-handler(expand-file-name 
"/http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"
 "/")
  apply(tramp-sh-file-name-handler expand-file-name 
("/http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"
 "/"))
  tramp-file-name-handler(expand-file-name 
"/http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"
 "/")
  
file-exists-p("http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub")
  emms-remove-if-not(file-exists-p 
("http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.sub"
 
"http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.srt"
 
"http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.gb.srt"
 
"http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.big5.srt"
 
"http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.eng.srt"
 
"http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.chs.srt"
 
"http:__mjesec.ffzg.hr_~dpavlin_stallman2006_free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.cht.srt"))
  (let* ((track ...) (name ...) (ext ...) (choices ...) (subtitle ...)) (unless 
(string= subtitle "") (setq emms-player-mplayer-parameters ...)))
  emms-player-mplayer-subtitle-checker()
  emms-player-mplayer-start((*track* (type . url) (name . 
"http://mjesec.ffzg.hr/~dpavlin/stallman2006/free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.ogg";)
 (metadata)))
  emms-player-start((*track* (type . url) (name . 
"http://mjesec.ffzg.hr/~dpavlin/stallman2006/free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.ogg";)
 (metadata)))
  emms-start()
  emms-playlist-mode-play-current-track()
  emms-playlist-mode-play-smart()
  call-interactively(emms-playlist-mode-play-smart)

--
Non puo' esservi vera conoscenza laddove non si puo' applicare nessuna
delle scienze matematiche.
                -- Leonardo da Vinci
_______________________________________________
Emms-help mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emms-help

Reply via email to