From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Modifying many function calls Date: Wed, 27 Oct 2010 10:11:28 +0200 Message-ID: <4CC7DEB0.8040401@easy-emacs.de> References: 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 1288170600 18663 80.91.229.12 (27 Oct 2010 09:10:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 09:10:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 27 11:09:59 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 1PB216-0004T5-F5 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 11:09:59 +0200 Original-Received: from localhost ([127.0.0.1]:49152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB214-00019U-3v for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 05:09:54 -0400 Original-Received: from [140.186.70.92] (port=58439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB1eB-000536-On for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 04:46:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PB16y-0001gh-QG for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 04:12:03 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.8]:65161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PB16y-0001aU-Df for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 04:11:56 -0400 Original-Received: from noname.home (brln-4db9e9a9.pool.mediaWays.net [77.185.233.169]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LqHEi-1Og40v1NkO-00dymr; Wed, 27 Oct 2010 10:11:53 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: X-Provags-ID: V02:K0:wOe6T72j04iSJKx8k17cd1makmDkNnfFSlq0iuDoU9E h4Tf6Le5OLwDlh//iCh2Xty51CNlQAW0G1Oj0itNeoBa3mxeL8 XAoZsyXDeDlk7pGmAtowyhl0bKZ0SSixwPPfwGHpnQ7AeJGGUO aMSkvmxPOv+9ohdEoRGqHQUxViOPaPiMAeeSExwb/vQ0rlxuo5 /cBf9M50nU4MOwcxtJf4u6/ntexAIOOZaxk4LLaMl4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:75247 Archived-At: Am 26.10.2010 11:55, schrieb Andrea Crotti: > Andrea Crotti writes: > >> I would like to finally prepend a prefix to all my personal functions. >> Since they are 80 at the moment I would like to do it automatically. >> >> For the (defun fun) part is easy, but what about all the places when >> they are called? >> >> I should loop on all the >> (defun fun) and substitute all the occurrences of fun every time, what's >> the best way to do it with Emacs? >> >> Thanks, >> Andrea > > I was also seeing if semantic can help, but if I go on any of the > functions and I try > M-x RET semantic-symref, I don't anything, even if there are actually > calls to that function and semantic is working fine. > > > Hi, wrote years ago the opposite: defining aliases for all prefixed functions, The alias then was the function name with prefix turned into suffix. Should exist in the gnu-emacs-sources@gnu.org archive somewhere. Purpose was making completion of function-groups work. However, would write that differently today probably. Also, if you give some info here, it should be possible to put the script together at this list. Questions would be: - reside all files with functions to rename in the same directory? - really all functions to rename? - only functions to rename, not variables? Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components https://code.launchpad.net/s-x-emacs-werkstatt/