Hi,
I use a custom face which is set outside in my color-theme, i think
having two customizable faces would be the best :)
Damien
Eric M. Ludlam wrote:
> Thanks for the patch.
>
> Do you think it would be better to use defface to create a new
> customizable face for this, or are you attempting to re-use 'region' for
> compatibility reasons?
>
> I used region there because I was lazy. :) It might be nice to create a
> specialized face there.
>
> Eric
>
> On Wed, 2009-10-07 at 13:48 +0200, Damien Deville wrote:
>> Hi,
>>
>> I got it working, attached is a patch (name of face might not be a good
>> one).
>>
>> Damien
>>
>> Damien Deville wrote:
>>> Hi Cedet-Devel,
>>>
>>> Would it be possible to add a way to customize face used by
>>> semantic-idle-tag-highlight for all instances of found tags rather than
>>> the default pulse one ?
>>>
>>> Damien
>>>
>> plain text document attachment (patch-semantic-idle.el)
>> Index: semantic-idle.el
>> ===================================================================
>> RCS file: /cvsroot/cedet/cedet/semantic/semantic-idle.el,v
>> retrieving revision 1.58
>> diff -u -r1.58 semantic-idle.el
>> --- semantic-idle.el 29 Sep 2009 01:30:19 -0000 1.58
>> +++ semantic-idle.el 7 Oct 2009 11:47:06 -0000
>> @@ -897,6 +897,9 @@
>> ))))
>> nil))
>>
>> +(defvar semantic-idle-summary-highlight-next-face 'region
>> + "Face used for the summary highlight.")
>> +
>> (define-semantic-idle-service semantic-idle-tag-highlight
>> "Highlight the tag, and references of the symbol under point.
>> Call `semantic-analyze-current-context' to find the reference tag.
>> @@ -920,7 +923,7 @@
>> target (lambda (start end prefix)
>> (when (/= start (car Hbounds))
>> (pulse-momentary-highlight-region
>> - start end))
>> + start end semantic-idle-summary-highlight-next-face))
>> (semantic-throw-on-input 'symref-highlight)
>> )
>> (semantic-tag-start tag)
>
>
>
--
Damien Deville
R&D engineer
damien.deville@...
http://www.netasq.com
NETASQ - We secure IT
|