[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 240/255: robust loading w/o load-path customization
From: |
Eric Schulte |
Subject: |
[elpa] 240/255: robust loading w/o load-path customization |
Date: |
Sun, 16 Mar 2014 01:02:56 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit aec8c1ea18398fa8c03a479f2c4050b61fd11e18
Author: Eric Schulte <address@hidden>
Date: Fri Aug 9 15:41:36 2013 -0600
robust loading w/o load-path customization
---
go.el | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/go.el b/go.el
index 1058a7b..4862ea0 100644
--- a/go.el
+++ b/go.el
@@ -36,15 +36,19 @@
;; - TODO: the IGS protocol
;;; Code:
-(require 'go-util "go-util.el")
-(require 'go-api "go-api.el")
-(require 'go-board "go-board.el")
-(require 'go-board-faces "go-board-faces.el")
-(require 'gtp "back-ends/gtp.el")
-(require 'gnugo "back-ends/gnugo.el")
-(require 'sgf "back-ends/sgf.el")
-(require 'sgf2el "back-ends/sgf2el.el")
-(require 'igs "back-ends/igs.el")
+(let ((load-path
+ (cons (file-name-directory (or load-file-name (buffer-file-name)))
+ load-path)))
+ (require 'go-util "go-util.el")
+ (require 'go-api "go-api.el")
+ (require 'go-board "go-board.el")
+ (require 'go-board-faces "go-board-faces.el")
+ (require 'gtp "back-ends/gtp.el")
+ (require 'gnugo "back-ends/gnugo.el")
+ (require 'sgf "back-ends/sgf.el")
+ (require 'sgf2el "back-ends/sgf2el.el")
+ (require 'igs "back-ends/igs.el")
+ (require 'gtp-pipe "back-ends/gtp-pipe.el"))
(defun go-instantiate (back-end)
(interactive)
- [elpa] 242/255: need assoc for aget, (continued)
- [elpa] 242/255: need assoc for aget, Eric Schulte, 2014/03/15
- [elpa] 228/255: refresh the game list buffer, Eric Schulte, 2014/03/15
- [elpa] 211/255: scale column width by buffer width, Eric Schulte, 2014/03/15
- [elpa] 233/255: igs handle adjourned and resigned games, Eric Schulte, 2014/03/15
- [elpa] 244/255: igs-pipe handles resignation and comments, Eric Schulte, 2014/03/15
- [elpa] 245/255: misc fixes, Eric Schulte, 2014/03/15
- [elpa] 169/255: igs: automatically collect a game listing, Eric Schulte, 2014/03/15
- [elpa] 248/255: try to fix gnugo Emacs crashes, Eric Schulte, 2014/03/15
- [elpa] 254/255: re-format README, Eric Schulte, 2014/03/15
- [elpa] 161/255: moving towards using images, Eric Schulte, 2014/03/15
- [elpa] 240/255: robust loading w/o load-path customization,
Eric Schulte <=
- [elpa] 253/255: renamed el-go README, Eric Schulte, 2014/03/15
- [elpa] 227/255: TODO retain comments, Eric Schulte, 2014/03/15
- [elpa] 231/255: refresh message, Eric Schulte, 2014/03/15
- [elpa] 239/255: backend for GTP through arbitrary process, Eric Schulte, 2014/03/15
- [elpa] 232/255: gtp-num-to-char is being called but is undefined, Eric Schulte, 2014/03/15
- [elpa] 234/255: don't truncate lines in go boards, Eric Schulte, 2014/03/15
- [elpa] 221/255: organize notes, Eric Schulte, 2014/03/15
- [elpa] 180/255: scattered changes from a while ago, Eric Schulte, 2014/03/15
- [elpa] 252/255: fix copyright headers, Eric Schulte, 2014/03/15
- [elpa] 251/255: Add 'packages/el-go/' from commit 'd127d39d34392eb54627fee0cfb85a35fc231fb2', Eric Schulte, 2014/03/15