From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Modifying many function calls Date: Tue, 26 Oct 2010 08:42:36 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <874oc9135f.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291879308 13954 80.91.229.12 (9 Dec 2010 07:21:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 07:21:48 +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 08:21:39 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 1PQaot-0003IW-2p for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 08:21:39 +0100 Original-Received: from localhost ([127.0.0.1]:35061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQaRN-0007LA-VC for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:57:22 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: news.albasani.net aHdpZSsDXI47tHWavrspu2xinnPftaG6y0cWPFGoHVHVuX73RMTyAuuoI63g/7x3XOHO2VVZV5No7mSlWhdVSCGnDDOGy0deOx+jrtR9S0D1OQV+q2dc9zAXou9f7v0B Original-NNTP-Posting-Date: Tue, 26 Oct 2010 13:42:36 +0000 (UTC) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:Zw0LsyrOpUs8u5TmPUHoyw4R42E= sha1:ELNg/zKB2o+hx5IK99CovvWkTAw= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Injection-Info: news.albasani.net; logging-data="OAS2CQhgoauBX/vkFGM12HGzYCAxaMTNWSHW/Q68QsxUEsDaTylCy/Gf0DNbM9pDj59uXNlHgokwCtWvdS+15Ge5+m4FLnSLlGrAALy0OgL/kj8FgIhIzH+c0cCnihv/"; mail-complaints-to="abuse@albasani.net" Original-Xref: usenet.stanford.edu gnu.emacs.help:182040 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:76821 Archived-At: On Tue, 26 Oct 2010 10:44:17 +0200 Andrea Crotti wrote: AC> I would like to finally prepend a prefix to all my personal functions. AC> Since they are 80 at the moment I would like to do it automatically. AC> For the (defun fun) part is easy, but what about all the places when AC> they are called? AC> I should loop on all the AC> (defun fun) and substitute all the occurrences of fun every time, what's AC> the best way to do it with Emacs? You could use `make-obsolete' on the old symbol and `defalias' to make the new one. Then byte-compiling will warn about the obsolete function. Personally I would just use `grep' or `ack' coupled with "perl -p -i -e's/OLD/NEW/g' *.el" coupled with version control :) Ted