diff options
author | Katsumi Yamaoka <yamaoka@jpl.org> | 2011-11-30 01:07:46 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2011-11-30 01:07:46 +0000 |
commit | df103ffb3d10eef57921c9d70c6e3eac35759b73 (patch) | |
tree | 5c03bf55b33e891557f7d69ee5abf046f22d413d | |
parent | a1beca856defa17f648164fceb511cfb4bb71e63 (diff) | |
download | emacs-df103ffb3d10eef57921c9d70c6e3eac35759b73.tar.gz |
gnus-art.el (gnus-article-browse-html-parts): Convert link file names for Cygwin.
-rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/gnus/gnus-art.el | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6f1b6a3a42a..590277e89cd 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -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". diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 0abc802f558..e3eb3a04942 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el @@ -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)))) |