1 |
Author: ulm |
2 |
Date: 2009-12-30 10:12:44 +0000 (Wed, 30 Dec 2009) |
3 |
New Revision: 1493 |
4 |
|
5 |
Modified: |
6 |
gentoo-syntax/ChangeLog |
7 |
gentoo-syntax/gentoo-syntax.el |
8 |
Log: |
9 |
Use relative name in ebuild-run-command, to make it work on remote systems. |
10 |
|
11 |
Modified: gentoo-syntax/ChangeLog |
12 |
=================================================================== |
13 |
--- gentoo-syntax/ChangeLog 2009-12-30 10:10:19 UTC (rev 1492) |
14 |
+++ gentoo-syntax/ChangeLog 2009-12-30 10:12:44 UTC (rev 1493) |
15 |
@@ -1,3 +1,8 @@ |
16 |
+2009-12-30 Ulrich Mueller <ulm@g.o> |
17 |
+ |
18 |
+ * gentoo-syntax.el (ebuild-run-command): Use file-relative-name, |
19 |
+ to make it work for ebuild files on remote systems. |
20 |
+ |
21 |
2009-12-27 Christian Faulhammer <fauli@g.o> |
22 |
|
23 |
* ebuild-mode-keywords.el (ebuild-mode-keywords-python): |
24 |
|
25 |
Modified: gentoo-syntax/gentoo-syntax.el |
26 |
=================================================================== |
27 |
--- gentoo-syntax/gentoo-syntax.el 2009-12-30 10:10:19 UTC (rev 1492) |
28 |
+++ gentoo-syntax/gentoo-syntax.el 2009-12-30 10:12:44 UTC (rev 1493) |
29 |
@@ -261,13 +261,12 @@ |
30 |
nil t))) |
31 |
(or (member command ebuild-commands-list) |
32 |
(error "Ebuild command \"%s\" not known" command)) |
33 |
- (let ((process-environment |
34 |
- (cons "NOCOLOR=true" process-environment)) |
35 |
- ;;(compilation-mode-hook |
36 |
- ;; (lambda () (setq truncate-lines t))) |
37 |
+ (let ((file (file-relative-name buffer-file-name)) |
38 |
+ (process-environment (cons "NOCOLOR=true" process-environment)) |
39 |
+ ;;(compilation-mode-hook (lambda () (setq truncate-lines t))) |
40 |
(compilation-buffer-name-function |
41 |
(list 'lambda '(mode) (concat "*ebuild " command "*")))) |
42 |
- (compile (format "ebuild %s %s" buffer-file-name command)))) |
43 |
+ (compile (format "ebuild %s %s" file command)))) |
44 |
|
45 |
|
46 |
;;; Modify package keywords. |