changeset 108829:67d507f84cdc

progmodes/ada-xref.el (ada-prj-ada-project-path-sep): Set from `path-separator'.
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 30 May 2010 04:51:53 +0200
parents 87dad1e1c860
children 0d7ed8742a5f
files lisp/ChangeLog lisp/progmodes/ada-xref.el
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat May 29 19:50:47 2010 -0400
+++ b/lisp/ChangeLog	Sun May 30 04:51:53 2010 +0200
@@ -1,3 +1,8 @@
+2010-05-30  Juanma Barranquero  <lekktu@gmail.com>
+
+	* progmodes/ada-xref.el (ada-prj-ada-project-path-sep): Set from
+	`path-separator', but maintain compatibility with Emacs 20.2.
+
 2010-05-29  Chong Yidong  <cyd@stupidchicken.com>
 
 	* server.el (server-process-filter): Receive parent-id argument
--- a/lisp/progmodes/ada-xref.el	Sat May 29 19:50:47 2010 -0400
+++ b/lisp/progmodes/ada-xref.el	Sun May 30 04:51:53 2010 +0200
@@ -108,10 +108,9 @@
   :type 'string :group 'ada)
 
 (defcustom ada-prj-ada-project-path-sep
-  (if (or (equal system-type 'windows-nt)
-	  (equal system-type 'ms-dos))
-      ";"
-    ":")
+  (cond ((boundp 'path-separator) path-separator) ; 20.3+
+	((memq system-type '(windows-nt ms-dos)) ";")
+	(t ":"))
   "Default separator for ada_project_path project variable."
   :type 'string :group 'ada)