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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,791530e499e6a7f9 X-Google-Attributes: gid103376,public From: Brian Courtney Subject: Re: ada writing guide Date: 2000/04/19 Message-ID: <38FE2586.53730C7E@hercii.mar.lmco.com>#1/1 X-Deja-AN: 613316813 Content-Transfer-Encoding: 7bit References: <8d1rso$bir$2@bunyip.cc.uq.edu.au> <8d1vhj$hdr$1@nnrp1.deja.com> <8d2hig$7e6$1@nnrp1.deja.com> <38F5DF8C.1A01E5A4@utech.net> <8d4t07$o15$1@nnrp1.deja.com> <38F603FE.B0C3ED83@utech.net> <8d5dsc$c27$1@nnrp1.deja.com> <8d6hjn$j9p$1@clnews.edf.fr> <8d76vj$9jt$1@nnrp1.deja.com> <8d7uak$1d1$1@wanadoo.fr> <8dfd6q$uch$1@nnrp1.deja.com> <87em84vavt.fsf@deneb.cygnus.argh.org> <8dfpj7$crs$1@nnrp1.deja.com> <8dgk8i$ak4$1@nnrp1.deja.com> <8dhqi7$jv3$1@nnrp1.deja.com> <8dhuuu$ou5$1@nnrp1.deja.com> <8di8da$4el$1@nnrp1.deja.com> <38FCD954.F1F86536@hercii.mar.lmco.com> Organization: Lockheed Martin Corporation Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-19T00:00:00+00:00 List-Id: Brian Courtney wrote: > 2. change ada-mode.el to re-read the exception file and update > the internal copy just before it saves the file. NOTE: There may > still be small chance that changes will be lost with this approach, > but very very unlikely. > > ex, (NOTE: I have not tried this, but it should work). Famous last words! > > > from ada-create-case-exception > > ;; Save the list in the file > (find-file (expand-file-name ada-case-exception-file)) > (erase-buffer) > ;; force update of ada-case-exception (reread exception file) > (ada-case-read-exceptions) ;; this line added from original > (mapcar '(lambda (x) (insert (car x) "\n")) ada-case-exception) > (save-buffer) > (kill-buffer nil) > ) That's what I get for not testing it myself. Add the call to ada-case-read-exceptions to the first line of the ada-create-case-exception function and that should solve your problem (I tested it this time and it seems to work).