emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 5ef546a 071/187: Have test file add its own directory to l


From: Michael Albinus
Subject: [elpa] master 5ef546a 071/187: Have test file add its own directory to load path
Date: Wed, 30 Dec 2015 11:49:46 +0000

branch: master
commit 5ef546ac61b7fb3a219175492e69b9f15852e6f5
Author: Ryan C. Thompson <address@hidden>
Commit: Ryan C. Thompson <address@hidden>

    Have test file add its own directory to load path
    
    This makes it so that one can do "emacs -batch -l async-test.el ..."
    without having to also add "-l async.el -l async-file.el" at the
    command line.
---
 async-test.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/async-test.el b/async-test.el
index 2e235f1..03db68e 100644
--- a/async-test.el
+++ b/async-test.el
@@ -29,6 +29,7 @@
 
 ;;; Code:
 
+(add-to-list 'load-path (file-name-directory (or load-file-name 
(buffer-file-name))))
 (require 'async)
 (require 'async-file)
 



reply via email to

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