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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1165de600bc63db X-Google-Attributes: gid103376,public From: re@waporo.muc.de (Rolf Ebert) Subject: Re: Help : Ada mode problem in emacs Date: 1996/02/20 Message-ID: #1/1 X-Deja-AN: 140308675 sender: re@waporo.muc.de references: <311B645C.64DB@lfwc.lockheed.com> 17: 18:31 GMT organization: R. Ebert from home newsgroups: comp.lang.ada Date: 1996-02-20T00:00:00+00:00 List-Id: >>>>> "CM" == Cheryl Marquis 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 "") 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