]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify previous change.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 14 Jan 2010 13:14:24 +0000 (14:14 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 14 Jan 2010 13:14:24 +0000 (14:14 +0100)
lisp/ChangeLog
lisp/progmodes/ada-xref.el

index 80b33e56a57335ad870449e6063c173905a72022..833a25c39a8b452a99cb09c3c4141ce5a5cd262b 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-14  Juanma Barranquero  <lekktu@gmail.com>
+
+       * progmodes/ada-xref.el (ada-default-prj-properties):
+       Simplify previous change.
+
 2010-01-14  Stephen Leake  <stephen_leake@member.fsf.org>
 
        * progmodes/ada-xref.el (ada-default-prj-properties):
index f3fd076c655819499c081799528575acffd1d759..bf836b20eee57f95016818179d9978bccd2b8006 100644 (file)
@@ -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 (let ((path (getenv "ADA_PROJECT_PATH"))) (if path path ""))
+     'ada_project_path (or (getenv "ADA_PROJECT_PATH") "")
      'ada_project_path_sep  ada-prj-ada-project-path-sep
      'bind_opt        ada-prj-default-bind-opt
      'build_dir       default-directory