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: Sat, 03 Dec 2022 23:16:47 +0600 Message-ID: <87v8mspfuo.fsf@disroot.org> References: <87lenpne48.fsf@163.com> <83cz90erqg.fsf@gnu.org> <87359wr08z.fsf@disroot.org> <0D6CA055-C9DD-425D-9D0B-03B555227E72@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="1890"; 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 Sat Dec 03 18:46:28 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 1p1Waq-0000IR-46 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Dec 2022 18:46:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1WaR-0003xG-FH; Sat, 03 Dec 2022 12:46:03 -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 1p1WaQ-0003wu-HX for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 12:46:02 -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 1p1WaQ-0006YJ-7y for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 12:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1WaP-0005YI-PM for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 12:46:01 -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: Sat, 03 Dec 2022 17:46:01 +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.167008952221331 (code B ref 59793); Sat, 03 Dec 2022 17:46:01 +0000 Original-Received: (at 59793) by debbugs.gnu.org; 3 Dec 2022 17:45:22 +0000 Original-Received: from localhost ([127.0.0.1]:52449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1WZm-0005Xz-8p for submit@debbugs.gnu.org; Sat, 03 Dec 2022 12:45:22 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:46788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1WZk-0005Xt-7y for 59793@debbugs.gnu.org; Sat, 03 Dec 2022 12:45:21 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B7D8841036; Sat, 3 Dec 2022 18:45:18 +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 YC_EVQTv0K3T; Sat, 3 Dec 2022 18:45:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670089517; bh=txY91UnDxna+zOU1CvqidHkvR3g7E+dS0h6AOS1IyjY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CNi6SbRwShzEgNV/jmP/BTqR03jbSi+1iG0ZFfJCB6OZBv4vqlOq9/ccT+Vcf+Al1 WzVemU+7AlE9xvLnGLt3tTdJ3L9KDtSlcEzDdeMOg4dHA6tDsc2MSq/XC5Cd/CGjkX PLk0j9TKOLJAWmVKUnCqxDBKf0HdMUqM8dKAC3am/Bs3hsntj4Ov0/sjBOiNtefWcZ xbdklwREcqa9nrJBUTB9uHOPkdieDXj/fszYzOGzUc8sT6OCdtavkaeCvaSv0LTG4U IVKq4basnJ6c9jixCoQQMfpemueW4QlJfOrycUKtxN7dxfWQNkrC/VoJFcmk+0hCu7 INAiJOlkpmt7A== In-Reply-To: <0D6CA055-C9DD-425D-9D0B-03B555227E72@gnu.org> (Eli Zaretskii's message of "Sat, 03 Dec 2022 17:37:31 +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:249854 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: > On December 3, 2022 5:10:52 PM GMT+02:00, Akib Azmain Turja wrote: >>=20 >> 1. Save the following in a file. >>=20 >> --8<---------------cut here---------------start------------->8--- >> (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))) >> --8<---------------cut here---------------end--------------->8--- >>=20 >> 2. emacs -nw -Q -l FILE-FROM-STEP-1 -l PATH/TO/YOUR/SUBR.EL.GZ >> 3. Kill something. >> 4. M-x bug59593-yank. Now you should see the yank text in echo area. >> 5. emacs -nw -Q -l FILE-FROM-STEP-1 -l PATH/TO/ATTACHED/SUBR.ELC >> 6. Kill something. >> 7. M-x bug59593-yank. The yank text got unexpectedly inserted. > > 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. > > And what do you mean by ATTACHED/SUBR.ELC? I don't see any attachments t= o your message. > I mean, the subr.elc attached in the original file. I'm also attaching the subr.elc I got from Feng Shu on Codeberg. > So I'm still confused... Is it clear now? (Somehow, I think, no.) =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----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOLhIAACgkQVTX89U2I YWu0WRAAp2bJDlreGEML0PU5W49dJbrYbxhJdRxhmnZezUpV6SUt9w5gvmvf3gVM QxtNg/nn/UERNg7YXrwOvFrcrADL3MpMMNDkKaCGfG49av2uGr+1CkCmu7C1DKwq Yr8Pd4D6ZV83+ybs7T6yqt4Dw3ayrYT+tlN7wAP8ngw9HPjAwTyDbFcQBtGPWxyh nW44rT4ZvsOf0eIQ9laGZGBycNC1mek2hRMBoFrkmyFMYuHNwhp8z+mgnJQ3yVCH LreJ8FQAGWBCoosEg8nfI0qUlFqXpzI+3IY8Gwsivwq7M2nNj/2E/WDA09a2K8h1 e5DcukOXDl/r081uyN5QCca8X2/w8nl/Eol5tDxBbyryp9zkiaJgdYnt/oV14W5t ulmOTOnrQpRM9d6qwlWRqYPH4+vcqWnKIxl8h4UyO38PSL3gk7StpUXsUqe/XurL qva0JSTlfBs2+MB0mu/gFPvss4q7ZzTDOHgfr5i2uk4HSgNZ1MUXDKr0AagNVebd g3RCbvqvansZWTg/L5QyGVrj+iKrCaxtiwGA8m00uTQraKj1uRQ8b5q3Na6/xmi5 N/bCwYIwL4sohRXKxv6ncqaNZHX/mnF4pM1ACei9/3uSsB/ybaP0+lS3DjGh0Mdy bM1hU77AHi3GRLEt1W7GcYiYNNjpFPUNXtv0Ap7+vua+9aMI72o= =kDwb -----END PGP SIGNATURE----- --=-=-=--