Subject: Re: bug#59793: 29.0.60; subr.elc is not compiled correctly

From: Eli Zaretskii <[email-masked]>
Date: Sun, 04 Dec 2022 21:17:42 +0200

> From: Akib Azmain Turja <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Mon, 05 Dec 2022 00:56:16 +0600
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> From: Akib Azmain Turja <[email-masked]>
> >> Cc: Feng Shu <[email-masked]>,  [email-masked]
> >> Date: Sun, 04 Dec 2022 17:21:28 +0600
> >> 
> >> > You need to find a different way of overriding what insert-for-yank does.
> >> 
> >> Why?  And any suggestion how?
> >
> > The why is "because what you tried doesn't work."  As to how, I'd need to
> > know more about the problem you are trying to solve, and why you've selected
> > such a strange way of solving it.  Surely programming for Emacs doesn't
> > require replacing the definitions of standard functions.
> 
> I'm trying a make 'eat-yank' (a command in Eat package) to be as much
> identical as to 'yank' as possible.  That hack allows to avoid
> overriding the whole 'yank' logic.

You cannot rely on such kludges.  The Emacs feature provided for doing stuff
like this is add-function.