From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to modify a function of a package
Date: Fri, 13 Oct 2023 01:54:02 +0200 [thread overview]
Message-ID: <87zg0n75yd.fsf@dataswamp.org> (raw)
In-Reply-To: ug9iaq$shs$1@ciao.gmane.io
Maske wrote:
> I have installed a package and I want to modify a function
> of it, but not in the package itself, because if there is an
> update it would stop working, so I have added the function
> modified in my init file. But, it doesn't work. The package
> behavior is not altered.
You can use `eval-defun' or `eval-last-sexp' and try whatever
the package does after that, if you use the same name as the
package for the function it should work.
But it should also work from the init file, maybe you load the
package at a later stage so the old definition gets used all
the same?
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2023-10-12 23:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-12 19:39 How to modify a function of a package Maske
2023-10-12 22:02 ` Philip Kaludercic
2023-10-13 4:24 ` tomas
2023-10-12 23:54 ` Emanuel Berg [this message]
2023-10-28 13:18 ` Nikolay Kudryavtsev
2023-10-28 23:55 ` Maske
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=87zg0n75yd.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--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).