unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Modifying many function calls
Date: Wed, 27 Oct 2010 15:05:33 +0200	[thread overview]
Message-ID: <4CC8239D.4090807@easy-emacs.de> (raw)
In-Reply-To: <m1pquwszy3.fsf@ip1-201.halifax.rwth-aachen.de>

Am 27.10.2010 12:16, schrieb Andrea Crotti:
> Andreas Röhler<andreas.roehler@easy-emacs.de>  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)

[ ... ]



  parent reply	other threads:[~2010-10-27 13:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  8:44 Modifying many function calls Andrea Crotti
2010-10-26  9:55 ` Andrea Crotti
2010-10-26 19:07   ` Glauber Alex Dias Prado
2010-10-27  8:11   ` Andreas Röhler
2010-10-27 10:16     ` Andrea Crotti
2010-10-27 11:09       ` Andreas Röhler
2010-10-27 14:24         ` redefining/re-evaluating a defcustom [was: Modifying many function calls] Drew Adams
2010-10-27 13:05       ` Andreas Röhler [this message]
2010-10-28  2:56       ` Modifying many function calls PJ Weisberg
     [not found]     ` <mailman.1.1288174667.7486.help-gnu-emacs@gnu.org>
2010-10-27 13:40       ` Scott Frazer
     [not found] <mailman.5.1288082692.1069.help-gnu-emacs@gnu.org>
2010-10-26 13:42 ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CC8239D.4090807@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).