comp.lang.ada
 help / color / mirror / Atom feed
From: john.nospam@nospamassen.nospamdemon.co.uk (John McCabe)
Subject: Re: Emacs new Ada mode refuses to highlight comments
Date: Fri, 16 Aug 2002 08:09:07 GMT
Date: 2002-08-16T08:09:07+00:00	[thread overview]
Message-ID: <3d5cb2f9.707697@news.demon.co.uk> (raw)
In-Reply-To: x7v65ycx7mq.fsf@pushface.org

On 15 Aug 2002 20:08:13 +0100, Simon Wright <simon@pushface.org>
wrote:

>john@nospam.assen.demon.co.uk.nospam (John McCabe) writes:
>
>> 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)))
>
>This is very like the fix in the supported version (3.15a here):
>
>    (if (and (boundp 'which-func-modes)
>	     (listp which-func-modes))
>	(add-to-list 'which-func-modes 'ada-mode))
>    )

Pity I didn't think to use the "and" function instead of nested "if"s.
It's been a long time since I did any elisp programming :-)



      reply	other threads:[~2002-08-16  8:09 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
2002-08-15 19:08                   ` Simon Wright
2002-08-16  8:09                     ` John McCabe [this message]
replies disabled

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