From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59793: 29.0.60; subr.elc is not compiled correctly Date: Sun, 04 Dec 2022 17:18:24 +0600 Message-ID: <87zgc31kov.fsf@disroot.org> References: <87lenpne48.fsf@163.com> <83cz90erqg.fsf@gnu.org> <87359wr08z.fsf@disroot.org> <0D6CA055-C9DD-425D-9D0B-03B555227E72@gnu.org> <87v8mspfuo.fsf@disroot.org> <83sfhwcq9h.fsf@gnu.org> Reply-To: Akib Azmain Turja Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21774"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tumashu@163.com, 59793@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 04 17:17:36 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p1rgO-0005Si-Gx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Dec 2022 17:17:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1rfs-0000Cv-NE; Sun, 04 Dec 2022 11:17:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1rfq-0000CO-VS for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 11:17:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1rfq-0001jC-NS for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 11:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1rfq-0001R6-Dy for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 11:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Akib Azmain Turja Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Dec 2022 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59793 X-GNU-PR-Package: emacs Original-Received: via spool by 59793-submit@debbugs.gnu.org id=B59793.16701705715488 (code B ref 59793); Sun, 04 Dec 2022 16:17:02 +0000 Original-Received: (at 59793) by debbugs.gnu.org; 4 Dec 2022 16:16:11 +0000 Original-Received: from localhost ([127.0.0.1]:58466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1rf0-0001QS-GQ for submit@debbugs.gnu.org; Sun, 04 Dec 2022 11:16:10 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:50518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1rex-0001QK-2O for 59793@debbugs.gnu.org; Sun, 04 Dec 2022 11:16:09 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 00D0244441; Sun, 4 Dec 2022 17:16:06 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t2sVEYDUSpIU; Sun, 4 Dec 2022 17:16:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670170564; bh=wqZfPs1EHeVrX93MItX+/ASbGCFaN4DVdq9Z7mqKKbk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Zb3Q3Qk3KwU1/5n1ANXsllY0av/TrMvraiMSg7yLnDtBNObYtda9Fd3ghcB1Tf4ZE 8yQHZyldTJbHHmbJ6cMHKTgnPS3/8R6JA5qaVvqwpTb2yNJuCgkQa+f6IPSQtQNI2Q fG59jlBtKjCd1AeJRNtyh8OWyxJptTusdvy/BjVI1UCH+yTJgCJmjxZ4VG/7gWUqx8 P/8fsZLKOd9tnonnZIM2W/PpWtZ4fMAZkFumKP6NfdMnS9aJxppFhOgyl748jmw8yR rK+j7haIXSdDDLkG8/Ql7SzwT/ngBe480ndiwR5ety9dFCVgux/avoe9t4HtuFm4cO wO5lcVdpylfnw== In-Reply-To: <83sfhwcq9h.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Dec 2022 20:10:18 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249950 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Akib Azmain Turja >> Cc: Feng Shu , 59793@debbugs.gnu.org >> Date: Sat, 03 Dec 2022 23:16:47 +0600 >>=20 >> > Am I missing something, or do you redefine a function and then expect = it to work like you never redefined it? >>=20 >> Unexpected: bug59593-yank just inserts the killed text. >> Expected: bug59593-yank intercepts and shows the killed text in echo >> area. > > You have redefined a subr.el function with cl-letf*, so how is what happe= ns > as result a bug in Emacs? Does the original subr.el function not do what > it's supposed to do, before you replace it? > > I understand you didn't expect the result of cl-letf*, and were surprised= by > what you saw, but I don't understand why you expect the Emacs development= to > do something about your surprise. > With subr.el (source), the bug59793-yank function overrides 'insert-for-yank' successfully. With subr.elc (compiled byte-code), the function can't override 'insert-for-yank'. Just try to replace the 'cl-letf' (not 'cl-letf*') form with an 'error' call, bug59793-yank still just inserts text, which is, obviously, unexpected. >> > So I'm still confused... >>=20 >> Is it clear now? (Somehow, I think, no.) > > See above: I understand what you are saying, but not why this is submitted > as a bug to the Emacs development team. Both source and compiled Emacs Lisp code should show the same behavior, except performance. But 'subr.el' and 'subr.elc' show different behaviors. Isn't this a byte-compiler bug? =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOMggEACgkQVTX89U2I YWuMaQ//RL1lJZ7sZIEjtfgeNLLJwdLC15s66czi/AIS6ESrcJ/wZBUW+A0HJC3R s+PjIeykYGRqVASNVUL6cz8HCsEDZBbJTZGUe+xFuBUpgn1DrmJBuGWK/Jb/fQqO OoNTY+2QSflk7Ix8RvNoEi4flKv6G1nQOiCk+I0SH6+qyXAW7lJpRvKMJPsA3gmB 4QBMzTO5GOsTRb88HqgdZA66u5llsUdl2zc0blszU2Eq/GS419HGSrtsOJF1XEaL d2W+UeP5V8RVEgZsaHN4AP5foyUSxDsE89qF3Jrw0TR/ZgdZkVdCAYT+U+vmQLS+ yI8x6H8+L1ta+n9eOHMqlvdpthNkp8fsMrBusinAeF+JviFX4/+bmzBkep3373M2 NC2yxWabS/ZsvJlLTGRBx4614LA2thvu1YeRok//r8y48Y73k67etjuu6+5ta+wz 2dQGSq9p+YUEe1dQpBWDlsm+9VS5RHWdPkjbWB24/oUwWic61MEuDhG/4zaKZovd QqvzBDwoaGEtv4+Je51Z+5gu7Q3CoPo3IIqQJZZKhkWffnnAlZT6E0ESdO5IjI1P lGkVj5gklQLlvMDbkJcNo9HaqIrCJEu7YK5Mv/L4kemybeD66uAUqqJ4rTWS3aue pAr7KALnki6JIi5s9Lh51vX671pcvnqVBC9aKPAB1KLvW+zlKPQ= =8Knm -----END PGP SIGNATURE----- --=-=-=--