From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Feng Shu Newsgroups: gmane.emacs.bugs Subject: bug#59793: 29.0.60; subr.elc is not compiled correctly Date: Sun, 04 Dec 2022 05:49:06 +0800 Message-ID: <87v8ms6tv1.fsf@163.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20485"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Akib Azmain Turja , 59793@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 03 22:50:20 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 1p1aOp-00059m-Oo for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Dec 2022 22:50:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1aOc-0003Zt-SI; Sat, 03 Dec 2022 16:50:06 -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 1p1aOZ-0003ZY-Un for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 16:50:04 -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 1p1aOY-0006y7-UK for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 16:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1aOY-0003vU-AR for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 16:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Feng Shu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Dec 2022 21:50: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.167010415615081 (code B ref 59793); Sat, 03 Dec 2022 21:50:02 +0000 Original-Received: (at 59793) by debbugs.gnu.org; 3 Dec 2022 21:49:16 +0000 Original-Received: from localhost ([127.0.0.1]:53500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1aNn-0003vB-S5 for submit@debbugs.gnu.org; Sat, 03 Dec 2022 16:49:16 -0500 Original-Received: from m12.mail.163.com ([123.126.96.233]:50813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1aNj-0003v5-Uv for 59793@debbugs.gnu.org; Sat, 03 Dec 2022 16:49:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=nDlqg yYOrXL636jN3kU+iu+LBBD8fKglRDW9T3gxxW0=; b=XQyHk/ezZnhw8RfJH1f5R UOokYzkZjmx5gb0u+qw1JiY41wPxydgfYr4xS4r1cbWefjREnw8ZG14k+47vpdfs psMN7n1UnN9CgsJhn4XrbsGG5h6tl4QdDkXJz8tQiupG4aNkQKxlo3IF1EhHGRlF Nca8SwJSr3sQ/k6cqdwklI= Original-Received: from Guix (unknown [49.88.144.183]) by smtp16 (Coremail) with SMTP id MNxpCgDn76NhxItjdfs0Ag--.19708S2; Sun, 04 Dec 2022 05:49:21 +0800 (CST) In-Reply-To: <83sfhwcq9h.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Dec 2022 20:10:18 +0200") X-CM-TRANSID: MNxpCgDn76NhxItjdfs0Ag--.19708S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Ww43uF17Gw18JrW7ZrW3trb_yoW8CF4rpa 4DC3Wqkr4ktFZakw1DJ3W0vF4Svrs5J398Gr18ArW0kayDAF93WrWYqrWFkF42qr18Ga1Y yan7uF18ZFy8uaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRxWrZUUUUU= X-Originating-IP: [49.88.144.183] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbB3wXM1GBHNHnrLwAAss 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:249882 Archived-At: Eli Zaretskii writes: >> From: Akib Azmain Turja >> Cc: Feng Shu , 59793@debbugs.gnu.org >> Date: Sat, 03 Dec 2022 23:16:47 +0600 >> >> > Am I missing something, or do you redefine a function and then expect it to work like you never redefined it? >> >> 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 happens > 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. I think the issue is that: 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 (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))) but after I run (load "subr.el"), overriding `insert' success. if I run (load "subr.elc"), overriding do not success. so I think subr.elc maybe has some problem. by the way, I use f6e2f30f394a270c2eca9a9a14be46876d2a86e5 to test > >> > So I'm still confused... >> >> 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. --