Created
January 28, 2011 11:57
-
-
Save miyamuko/800161 to your computer and use it in GitHub Desktop.
cygwin-mount/mount-point.l の cygwin 1.7 対応 #xyzzy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; 超暫定対処版。 | |
| ;; cygwin 1.7 からマウント情報をレジストリじゃなくて /etc/fstab および /etc/fstab.d/$USER に | |
| ;; 記録するようになったので cygwin-mount は動かなくなっています。 | |
| ;; とりあえず以下のモンキーパッチで最低限の動作はすると思います。 | |
| ;; ただ、独自のマウントポイントを定義している場合などには対応していません。 | |
| (require "cygwin-mount") | |
| (defun cygmount-point-info (&key type path) | |
| (list | |
| (make-mount-point | |
| :cygpath "/" | |
| :winpath (map-slash-to-backslash | |
| (or (read-registry "SOFTWARE\\Cygwin\\setup" "rootdir" :local-machine) | |
| (read-registry "SOFTWARE\\Wow6432Node\\Cygwin\\setup" "rootdir" :local-machine))) | |
| :flags nil | |
| :type :system))) | |
| (defun cygdrive-prefix () | |
| "/cygdrive") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment