NTEmacsã§w32-symlinksã使ããããã«ãã
åãããã«æ©ãã§ãã¦ã¨ããããç¡çãã解決ããã®ã§è¼ãã¦ããã
; windows ã·ã§ã¼ãã«ãããæå¹ã«ãã
; http://www.emacswiki.org/emacs/w32-symlinks.el
; ntemacs ã ã¨ä½¿ããªãã½ã
;(setq w32-symlinks-handle-shortcuts t)
;(require 'w32-symlinks)
ã·ã§ã¼ãã«ãããã©ãããå¤æããããã«ãã·ã§ã¼ãã«ãããã¡ã¤ã«å
ã®
ãL^@^@^@^A^T^B^@^@^@^@^@\300^@^@^@^@^@^@Fãã¨
ã"L\0\0\0\ \x01\x14\x02\0\0\0\0\0\xC0\0\0\0\0\0\0\x46"ãã
string=ãã¦ããã ãã©ããä½æ
ã\300ã®é¨åã\xC0ããããããªãã®ãåå ã
ãã ã(string= (buffer-substring 13 14) "\xC0")ã¯nilãªã®ã«ã
scratchãããã¡ã§(string= "\300" "\xC0)ã¨ããã¨tã«ãªããC-q 3 0 0 RETãÀã«ãªãã®ãæªãããã ãã©ã
å¤å8ãããç®ãç«ã£ã¦ãããstring=ã失æãããã ã¨æããã ãã©ãè¯ãåãããã®ã§ããã ãé£ã°ãã¦æ¯è¼ããããã«ãããåããã
Index: w32-symlinks.el =================================================================== --- w32-symlinks.el (ãªãã¸ã§ã³ 1097) +++ w32-symlinks.el (ä½æ¥ã³ãã¼) @@ -271,8 +271,8 @@ ;; Parse the File Header Table. ;; Check for Shell Link identifier (4 bytes) ;; followed by Shell Link GUID (16 bytes): - (string= (buffer-substring 1 21) ; otherwise not a shortcut file - "L\0\0\0\ \x01\x14\x02\0\0\0\0\0\xC0\0\0\0\0\0\0\x46") + (string= (store-substring (buffer-substring 1 21) 12 "_") ; otherwise not a shortcut file + "L\0\0\0\ \x01\x14\x02\0\0\0\0\0_\0\0\0\0\0\0\x46") ;; Get the main flags dword at offset 14h. (let ((flags (w32-symlinks-buffer-substring-as-int (+ (point) ?\x14) 4)) target)ï¼æ³¨æï¼requireããåã«w32-symlinks-handle-shortcutsãtã«ããªãã¨ãããªãã
(setq w32-symlinks-handle-shortcuts t) (require 'w32-symlinks)ããã¯ã·ã³ããªãã¯ãªã³ã¯ã®å®è£ ãã·ã§ã¼ãã«ããã«ãã¦ããå ´åã®è©±ã§ãã å ·ä½çã«ã¯CYGWIN=winsymlinks ln -sã§çæããã·ã³ããªãã¯ãªã³ã¯ããWindowså´ã§çæããã·ã§ã¼ãã«ããã«å¯¾å¿ãããã®ã§ãã