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

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

Re: Modifying many function calls


From: Ted Zlatanov
Subject: Re: Modifying many function calls
Date: Wed, 08 Dec 2010 15:33:30 -0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Tue, 26 Oct 2010 10:44:17 +0200 Andrea Crotti <andrea.crotti.0@gmail.com> 
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


reply via email to

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