From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10256: 23.1; Speedbar does not display GNAT Ada files by default Date: Sat, 10 Dec 2011 15:17:55 +0100 Message-ID: References: <4EE250E9.8060706@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323526751 4402 80.91.229.12 (10 Dec 2011 14:19:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2011 14:19:11 +0000 (UTC) Cc: 10256@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 15:19:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RZNla-00028F-Hr for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2011 15:19:06 +0100 Original-Received: from localhost ([::1]:51426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZNlZ-0003PC-Mj for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Dec 2011 09:19:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZNlW-0003Ov-AT for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2011 09:19:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZNlV-0000Uq-C5 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2011 09:19:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZNlV-0000Ul-92 for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2011 09:19:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RZNmT-0001OB-LU for bug-gnu-emacs@gnu.org; Sat, 10 Dec 2011 09:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Dec 2011 14:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10256 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10256-submit@debbugs.gnu.org id=B10256.13235267815284 (code B ref 10256); Sat, 10 Dec 2011 14:20:01 +0000 Original-Received: (at 10256) by debbugs.gnu.org; 10 Dec 2011 14:19:41 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZNm8-0001NB-T0 for submit@debbugs.gnu.org; Sat, 10 Dec 2011 09:19:41 -0500 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RZNm6-0001N0-Tq for 10256@debbugs.gnu.org; Sat, 10 Dec 2011 09:19:39 -0500 Original-Received: by dajz8 with SMTP id z8so3771485daj.3 for <10256@debbugs.gnu.org>; Sat, 10 Dec 2011 06:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=4nkKXD68dh6i/vaMawVvvCeZ9R6XLVBgA9yBS5F9Jnw=; b=gGOgTTpTWzTOp61JqkleMYmx04Cp/IVv5vy5C3xE0xVUWAtyRQy30GtpVMPVQ/4nn0 l8aQxwe/4Kf0L6ahjIrZM5fRuo/luAU0/hKY1FeRw1+HZShCgj1UsK0yB8pQ5zITxqEj t96x6M8cP0nXPVlWnJADwutNii2mPUbioVwHo= Original-Received: by 10.68.74.41 with SMTP id q9mr15505058pbv.129.1323526717168; Sat, 10 Dec 2011 06:18:37 -0800 (PST) Original-Received: by 10.142.202.11 with HTTP; Sat, 10 Dec 2011 06:17:55 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 10 Dec 2011 09:20:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54868 Archived-At: On Sat, Dec 10, 2011 at 08:55, Glenn Morris wrote: > I think in future this variable should derive from auto-mode-alist in > some way. Eg (car (rassoc 'ada-mode auto-mode-alist)) is equivalent to > the current ada setting. Or there should be a subroutine of > set-auto-mode that returns the mode for a given filename. Otherwise > speedbar-supported-extension-expressions is likely to be out-of-date (eg > the Fortran entries are). speedbar should define the _modes_ it can > support, rather than file extensions. Good idea. > There are other ada entries in auto-mode-alist, are these relevant? > > =C2=A0("\\.ad[bs].dg\\'" . ada-mode) These are "expanded sources", generated by GNAT: `-gnatD[=3Dnn]' When used in conjunction with `-gnatG', this switch causes the expanded source, as described above for `-gnatG' to be written to files with names `xxx.dg', where `xxx' is the normal file name, instead of to the standard output file. For example, if the source file name is `hello.adb', then a file `hello.adb.dg' will be written. The debugging information generated by the `gcc' `-g' switch will refer to the generated `xxx.dg' file. This allows you to do source level debugging using the generated code which is sometimes useful for complex code, for example to find out exactly which part of a complex construction raised an exception. This switch also suppress generation of cross-reference information (see `-gnatx') since otherwise the cross-reference information would refer to the `.dg' file, which would cause confusion since this is not the original source file. =C2=A0 =C2=A0 Juanma