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:21:28 +0600 Message-ID: <87v8mr1kjr.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> <87v8ms6tv1.fsf@163.com> <831qpfd4t8.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="20507"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Feng Shu , 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:22 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 1p1rg9-00057i-Ma for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Dec 2022 17:17:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1rfs-0000Cw-Vu; Sun, 04 Dec 2022 11:17:05 -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 1p1rfr-0000CW-9E 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 1p1rfr-0001jJ-1F for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 11:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1rfq-0001RD-Sz 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.16701705795501 (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:19 +0000 Original-Received: from localhost ([127.0.0.1]:58469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1rf8-0001Qf-Ve for submit@debbugs.gnu.org; Sun, 04 Dec 2022 11:16:19 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:53508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1rf7-0001QZ-4A for 59793@debbugs.gnu.org; Sun, 04 Dec 2022 11:16:17 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 72D7641595; Sun, 4 Dec 2022 17:16:16 +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 DG1etehBJ_ai; Sun, 4 Dec 2022 17:16:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670170575; bh=axTMY72FuXT1ZXhkAvb94HhqIq0ryINRMnlnfr+UQlE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XDZAF/dDQzqVURCpSe4Dzcq5+pWOTcKQAt3jwhk6Vky1C9X5mtIuO+rTiRsvGjgdQ /t6Q3vYH0wBORT3tzuS/7FBAhiDhKZ4uMzw25jPYwX0hDKVDLYKjPKmz+qVfRYKr67 AiE4iezStBonQedCjI/39XPQ5oMtVMqkMoF3ES/IMi/j+Ynsf0B84x2dgB2MYgUVIE aEQbkK59mtWXnFGpxnmZ2EB2zWNmiffzIqDpkE+uVDWlRbPeZAmyH72CbTfSrX5YxH hFJcjQdns4PV8t3kvf8O88tRAMS3atf5rP+LuXKfiXQncvsFjkr76KlJKUG1zX3caU f5LTPfxNfCR8g== In-Reply-To: <831qpfd4t8.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Dec 2022 09:08:19 +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:249949 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Feng Shu >> Cc: Akib Azmain Turja , 59793@debbugs.gnu.org >> Date: Sun, 04 Dec 2022 05:49:06 +0800 >>=20 >> > You have redefined a subr.el function with cl-letf*, so how is what ha= ppens >> > as result a bug in Emacs? Does the original subr.el function not do w= hat >> > it's supposed to do, before you replace it? >> > >> > I understand you didn't expect the result of cl-letf*, and were surpri= sed by >> > what you saw, but I don't understand why you expect the Emacs developm= ent to >> > do something about your surprise. >>=20 >> I think the issue is that:=20 >> when I run emacs-29 first, I can not temp override `insert' function >> in `insert-for-yank-1' with the help of cl-letf in bug59593-yank >>=20 >> (require 'cl-lib) >> (defun bug59593-yank (&optional arg) >> (interactive "*P") >> (cl-letf* ((inhibit-read-only t) >> (insert-for-yank (symbol-function #'insert-for-yank)) >> ((symbol-function #'insert-for-yank) >> (lambda (&rest args) >> (cl-letf (((symbol-function #'insert) >> (lambda (&rest args) >> (message >> "%S" >> (mapconcat (lambda (arg) >> (if (stringp arg) >> arg >> (string arg))) >> args ""))))) >> (apply insert-for-yank args))))) >> (yank arg))) >>=20 >>=20 >> but after I run (load "subr.el"), overriding `insert' success. >> if I run (load "subr.elc"), overriding do not success. >>=20 >> so I think subr.elc maybe has some problem. > > No, I see no problem in subr.elc here. Did you the subr.elc attached in the first message? Note that my subr.elc works good, but using the subr.elc attached in the first message shows the problem. > > You need to find a different way of overriding what insert-for-yank does. Why? And any suggestion how? =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----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOMgrgACgkQVTX89U2I YWt47A//e7GYoh8kYlgroPCWFDW1EVdkeuvOAuJ4oobiSGgjUtBZOTewDfBL1dcy h7mTJzuYLM5w9BVObgYuJEux/zZF9EF3VPyLHiWI7KvRCB/w73Ru8FHDwAeyTSLp eXIgHts13W7ENkLHrVTW9d/AUzBmD+ejQnLPlnUiPioGVo/Nmysh6IWMYOUOJkhO dRO1/3TRrdO7yGVmiiKWTyUvT1ETbpuc70XCxMJTUrn/7coEDkddVLcN0Z2/Bquz zZFDqxQzzKAnq11y/VtM6AHe2sSFwdmo1k7tU1vhLWJdYp0XosLCw5V5xkhdl5oF gIIhTmuZbruG7cMXjQm27tMfWR0FB8RwSSbZAZMTF7Z6BuDLmakgTK2RJNVECPYv 5afLqBRKQijpNYSIjSPDkA9qPHIA5yE+UShARdCCtiCMuO28pQXN8JRv+RQjh3al ybLtxuF2IIShWdBDGDQTeoIROHGDoSUUWKdDiVB/nQB5ttTleQO0QdePBZ3uNoc4 Pzf1PdyVPnC0Sn1uVAC1UdjEMbD5Pj9UP3FtU7v9GQpISvlrlJe5FiVEyAj5a45k Wg8olPhuJtfJVlHo81sdKasBWeC8POz9+KngKGQNt7pJlfZJn3rt2Ge+DN+qGvop N1HNVklkzRsmNLevICqf9v9QQ7kFHhd29FwXidDWotJv7GafoOU= =/bwi -----END PGP SIGNATURE----- --=-=-=--