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-Thread: 103376,bd78b6bffebbeb9f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: AdaGIDE 7.42 and tabs References: <1vtafevdmhdyx.d4kq1ryzk298.dlg@40tude.net> <1d1qpxmqm6ila.t4zxivn7nn6a.dlg@40tude.net> <1bm9ssz6kcf6n.h15q4kj1brbz.dlg@40tude.net> From: Stephen Leake Date: Tue, 12 Dec 2006 19:35:22 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:43nGwqLeOeOE/+AtELyvmed/vM4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 7d7f2457f4acf759e00d412109 Xref: g2news2.google.com comp.lang.ada:7903 Date: 2006-12-12T19:35:22-05:00 List-Id: Simon Wright writes: > "Dmitry A. Kazakov" writes: > >> That would be fine to me, unfortunately indent-block inserts HTs. > > In this ada-mode, there's a write-file-hook that removes trailing > spaces & untabifies the buffer. > > (defun ada-set-write-file-hook () > "Reset the `local-write-file-hooks' for support of ada-mode. > As a result, the buffer is cleaned up upon saving, according > to the rules described for `ada-clean-buffer-before-saving'." > (if (and ada-clean-buffer-before-saving > (null local-write-file-hooks)) > (progn > ;; remove all spaces at the end of lines in the whole buffer. > (add-hook 'local-write-file-hooks > 'delete-trailing-whitespace) > ;; convert all tabs to the correct number of spaces. > (add-hook 'local-write-file-hooks > (lambda () (untabify (point-min) (point-max)))) > ))) I don't think AdaGIDE can interpret Emacs lisp. It would be interesting if it could ! -- -- Stephe