comp.lang.ada
 help / color / mirror / Atom feed
From: re@waporo.muc.de (Rolf Ebert)
Subject: Re: Help : Ada mode problem in emacs
Date: 1996/02/20
Date: 1996-02-20T00:00:00+00:00	[thread overview]
Message-ID: <m2pwb97t0l.fsf@waporo.muc.de> (raw)
In-Reply-To: 311B645C.64DB@lfwc.lockheed.com

>>>>> "CM" == Cheryl Marquis <cmarqui@relay.nswc.navy.mil> writes:

CM> I too have emacs questions (and am also new to emacs).  I have
CM> downloaded xemacs and the 2.12 ada-mode version.  I can get emacs to
CM> recognize my file as an Ada (in my case ".a") file automatically now
CM> and it will change the fonts according to what's specified in an
CM> example .emacs file I've received, but I can't seem to get it to do
CM> the following:

CM> 1. Actually pretty printing (shifting lines, etc).  When I click on
CM> "pretty print buffer" under the Ada menu, it tries, but then I get
CM> the error: "Searching for program: no such file or directory,
CM> aimap."

CM> In the ada-mode.el that I got along with the other ada-mode files,
CM> there's a line "ada-mode.el:(defvar
CM> ada-external-pretty-print-program "aimap"."

Replace "aimap" with the name of your preferred pretty printer program.
`aimap' itself is not a pretty printer, but a perl-script that changes
the case of keywords and identifiers (Ada Identifier case MAPping
tool).  It is written by Tom Quiggle from Silicon Graphics who posted it
here on comp.lang.ada.

CM> 2. I thought that emacs could be made to act like a language
CM> sensitive editor, i.e. I type some control sequence or push a button
CM> and I have an "if" statement template.  Is there documentation about
CM> how to do this?

Type `C-c C-t i' for the if-statement template.  `ada-stmt.el' is
intended for that purpose.  It does not extend the just typed
characters, but wants a special key sequence for every construct.  I
admit that it is not very practical, but I just copied it from the
original `ada.el'.  Statements based on abbreviations do not (yet)
exist. 

CM> Now (after all that :D ), what I'd like to know, is did I not get
CM> something I needed when I downloaded emacs-ada-mode-2.12.tar or do I
CM> need to get things like "aimap" from somewhere else?  Or do I need

As the name implies `ada-external-pretty-print-program' is the name of
an *external* program that you have to get from somewhere else.  I can
send you `aimap' if you want to (or Tom Quiggle posts it here again)

CM> to reconfigure my .emacs file?

Put that line in your `.emacs'

(setq ada-external-pretty-print-program "<name-of-my-pretty-printer>")

Most compilers come with a pretty printer. At least Alsys (now Tomson
Software Products) and VADS (Verdix, now Rational) provide such a program.

CM> We have emacs on a SUN Sparc 10 (Sun OS 4.???) and Digital Alphas
CM> (OSF1 3.2 or 3.3).

CM> Thanks for your help!

I hope that helps. Don't hesitate to ask again.

CM> Cheryl cmarqui@nswc.navy.mil

CM> P.S. I wouldn't be adverse to pointers on what else I need to do to
CM> get emacs to recognize VADs as opposed to GNAT. :-D

There is a file `ada-verdix.el' in the contrib directory of
emacs-ada-mode-2.12. 


	Rolf


	




      parent reply	other threads:[~1996-02-20  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <311B645C.64DB@lfwc.lockheed.com>
1996-02-20  0:00 ` Help : Ada mode problem in emacs Rolf Ebert
1996-02-20  0:00 ` Rolf Ebert [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox