<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,22 +3,11 @@
 ;;
 (eval-when-compile (require 'cl))
   
-(defun rbdbgr-directory ()
-  &quot;The directory of this file, or nil.&quot;
-  (let ((file-name (or load-file-name
-		       (symbol-file 'rbdbgr-directory))))
-    (if file-name
-	(file-name-directory file-name)
-      nil)))
-
-(setq load-path (cons nil 
-		      (cons (format &quot;%s..&quot; (rbdbgr-directory))
-				    (cons (rbdbgr-directory) load-path))))
-(require 'dbgr-track)
-(require 'rbdbgr-regexp)
-(require 'dbgr-core)
-(require 'dbgr-scriptbuf)
-(setq load-path (cdddr load-path))
+(require 'load-relative)
+(provide 'rbdbgr-core)
+(load-relative 
+ '(&quot;../dbgr-track&quot; &quot;../dbgr-core&quot; &quot;../dbgr-scriptbuf&quot;) 
+ 'rbdbgr-track-mode)
 
 ;; FIXME: I think the following could be generalized and moved to 
 ;; dbgr-... probably via a macro.
@@ -262,13 +251,6 @@ breakpoints, etc.).&quot;
   (interactive)
   (customize-group 'rbdbgr))
 
-
-;; -------------------------------------------------------------------
-;; The end.
-;;
-
-(provide 'rbdbgr-core)
-
 ;;; Local variables:
 ;;; eval:(put 'rbdbgr-debug-enter 'lisp-indent-hook 1)
 ;;; End:</diff>
      <filename>ruby/rbdbgr-core.el</filename>
    </modified>
    <modified>
      <diff>@@ -5,20 +5,9 @@
 ;;
 (eval-when-compile (require 'cl))
 
-(defun rbdbgr-directory ()
-  &quot;The directory of this file, or nil.&quot;
-  (let ((file-name (or load-file-name
-                       (symbol-file 'rbdbgr-core))))
-    (if file-name
-        (file-name-directory file-name)
-      nil)))
-
-(setq load-path (cons nil 
-		      (cons (format &quot;%s..&quot; (rbdbgr-directory))
-				    (cons (rbdbgr-directory) load-path))))
-(load &quot;dbgr-regexp&quot;) ; for make-dbgr-loc-pat
-(setq load-path (cdddr load-path))
-
+(require 'load-relative)
+(provide 'rbdbgr-regexp)
+(load-relative &quot;../dbgr-regexp&quot; 'rbdbgr-regexp)
 
 (defvar rbdbgr-pat-hash (make-hash-table :test 'equal)
   &quot;Hash key is the what kind of pattern we want to match: traceback, prompt, etc. 
@@ -52,8 +41,6 @@ The values of a hash entry is a dbgr-dbgr-loc-pat struct&quot;)
        :line-group 2))
 
 
-(provide 'rbdbgr-regexp)
-
 ;;; Local variables:
 ;;; eval:(put 'rbdbgr-debug-enter 'lisp-indent-hook 1)
 ;;; End:</diff>
      <filename>ruby/rbdbgr-regexp.el</filename>
    </modified>
    <modified>
      <diff>@@ -3,21 +3,9 @@
 
 (eval-when-compile (require 'cl))
 
-(defun rbdbgr-directory ()
-  &quot;The directory of this file, or nil.&quot;
-  (let ((file-name (or load-file-name
-                       (symbol-file 'rbdbgr-track-mode))))
-    (if file-name
-        (file-name-directory file-name)
-      nil)))
-
-(setq load-path (cons nil 
-		      (cons (format &quot;%s..&quot; (rbdbgr-directory))
-				    (cons (rbdbgr-directory) load-path))))
-(require 'dbgr-track-mode)
-(require 'rbdbgr-core)
-(setq load-path (cdddr load-path))
-
+(require 'load-relative)
+(provide 'rbdbgr-track-mode)
+(load-relative '(&quot;../dbgr-track-mode&quot; &quot;rbdbgr-core&quot;) 'rbdbgr-track-mode)
 
 (defun rbdbgr-track-mode-body()
   &quot;Called when entering or leaving rbdbgr-track-mode&quot;
@@ -57,12 +45,6 @@ Use the command `rbdbgr-track-mode' to toggle or set this variable.&quot;)
   (rbdbgr-track-mode-body)
 )
 
-;; -------------------------------------------------------------------
-;; The end.
-;;
-
-(provide 'rbdbgr-track-mode)
-
 ;;; Local variables:
 ;;; eval:(put 'rbdbg-debug-enter 'lisp-indent-hook 1)
 ;;; End:</diff>
      <filename>ruby/rbdbgr-track-mode.el</filename>
    </modified>
    <modified>
      <diff>@@ -4,21 +4,9 @@
      &quot;You need at least Emacs 22 or greater to run this - you have version %d&quot;
      emacs-major-version))
 
-(defun rbdbgr-directory ()
-  &quot;The directory of this file, or nil.&quot;
-  (let ((file-name (or load-file-name
-                       (symbol-file 'rbdbgr))))
-    (if file-name
-        (file-name-directory file-name)
-      nil)))
-
-(setq load-path (cons nil 
-		      (cons (format &quot;%s..&quot; (rbdbgr-directory))
-				    (cons (rbdbgr-directory) load-path))))
-
-(load &quot;rbdbgr-core&quot;)
-(load &quot;rbdbgr-track-mode&quot;)
-(setq load-path (cdddr load-path))
+(require 'load-relative)
+(provide 'rbdbgr)
+(load-relative '(&quot;rbdbgr-core&quot; &quot;rbdbgr-track-mode&quot;) 'rbdbgr)
 
 ;; This is needed, or at least the docstring part of it is needed to
 ;; get the customization menu to work in Emacs 23.</diff>
      <filename>ruby/rbdbgr.el</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e31465421704fb9879c5a2fc538c3ed74efe0eae</id>
    </parent>
  </parents>
  <author>
    <name>rocky</name>
    <email>rockyb@rubyforge.org</email>
  </author>
  <url>http://github.com/rocky/emacs-dbgr/commit/97bd5c1d6943b5849a47542755972b921784323a</url>
  <id>97bd5c1d6943b5849a47542755972b921784323a</id>
  <committed-date>2009-11-09T02:06:48-08:00</committed-date>
  <authored-date>2009-11-09T02:06:48-08:00</authored-date>
  <message>Use require-relative now.</message>
  <tree>27f9372dac16c11e5e62a5621c2e00c5fcd11409</tree>
  <committer>
    <name>rocky</name>
    <email>rockyb@rubyforge.org</email>
  </committer>
</commit>
