1
;;; ess-debug.el --- debugging start up for ESS
3
;; Copyright (C) 1997--2001 A.J. Rossini
5
;; Author: A.J. Rossini <rossini@biostat.washington.edu>
6
;; Maintainer: A.J. Rossini <rossini@u.washington.edu>
7
;; Created: November 1997
8
;; Modified: $Date: 2001/01/08 00:42:23 $
9
;; Version: $Revision: 5.5 $
10
;; RCS: $Id: ess-debug.el,v 5.5 2001/01/08 00:42:23 rossini Exp $
12
;; Keywords: start up, configuration.
14
;; This file is part of ESS.
16
;; This file is free software; you can redistribute it and/or modify
17
;; it under the terms of the GNU General Public License as published by
18
;; the Free Software Foundation; either version 2, or (at your option)
21
;; This file is distributed in the hope that it will be useful,
22
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
;; GNU General Public License for more details.
26
;; You should have received a copy of the GNU General Public License
27
;; along with GNU Emacs; see the file COPYING. If not, write to
28
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
32
;; Strictly for debugging and development. usage is:
33
;; xemacs -no-site-file -no-init-file -load ess-debug.el -f S4
39
;;; For Tony's environment
41
;(require 'x-symbol-hooks)
42
;(x-symbol-initialize)
45
(defun ess-add-path (path &rest options)
46
"Add PATH to `load-path' if it exists under `default-load-path'
47
directories and it does not exist in `load-path'.
49
You can use following PATH styles:
50
load-path relative: \"PATH/\"
51
(it is searched from `default-load-path')
52
home directory relative: \"~/PATH/\" \"~USER/PATH/\"
53
absolute path: \"/HOO/BAR/BAZ/\"
55
You can specify following OPTIONS:
56
'all-paths search from `load-path'
57
instead of `default-load-path'
58
'append add PATH to the last of `load-path'.
60
For ESS, ONLY use load-path, since Emacs doesn't have
63
(let ((rest load-path)
67
(setq p (expand-file-name path (car rest)))
68
(if (file-directory-p p)
70
(setq rest (cdr rest))))
71
(not (member p load-path)))
73
(if (memq 'append options)
74
(append load-path (list p))
75
(cons p load-path))))))
77
(setq-default debug-on-error t)
78
(ess-add-path "~rossini/sandbox/Src/Emacs/ESS/ess/lisp")
81
; Local variables section
83
;;; This file is automatically placed in Outline minor mode.
84
;;; The file is structured as follows:
87
;;; Subsections: ;;;*;;;
88
;;; Components: defuns, defvars, defconsts
89
;;; Random code beginning with a ;;;;* comment
92
;;; mode: outline-minor
93
;;; outline-regexp: "\^L\\|\\`;\\|;;\\*\\|;;;\\*\\|(def[cvu]\\|(setq\\|;;;;\\*"
96
;;; ess-debug.el ends here