From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Change function name style Date: Thu, 29 Jul 2010 22:53:02 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4c51f83d$0$275$14726298@news.sunsite.dk> References: <4C51D76F.1000908@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291855586 27561 80.91.229.12 (9 Dec 2010 00:46:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 00:46:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 01:46:23 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQUeK-0003VX-NW for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:46:20 +0100 Original-Received: from localhost ([127.0.0.1]:45025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQUeJ-0006YK-TH for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:46:19 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 20 Original-NNTP-Posting-Host: 62.56.61.163 Original-X-Trace: news.sunsite.dk DXC=4onadnKX=\^; OkaSc<8a?TYSB=nbEKnk[=BA9<698OeS5fdD?L8VmBXOOn[7LY1L_UQScK68eBi5W; QNS\SSPXnW=`B>8HMEIDXnmOLjad>8L]jedb1I[Gi_[ Original-X-Complaints-To: staff@sunsite.dk Original-Xref: usenet.stanford.edu gnu.emacs.help:180207 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76320 Archived-At: Elena wrote: > On 29 Lug, 21:45, Andrea Crotti 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.