Changeset 18431

Show
Ignore:
Timestamp:
08/29/08 17:07:49 (4 months ago)
Author:
holidays-l
Message:

lang/elisp/set-perl5lib: CygPerlに対応してみました。WinPerlで動かなくなってる気がするので誰かなんとかして。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/elisp/set-perl5lib/set-perl5lib.el

    r8026 r18431  
    4747  "Set path into PERL5LIB if its file path includes 'lib' directory" 
    4848  (interactive) 
    49   (let* ((path-list (cdr (split-string buffer-file-name "/"))) 
     49  (let* ((path-list (cdr (split-string 
     50                          (if (string-match "^.:" buffer-file-name) 
     51                              (concat (cygwin-mount-get-cygdrive-prefix) 
     52                                      (mapconcat 'identity (split-string buffer-file-name ":") "")) 
     53                            (buffer-file-name) 
     54                            ) 
     55                          "/"))) 
    5056         (lib-path (perllib-check-path path-list "")) 
    5157         (current-perl5lib (getenv "PERL5LIB")))