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:48:50 +0600 Message-ID: <87tu2cped9.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="32088"; 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:52:27 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 1p1Wgd-00087v-27 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Dec 2022 18:52:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1WgF-0004hK-IM; Sat, 03 Dec 2022 12:52: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 1p1WgE-0004h3-Ly for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 12:52: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 1p1WgE-0002ig-EH for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 12:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1WgE-0005eC-25 for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 12:52: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: Sat, 03 Dec 2022 17:52: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.167008988121685 (code B ref 59793); Sat, 03 Dec 2022 17:52:02 +0000 Original-Received: (at 59793) by debbugs.gnu.org; 3 Dec 2022 17:51:21 +0000 Original-Received: from localhost ([127.0.0.1]:52475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1WfZ-0005dh-58 for submit@debbugs.gnu.org; Sat, 03 Dec 2022 12:51:21 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:46766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1WfY-0005db-2k for 59793@debbugs.gnu.org; Sat, 03 Dec 2022 12:51:20 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 1C92441334; Sat, 3 Dec 2022 18:51:19 +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 m42X1OhcbRfv; Sat, 3 Dec 2022 18:51:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670089877; bh=jMa8831euRIOjVgj+PllD3EaMjjL0XRw6aVuJBLe39Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=LuMYmA6WjMXYG84uCefU6M9H14s/aCoiP8muNfyUz0pDBLkajYvWIQ5Y5ixutiNkl 0RAl1qolnBLTHeoXh4xnp8CvHMhxcKjJJJ0tPprY60SAA5GDNvO6ujXr2wdtwkGc44 TA1XAFBhQcklq+6IHlMHUIquvVy6sFr8EvsnhISnPb7uf/RbIZLIAVqaqY/A3pz074 JEsc4sD3s4P8x3OXiRSLumwl5YSpVOXqaE3JPlhjzrPNoQ+tihcjJj33abVEacF/QM 3/mjIYmh2rkQOc3dKRc0q8BsijeGNDDmsVCCKVorEFaEw0p+LwbEmWm6vIJSnxa8IT IlV6x4YuWmt7Q== 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:249856 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----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOLjAIACgkQVTX89U2I YWtNZxAAud6JHIQBGvrXaKFzyqRUuNlQN7OiLSxk/AW3O0NYeldcPThRCBxXWHnt 4+tPRjkY4eA/jGDR8aEUpYmXmOc7Sw7nX3htO7nMzlIEDAN1a5lgG7QW6ocMlhbY ArQLhRgc3kPIcmJeUE2NtDiThUSqTyzKfokzURJSgGdP0fPLL0+uotfYztTm6ivD 2JNbBu/Ga1KGZ6DsUT15bmnxS2nAlAQbBzJk38d09P/q+oXFHWiCj8+0yRaeNyuU 5X6jE1z+rxjbfhipaTfu8bFVAr+6jY0ZVaBbJ0Rp3H3x+iW3p6ua2izjFFxN0jg3 WjHgjt+hA4+AWwd2+m7lNV34FGyDZ6vbl3CFwpc8zGQ4BBBQDx4ADOo09nyp5tfz v/25f8bagpdor/Sivj/GAwUWLhRtIvenrn7gPd8I1NR8Nb03wN8np/Z00tKNwDO6 AnEUdrswka/Qj006+WbSZe/OUbZCMcYW9QDP/QfbEUpCE7EUjfJyO9icXORvHFWr f4xX+F8aYQXDXKY25l6Kt5m75UPXwmRASKKowmWpCjke02uMVDsDaJbagblx4/1Y hri+SEO7NyqaU1vumoxphK2DqU0AW5IZh1n3rptaUlSk6lB1clbdNVJq9hVPgLe3 tgfij1u7lfMyMfDahRM+Tc2NP4ukgAwDMXM/7V1NbWDLKLVYWbE= =UglF -----END PGP SIGNATURE----- --=-=-=--