aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorJuanma Barranquero2008-07-30 09:42:46 +0000
committerJuanma Barranquero2008-07-30 09:42:46 +0000
commitff6d2a9e33dd163c6fe9dec2fe8813ab4d689d7e (patch)
tree92fb27f1f21236180a1308b041d87d5bc8c1f290 /lisp/progmodes
parent3f6b73eff6ebfafeab50df3bf9644ad8a4444403 (diff)
downloademacs-ff6d2a9e33dd163c6fe9dec2fe8813ab4d689d7e.tar.gz
emacs-ff6d2a9e33dd163c6fe9dec2fe8813ab4d689d7e.zip
* lisp/ada-prj.el (ada-prj-initialize-values): Fix use of deleted
ada-xref-set-default-prj-values. (ada-prj-display-page): Ditto. * list/ada-xref.el (ada-gnatstub-opts): Fix doc string. (ada-make-filename-from-adaname): Fix free variable.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/ada-prj.el5
-rw-r--r--lisp/progmodes/ada-xref.el4
2 files changed, 4 insertions, 5 deletions
diff --git a/lisp/progmodes/ada-prj.el b/lisp/progmodes/ada-prj.el
index 9f1aa36cee3..f70906bae0d 100644
--- a/lisp/progmodes/ada-prj.el
+++ b/lisp/progmodes/ada-prj.el
@@ -104,7 +104,7 @@ If no project file is found, return the default values."
104 104
105 ;; Set default values (except for the file name if this was given 105 ;; Set default values (except for the file name if this was given
106 ;; in the buffer 106 ;; in the buffer
107 (ada-xref-set-default-prj-values symbol ada-buffer) 107 (set symbol (ada-default-prj-properties))
108 (if (and filename (not (string= filename ""))) 108 (if (and filename (not (string= filename "")))
109 (set symbol (plist-put (eval symbol) 'filename filename))) 109 (set symbol (plist-put (eval symbol) 'filename filename)))
110 )) 110 ))
@@ -463,8 +463,7 @@ connect to the target when working with cross-environments" t)
463 (widget-insert "______________________________________________________________________\n\n ") 463 (widget-insert "______________________________________________________________________\n\n ")
464 (widget-create 'push-button 464 (widget-create 'push-button
465 :notify (lambda (&rest ignore) 465 :notify (lambda (&rest ignore)
466 (ada-xref-set-default-prj-values 466 (setq ada-prj-current-values (ada-default-prj-properties))
467 'ada-prj-current-values ada-prj-ada-buffer)
468 (ada-prj-display-page 1)) 467 (ada-prj-display-page 1))
469 "Reset to Default Values") 468 "Reset to Default Values")
470 (widget-insert " ") 469 (widget-insert " ")
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el
index 7470f8ca6b4..d38795658cd 100644
--- a/lisp/progmodes/ada-xref.el
+++ b/lisp/progmodes/ada-xref.el
@@ -157,7 +157,7 @@ this string is not empty. It is set whenever a project file is found."
157 :type '(file :must-match t) :group 'ada) 157 :type '(file :must-match t) :group 'ada)
158 158
159(defcustom ada-gnatstub-opts "-q -I${src_dir}" 159(defcustom ada-gnatstub-opts "-q -I${src_dir}"
160 "*List of the options to pass to `gnatsub' to generate the body of a package. 160 "*Options to pass to `gnatsub' to generate the body of a package.
161This has the same syntax as in the project file (with variable substitution)." 161This has the same syntax as in the project file (with variable substitution)."
162 :type 'string :group 'ada) 162 :type 'string :group 'ada)
163 163
@@ -2276,7 +2276,7 @@ Return the position of the declaration in the buffer, or nil if not found."
2276 "Determine the filename in which ADANAME is found. 2276 "Determine the filename in which ADANAME is found.
2277This is a GNAT specific function that uses gnatkrunch." 2277This is a GNAT specific function that uses gnatkrunch."
2278 (let ((krunch-buf (generate-new-buffer "*gkrunch*")) 2278 (let ((krunch-buf (generate-new-buffer "*gkrunch*"))
2279 (cross-prefix (plist-get plist 'cross_prefix))) 2279 (cross-prefix (plist-get (cdr (ada-xref-current-project)) 'cross_prefix)))
2280 (save-excursion 2280 (save-excursion
2281 (set-buffer krunch-buf) 2281 (set-buffer krunch-buf)
2282 ;; send adaname to external process `gnatkr'. 2282 ;; send adaname to external process `gnatkr'.