mew 在w32下适配emacs的问题

 在emacs中使用mew接收mime的邮件,打开附件时,

mew-win32.el会指定打开程序默认程序fiber.exe

网上没有找到这个程序。

mew-win32.el

(defvar mew-w32-exec           "fiber.exe")

改为

(defvar mew-w32-exec           "explorer.exe")

 

然后把mew-mine.el:

函数mew-summary-execute-program

修改

(require 'dired) ;;增加引用文件
;;; external
(defun mew-summary-execute-program (program ct ctl cache begin end params fname options async)
  (if (not (mew-which-exec program))
      (message "%s does not exist" program)
    (let ((file (mew-make-temp-name fname))
   wcs)
      (save-excursion
 (set-buffer cache)
 ;; NEVER use call-process-region for privacy reasons
 (cond
  ((not (mew-ct-linebasep ct))
   (setq wcs mew-cs-binary))
  ((not (mew-ct-textp ct))
   (setq wcs mew-cs-text-for-write))
  (t
   (cond
    ((or (string= mew-ct-htm ct) (string= mew-ct-xml ct))
     (setq wcs (mew-text/html-detect-cs begin end))
     (unless (mew-coding-system-p wcs)
       (setq wcs (mew-charset-to-cs
    (mew-syntax-get-param ctl "charset")))))
    (t
     (setq wcs (mew-charset-to-cs
         (mew-syntax-get-param ctl "charset")))))
   (unless (mew-coding-system-p wcs)
     (setq wcs (if mew-decode-broken
     (mew-charset-to-cs
      (mew-charset-guess-region
       begin end))
   mew-cs-text-for-write)))))
 (mew-frwlet mew-cs-dummy wcs
   (write-region begin end file nil 'no-msg))
 (if async
     (mew-mime-start-process program options (dired-replace-in-string "/" "//" file) );yxf
   (mew-mime-call-process program options (dired-replace-in-string "/" "//" file) ))))));把路径中/改为"/",以便explorer识别。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值