automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 6/7] elisp: simplify suffix rules using emacs '-L' option


From: Stefano Lattarini
Subject: [PATCH 6/7] elisp: simplify suffix rules using emacs '-L' option
Date: Sat, 14 Jul 2012 23:52:00 +0200

* lib/am/lisp.am (.el.elc): Use '-L dir' instead of calling '--eval' to
explicitly append to the 'load-path' variable.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/lisp.am |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/am/lisp.am b/lib/am/lisp.am
index 7326cb5..59c9fa9 100644
--- a/lib/am/lisp.am
+++ b/lib/am/lisp.am
@@ -32,8 +32,7 @@ endif %?INSTALL%
 ## we override that, too.
        if test "$(EMACS)" != "no"; then \
          $(EMACS) -q --batch \
-           --eval "(setq load-path (cons \"$(srcdir)\" load-path))" \
-           --eval "(setq load-path (cons \"$(builddir)\" load-path))" \
+           -L '$(builddir)' -L '$(srcdir)' \
            --eval "(defun byte-compile-dest-file (f) \"address@hidden")" \
            --eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"; \
        else :; fi
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]