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,bf347757ee6134a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-14 16:42:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!assen.demon.co.uk!not-for-mail From: john@nospam.assen.demon.co.uk.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: Emacs new Ada mode refuses to highlight comments Date: Wed, 14 Aug 2002 23:40:21 GMT Message-ID: <3d5ae251.20793290@news.demon.co.uk> References: NNTP-Posting-Host: assen.demon.co.uk X-NNTP-Posting-Host: assen.demon.co.uk:158.152.218.101 X-Trace: news.demon.co.uk 1029368460 nnrp-14:6775 NO-IDENT assen.demon.co.uk:158.152.218.101 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:28045 Date: 2002-08-14T23:40:21+00:00 List-Id: Eric Merritt wrote: >Thanks so much, I must be an idiot for missing that >one. I'd rather not say :-) The thing is, if you don't look at the minibuffer when you're loading files you would probably never notice it - I've just got into the habit of it I think because I mess around a bit with ELisp stuff now and again. In fact, the first time I loaded one of my Ada files I spotted that problem and didn't notice anything bing screwy with the highlighting! > That fixed the problem. If you have the time >could you explain what the actual problem was? I am >afraid that although I am fairly proficient at using >emacs, I am not so proficient at admining it. The problem appears to be in the line (line 1326): (if (listp which-func-modes) (add-to-list 'which-func-modes 'ada-mode)) in ada-mode.el. Despite the earlier comment: ;; This function do not require that we load which-func now. ;; This can be done by the user if he decides to use which-func-mode this doesn't seem to be the case! Having looked a bit closer, putting: (require 'which-func) before any ada-mode stuff in your .emacs would be adequate without switching on which-function-mode (you'd obviously lose that nice feature, but as you never had it anyway...), but switching which-function-mode on probably does that job anyway. However I would suggest this is a bug, as changing the above line from: (if (listp which-func-modes) (add-to-list 'which-func-modes 'ada-mode)) to: (if (boundp 'which-func-modes) (if (listp which-func-modes) (add-to-list 'which-func-modes 'ada-mode))) Appears to work. Best Regards John McCabe