all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 10256@debbugs.gnu.org
Subject: bug#10256: 23.1; Speedbar does not display GNAT Ada files by default
Date: Sat, 10 Dec 2011 15:17:55 +0100	[thread overview]
Message-ID: <CAAeL0STP5Xbhp_rp5NMkGmeSDsp7MbsZ4mXb+hqqiO3ProK5hQ@mail.gmail.com> (raw)
In-Reply-To: <sn8vmkn9mi.fsf@fencepost.gnu.org>

On Sat, Dec 10, 2011 at 08:55, Glenn Morris <rgm@gnu.org> 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?
>
>  ("\\.ad[bs].dg\\'" . ada-mode)

These are "expanded sources", generated by GNAT:

`-gnatD[=nn]'
     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.

    Juanma





      reply	other threads:[~2011-12-10 14:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 18:18 bug#10256: 23.1; Speedbar does not display GNAT Ada files by default Manuel Gómez
2011-12-09 19:55 ` Juanma Barranquero
2011-12-10  7:55   ` Glenn Morris
2011-12-10 14:17     ` Juanma Barranquero [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAeL0STP5Xbhp_rp5NMkGmeSDsp7MbsZ4mXb+hqqiO3ProK5hQ@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=10256@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.