unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: jidanni@jidanni.org
Cc: 6717@debbugs.gnu.org
Subject: bug#6717: tramp-dissect-file-name: Not a Tramp file name
Date: Sun, 25 Jul 2010 16:26:14 +0200	[thread overview]
Message-ID: <87iq43k589.fsf@gmx.de> (raw)
In-Reply-To: <871vas5u8i.fsf@jidanni.org> (jidanni@jidanni.org's message of "Sun, 25 Jul 2010 07:35:09 +0800")

Thanks for the backtrace. The problem is the following line:

  file-name-directory("/index.php?title=%E7%89%B9%E6%AE%8A:%E6%9C%80%E8%BF%91%E6%9B%B4%E6%94%B9&feed=rss")

It checks the local file name part of your URL. Unfortunately, due to
the leading "/" and the ":", it looks like a Tramp file name from
syntactical point of view, but it isn't.

I have committed the following patch towards the Emacs-23 branch (which
will be synchronized with the trunk next days):

--8<---------------cut here---------------start------------->8---
*** /usr/local/src/emacs-23/lisp/url/url-http.el.~99941~	2010-07-25 16:24:26.568050862 +0200
--- /usr/local/src/emacs-23/lisp/url/url-http.el	2010-07-25 13:33:32.008050291 +0200
***************
*** 435,441 ****
  	(delete-process url-http-process)))))
    (let ((buffer (current-buffer))
  	(class nil)
! 	(success nil))
      (setq class (/ url-http-response-status 100))
      (url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status)
      (url-http-handle-cookies)
--- 435,444 ----
  	(delete-process url-http-process)))))
    (let ((buffer (current-buffer))
  	(class nil)
! 	(success nil)
! 	;; The filename part of a URL could be in remote file syntax,
! 	;; see Bug#6717 for an example.  We disable Tramp, therefore.
! 	(tramp-mode nil))
      (setq class (/ url-http-response-status 100))
      (url-http-debug "Parsed HTTP headers: class=%d status=%d" class url-http-response-status)
      (url-http-handle-cookies)
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.





  reply	other threads:[~2010-07-25 14:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-24 14:54 bug#6717: tramp-dissect-file-name: Not a Tramp file name jidanni
2010-07-24 19:09 ` Michael Albinus
2010-07-24 23:35 ` jidanni
2010-07-25 14:26   ` Michael Albinus [this message]
2010-07-25 15:26     ` Andreas Schwab
2010-07-25 20:50       ` Michael Albinus
2010-07-25 22:10         ` Andreas Schwab
2010-07-26  4:08           ` Michael Albinus
2010-07-26  9:31             ` Andreas Schwab
2010-07-26  9:41               ` Michael Albinus
2010-07-26 10:05                 ` Andreas Schwab
2010-07-26 10:13                   ` Michael Albinus
2010-07-26 10:31                     ` Andreas Schwab
2010-07-26 14:02                       ` Michael Albinus
2010-07-24 23:47 ` jidanni
2010-07-24 23:56 ` jidanni
2010-07-25  0:59 ` jidanni
2010-07-25  1:39 ` jidanni

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87iq43k589.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=6717@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).