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

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

Re: Change function name style


From: Colin S. Miller
Subject: Re: Change function name style
Date: Wed, 08 Dec 2010 15:21:55 -0000
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328)

Elena wrote:
On 29 Lug, 21:45, Andrea Crotti <andrea.crott...@gmail.com> wrote:
A regexp can't know when I have a function or a function call, while
both emacs c-mode and semantic do...

Then write a loop which opens those files with font-lock enabled.
Start searching in each buffer with above regexp, check face with
(face-at-point) at each match before replacing. Then save and close
the buffer.


Why close the buffer?
If it is to ensure the buffer is fontified correctly, the
(font-lock-fontify-buffer) will force a refontification.

HTH,
Colin S. Miller

--
Replace the obvious in my email address with the first three letters of the 
hostname to reply.


reply via email to

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