diff options
author | Stephen Leake <stephen_leake@member.fsf.org> | 2010-01-14 14:12:05 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2010-01-14 14:12:05 +0100 |
commit | 95005d39eb75a280c36a0f91eb11fc005fd5cf6a (patch) | |
tree | ecf96d0cc67a5b42e6fb4eb39131e1c07d645ba8 | |
parent | 80e18d20ec6a73b417c9ec4d18e433d1cff5a95f (diff) | |
download | emacs-95005d39eb75a280c36a0f91eb11fc005fd5cf6a.tar.gz |
Default ada_project_path to $ADA_PROJECT_PATH.
-rw-r--r-- | lisp/ChangeLog | 7 | ||||
-rw-r--r-- | lisp/progmodes/ada-xref.el | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a5d84bee787..80b33e56a57 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,4 +1,9 @@ -2010-01-14 Stephen Leake <stephen_leake@member.fsf.org>2 +2010-01-14 Stephen Leake <stephen_leake@member.fsf.org> + + * progmodes/ada-xref.el (ada-default-prj-properties): + Default ada_project_path to $ADA_PROJECT_PATH. + +2010-01-14 Stephen Leake <stephen_leake@member.fsf.org> * progmodes/ada-mode.el (ada-create-keymap): Override `narrow-to-defun' with `ada-narrow-to-defun'. diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index dd54736ef0b..f3fd076c655 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el @@ -755,7 +755,7 @@ is non-nil, prompt the user to select one. If none are found, return (let ((file (buffer-file-name nil))) (list ;; variable name alphabetical order - 'ada_project_path "" + 'ada_project_path (let ((path (getenv "ADA_PROJECT_PATH"))) (if path path "")) 'ada_project_path_sep ada-prj-ada-project-path-sep 'bind_opt ada-prj-default-bind-opt 'build_dir default-directory |