From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e9b98ba1b525c759 X-Google-Thread: 103b8b,e9b98ba1b525c759 X-Google-Attributes: gid103376,gid103b8b,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!c74g2000cwc.googlegroups.com!not-for-mail From: "=?iso-8859-1?B?Suly9G1l?=" Newsgroups: comp.lang.ada,gnu.emacs.help Subject: Re: Emacs 22 (CVS) and ada-find-**-references Date: 1 Jun 2006 01:38:28 -0700 Organization: http://groups.google.com Message-ID: <1149151108.766751.83930@c74g2000cwc.googlegroups.com> References: <1148999329.577971.65960@y43g2000cwc.googlegroups.com> NNTP-Posting-Host: 84.96.81.228 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1149151112 21456 127.0.0.1 (1 Jun 2006 08:38:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 1 Jun 2006 08:38:32 +0000 (UTC) In-Reply-To: <1148999329.577971.65960@y43g2000cwc.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 ipcop.localdomain:800 (squid/2.5.STABLE12) Complaints-To: groups-abuse@google.com Injection-Info: c74g2000cwc.googlegroups.com; posting-host=84.96.81.228; posting-account=zaFNSg0AAADtPu478c3eNVHYeU1nBtqs Xref: g2news2.google.com comp.lang.ada:4635 gnu.emacs.help:5737 Date: 2006-06-01T01:38:28-07:00 List-Id: Hello I found a workaround : I added a change-directory to build_dir before to start gnat find. I will try to go deeper inside compilation-mode later. See diff file below. As there were quite few answers, it would be interesting to know what IDE is the one you prefer to work with gnat/gcc on Windows (GPS ?, Emacs/ada-mode ?, ...) Please feel free to give your opinion. *** c:/emacs-22/lisp/progmodes/ada-xref.el.orig Mon May 01 13:44:02 2006 --- c:/emacs-22/lisp/progmodes/ada-xref.el Wed May 31 14:19:53 2006 *************** *** 895,901 **** (concat "'\"" (substring entity 1 -1) "\"'")) entity)) (switches (ada-xref-get-project-field 'gnatfind_opt)) ! (command (concat "gnat find " switches " " quote-entity (if file (concat ":" (file-name-nondirectory file))) (if line (concat ":" line)) --- 895,903 ---- (concat "'\"" (substring entity 1 -1) "\"'")) entity)) (switches (ada-xref-get-project-field 'gnatfind_opt)) ! (command (concat ada-cd-command " " (ada-xref-get-project-field 'build_dir) ! ada-command-separator ! "gnat find " switches " " quote-entity (if file (concat ":" (file-name-nondirectory file))) (if line (concat ":" line)) J=E9r=F4me a =E9crit : > Hello > > We are evaluating current CVS build of Emacs 22 (on Windows) > > One of our last problems deals with Ada programming mode : > When we use the function ada-find-**-references, the file-name is not > correctly identified > (And so, when using next-error function,it does not jump to the > corresponding line.) > > Any idea where I should start to look ? > (I am not very familiar with compilation-mode.) > > > Here is what I saw in my after buffer > > -*- mode: compilation; default-directory: > "c:/CVS-CO/HEAD/hera/interf/src/oci/" -*- > Compilation started at Tue May 30 16:00:38 > > gnat find -rf oci_test:oci_test.adb:17:11 oci_test.adb > -pc:/Work/HEAD/debug/g-oci_test.adp > .\oci_test.adb:17:11: (spec) Oci_Test > ... > > Compilation finished at Tue May 30 16:00:38 > > NB 1 : Of course, this is working fine in Emacs 21 (with same gcc > release, same .adp file) > NB 2 : When I compile, in case of warning/error, there is no .\ before > the file name