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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cac97ce4f4079eb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-29 07:39:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Need help w/ ada-mode.el under Emacs 21. Date: 29 Jul 2003 10:20:08 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1059488485 10947 128.183.235.92 (29 Jul 2003 14:21:25 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 29 Jul 2003 14:21:25 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:40951 Date: 2003-07-29T14:21:25+00:00 List-Id: "Bobby D. Bryant" writes: > I see that I can suppress re-indentation of the *current* line by adding > (setq ada-indent-after-return nil) to my ~/.emacs, but that's not what I > want to change -- I want to change indentation of the line where the > cursor ends up after pressing return. Nor do I want to disable > indentation altogether; I just want to disable contextless indentation. > (While working on complicated problems I like to put "lose end" comments at > the left margin so I can find them more easily by skimming, and it's > really annoying to have to move every line back to the margin by hand.) I suspect you are going to have to write a custom indentation function. It's easy to disable all indentation on return; just rebind the return key. But what you are asking for is more complicated. I suspect the ada-mode with emacs 21 got "smarter", and therefore now does more than you want. You can retrieve the ada-mode source from an old distribution of Emacs, but it's pretty dense (I've tried to fix indentation issues myself), so that probably won't help much. Post a few actual examples of "before", "after" and "desired"; maybe I'll have an idea. -- -- Stephe