comp.lang.ada
 help / color / mirror / Atom feed
From: john@nospam.assen.demon.co.uk.nospam (John McCabe)
Subject: Re: Emacs new Ada mode refuses to highlight comments
Date: Wed, 14 Aug 2002 23:40:21 GMT
Date: 2002-08-14T23:40:21+00:00	[thread overview]
Message-ID: <3d5ae251.20793290@news.demon.co.uk> (raw)
In-Reply-To: mailman.1029343921.25840.comp.lang.ada@ada.eu.org

Eric Merritt <cyberlync@yahoo.com> 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 <john@assen.demon.co.uk>



  reply	other threads:[~2002-08-14 23:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ur8hcdl53.fsf@gsfc.nasa.gov>
     [not found] ` <YlT39.326$_R5.28416290@newssvr13.news.prodigy.com>
     [not found]   ` <aiqipm$jre$1@rdel.co.uk>
2002-08-14  3:19     ` Task reschedule Randy Brukardt
2002-08-14  3:40       ` Emacs new Ada mode refuses to highlight comments Eric Merritt
2002-08-14  9:18         ` John McCabe
2002-08-14 14:02           ` Eric Merritt
2002-08-14 15:58             ` John McCabe
2002-08-14 16:51               ` Eric Merritt
2002-08-14 23:40                 ` John McCabe [this message]
2002-08-15 19:08                   ` Simon Wright
2002-08-16  8:09                     ` John McCabe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox