Changeset 7047 for lang/elisp
- Timestamp:
- 02/22/08 23:15:29 (9 months ago)
- Files:
-
- 1 modified
-
lang/elisp/set-perl5lib/set-perl5lib.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/set-perl5lib/set-perl5lib.el
r4903 r7047 24 24 ;;; * set-perl5lib について 25 25 26 ;;; ファイルのパスに" dir"というディレクトリが含まれていたら、26 ;;; ファイルのパスに"lib"というディレクトリが含まれていたら、 27 27 ;;; そこまでのパスをPERL5LIBに登録します。 28 28 ;;; … … 31 31 ;;; のあとで、Flymakeのflymake-perl-load関数をオーバーライドして 32 32 ;;; (set-perl5lib) 33 ;;; を関数内に追加すれば、 34 ;;; 自動的にパスを登録できます。 33 ;;; を関数内に追加すれば、自動的にパスを登録できます。 35 34 ;;; 36 35 ;;; SeeAlso: http://d.hatena.ne.jp/sun-basix/20080117/1200528765 … … 38 37 (defun perllib-check-path (lst lib-path) 39 38 (let ((dir (car lst)) (lst (cdr lst))) 40 (setf lib-path (concat lib-path "/" dir)) 41 (if lst 42 (if (string= dir "lib") 43 lib-path 44 (perllib-check-path lst lib-path))))) 39 (let ((set-lib-path (concat lib-path "/lib"))) 40 (if lst 41 (if (string= dir "lib") 42 set-lib-path 43 (if (and (string= dir "t") 44 (file-readable-p set-lib-path)) 45 set-lib-path 46 (perllib-check-path lst (concat lib-path "/" dir)))))))) 45 47 46 48 (defun set-perl5lib ()
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)