3
3
;; Copyright (C) 1997--2001 A.J. Rossini
4
4
;; Copyright (C) 2001--2006 A.J. Rossini, Rich M. Heiberger, Martin
5
;; Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
5
;; Maechler, Kurt Hornik, Rodney Sparapani, and Stephen Eglen.
7
;; Original Author: A.J. Rossini <rossini@biostat.washington.edu>
7
;; Author: A.J. Rossini <rossini@biostat.washington.edu>
8
8
;; Created: November 1997
9
;; Maintainers: ESS-core <ESS-core@r-project.org>
9
;; Maintainer: ESS-core <ESS-core@r-project.org>
11
;; Keywords: start up, configuration.
11
;; Keywords: languages, tools
13
13
;; This file is part of ESS.
42
42
directories and it does not exist in `load-path'.
44
44
You can use following PATH styles:
45
load-path relative: \"PATH/\"
46
(it is searched from `default-load-path')
47
home directory relative: \"~/PATH/\" \"~USER/PATH/\"
48
absolute path: \"/HOO/BAR/BAZ/\"
45
load-path relative: \"PATH/\"
46
(it is searched from `default-load-path')
47
home directory relative: \"~/PATH/\" \"~USER/PATH/\"
48
absolute path: \"/HOO/BAR/BAZ/\"
50
50
You can specify following OPTIONS:
51
'all-paths search from `load-path'
52
instead of `default-load-path'
53
'append add PATH to the last of `load-path'.
51
'all-paths search from `load-path'
52
instead of `default-load-path'
53
'append add PATH to the last of `load-path'.
55
55
For ESS, ONLY use load-path, since Emacs doesn't have
56
56
default-load-path."
58
58
(let ((rest load-path)
60
60
(if (and (catch 'tag
62
(setq p (expand-file-name path (car rest)))
63
(if (file-directory-p p)
65
(setq rest (cdr rest))))
66
(not (member p load-path)))
68
(if (memq 'append options)
69
(append load-path (list p))
70
(cons p load-path))))))
62
(setq p (expand-file-name path (car rest)))
63
(if (file-directory-p p)
65
(setq rest (cdr rest))))
66
(not (member p load-path)))
68
(if (memq 'append options)
69
(append load-path (list p))
70
(cons p load-path))))))
72
72
(setq-default debug-on-error t)
73
73
(ess-add-path "~rossini/Repos/repos-svn/ess/lisp")