From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Metaprogramming
Date: Sun, 15 Sep 2019 09:22:23 -0400 [thread overview]
Message-ID: <jwvef0hd7db.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 16d32e8f08d.1191d211432772.321131096239642746@shyam.id.au
> This is a query from over half a decade ago: https://stackoverflow.com/q/22224045
That's not exactly about meta-programming, but rather about a peliminary
step you may (or may not) need for some meta-programming tasks.
> I want to redefine functions by manipulating the pre-existing
> function; is there any way to do this?
Yes, of course. For example `advice-add` lets you do that.
> I'd rather not just copy the whole function definition into my init.el file
> just to change one LOC;
> maybe there's a better way of doing this part instead?
Then it depends on the specifics:
- what line of code?
- is the function usually compiled?
- is the source code available?
- is there a way to get that result differently?
Stefan
next prev parent reply other threads:[~2019-09-15 13:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-15 3:13 Metaprogramming Shyam Nath
2019-09-15 7:32 ` Metaprogramming Teemu Likonen
2019-09-15 9:39 ` Metaprogramming Shyam Nath
2019-09-15 13:22 ` Stefan Monnier [this message]
2019-09-15 14:36 ` Metaprogramming Stefan Monnier
2019-09-15 19:03 ` Metaprogramming Emanuel Berg via Users list for the GNU Emacs text editor
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=jwvef0hd7db.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--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).