]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-art.el (gnus-article-browse-html-parts): Convert link file names for Cygwin.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 30 Nov 2011 01:07:46 +0000 (01:07 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 30 Nov 2011 01:07:46 +0000 (01:07 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 6f1b6a3a42a90e4d347aa29e8df54220f8c281e3..590277e89cd58fd30cb97957ddbd3c45c197fc25 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-30  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (gnus-article-browse-html-parts): Convert link file names
+       for Cygwin.
+
 2011-11-24  Glenn Morris  <rgm@gnu.org>
 
        * starttls.el: Fix case of "GnuTLS".
index 0abc802f5581a382cce2c79f6a2df1c4c38f1827..e3eb3a049428af545c16bee902a9ec373e82a226 100644 (file)
@@ -2879,6 +2879,13 @@ message header will be added to the bodies of the \"text/html\" parts."
                                (with-current-buffer gnus-article-buffer
                                  gnus-article-mime-handles)
                                cid-dir))
+                    (when (eq system-type 'cygwin)
+                      (setq cid-file (substring
+                                      (with-output-to-string
+                                        (call-process "cygpath" nil
+                                                      standard-output
+                                                      nil "-m" cid-file))
+                                      0 -1)))
                     (replace-match (concat "file://" cid-file)
                                    nil nil nil 1))))
               (unless content (setq content (buffer-string))))