From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Modifying many function calls Date: Wed, 27 Oct 2010 15:05:33 +0200 Message-ID: <4CC8239D.4090807@easy-emacs.de> References: <4CC7DEB0.8040401@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1288184792 17942 80.91.229.12 (27 Oct 2010 13:06:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 13:06:32 +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 15:06:29 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 1PB5hw-0005tv-RL for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 15:06:25 +0200 Original-Received: from localhost ([127.0.0.1]:34272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB5hw-0001re-66 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Oct 2010 09:06:24 -0400 Original-Received: from [140.186.70.92] (port=35044 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PB5hR-0001pL-NU for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 09:05:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PB5hQ-0006c5-8I for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 09:05:53 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:62633) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PB5hP-0006bj-QU for help-gnu-emacs@gnu.org; Wed, 27 Oct 2010 09:05:52 -0400 Original-Received: from noname.home (brln-4db9e9a9.pool.mediaWays.net [77.185.233.169]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MACoT-1PHwFI04PB-00BIwQ; Wed, 27 Oct 2010 15:05:49 +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:Diu52aAiXlvot7JPPFzRKxi4nZEn/2UT3lCofROqeYL ggUIXI/4laeO3Hx7H5Sto0K0lzxYszLUQMT6jFb/1IiuCB++ml zOth8jthZdbykSt9YYxL/XKKe0CJ8NQWse9wqNOkMyeAPIiTcK OROG2bt4HEtjMxwFRGfF24vGblbz5ZU7fmUv7lTZTo7NwwrFUt 8cCpQk+g0ZnMEffg1bpJzhIIyP2za5qMCAtCf95KeM= 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:75253 Archived-At: Am 27.10.2010 12:16, schrieb Andrea Crotti: > Andreas Röhler writes: > >> 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? > > - actually in the same big org-mode file (?) assume "directory" In any case, suggest to move your functions into a separate directory or file. That would make things much easier. Unless there are reason not to do this. If in a directory, first task is to get a list of files. Function below as an example messaging in: (defun load-files-from-directory (&optional dir) (interactive) (let* ((dir (or dir default-directory)) (files (directory-files (expand-file-name (substitute-in-file-name dir)) t "\\.el$"))) (message "%s" files))) If just one file, its even easier, we proceed there. (unless I call something from > some yasnippet snippet, but I don't think) > - yes maybe also variables > But variables can be assigned to a group also (with defcustom) so it's > not so bad > - yes really all functions (some have the "my-" prefix but that can be > changed easily I think) [ ... ]