help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex to match underscore in function name in Python Mode?


From: Emanuel Berg
Subject: Re: Regex to match underscore in function name in Python Mode?
Date: Tue, 25 Jul 2017 01:43:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

John Mastro wrote:

>> def display_string():
>      ^^^^^^^^^^^^^^
>
> By default, only this one is fontified with
> font-lock-function-name-face.

... yes?

>> Watch out! "display_string" is in
>> `font-lock-function-name-face'!
>
> Since python-mode already fontifies the
> function name at definition sites, I presume
> the OP is asking about having it fontified
> "everywhere". However, he hasn't explained
> in detail.

Don't help him. It is a bad idea. Or help him,
so he will realize it is a bad idea. And learn
something about regexps in the bargain.

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]