Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion highlighting let+
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tamas Papp  
View profile  
 More options Jan 22 2012, 9:22 am
Newsgroups: comp.lang.lisp
From: Tamas Papp <tkp...@gmail.com>
Date: Sun, 22 Jan 2012 14:22:37 +0000 (UTC)
Local: Sun, Jan 22 2012 9:22 am
Subject: Re: highlighting let+

On Sun, 22 Jan 2012 14:02:33 +0000, Tim Bradshaw wrote:
> On 2012-01-22 13:45:07 +0000, Tamas Papp said:

>> Hi,

>> How can I highlight the symbol `let+' in Emacs (SLIME etc, standard
>> setup)?

>> I tried

>>   (font-lock-add-keywords nil
>>                           '(("let+" . font-lock-keyword-face)))

>> but the `+' isn't highlighted, only the `let'.

>> Best,

>> Tamas

> This is really an Emacs question: I don't know if there are still active

You are right, but Emacs is one of the most important IDEs for CL, so
I thought I would try here, because I expect that very few languages
have keywords that have characters like + in them so lispers are most
likely to have run into this problem.

> Emacs newsgroups.  But I'm guessing that the keyword is a regexp so "+"
> is special, and what you've probably defined is a pattern which will
> highlight "lett", "lettt" & so on.  Probably you want "let\\+" or
> "let[+]" or something like that.

Strangely, it is the opposite: in Emacs regexps, + does what you
describe when you escape it.

I have also tried

  (font-lock-add-keywords nil
                          '(("\\<\\(let+\\)" 1 font-lock-keyword-face t)))

which at least doesn't interfere with flet & similar, but the + is
still not highlighted.

Best,

Tamas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.