[mew-dist 25719] mew-convert-to-home-dirがまずい

KOIE Hidetaka ( 鯉江英隆 ) hide at example.com
2004年 12月 9日 (木) 11:19:51 JST


yでメイルを保存するときに
保存先を /koie at example.com:xxx/yyy/zzz.doc のようにリモートを指定したあと、
次のメイルをyで保存するときのデフォルトが ~/xxx/yyy/zzz.doc に
なってしまうので不便だったのですが、
どうもローカルとリモートとでホームディレクトリのパスが同じだと
mew-convert-to-home-dir()が誤動作するようです。

手元の環境ではこのようになります。

  mew-home => ~/
  (expand-file-name mew-home) => "/home/koie/"
  
  (expand-file-name "/koie at example.com:public_html/index.html")
  => "/sshx:koie at example.com:/export/home/koie/public_html/index.html"
  
  (mew-convert-to-home-dir
   "/sshx:koie at example.com:/export/home/koie/public_html/index.html")
  => "~/public_html/index.html"


file-file()をおいかけてみたら
mew-convert-to-home-dir()の代りに
abbreviate-file-name()が使えそうな感じですが、どうでしょうか。

--
鯉江英隆 <hide at example.com>



Mew-dist メーリングリストの案内