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 21:10:52 +0600 Message-ID: <87359wr08z.fsf@disroot.org> References: <87lenpne48.fsf@163.com> <83cz90erqg.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="14700"; 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 16:18:17 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 1p1UHR-0003bZ-Kv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Dec 2022 16:18:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1UHE-0000BY-86; Sat, 03 Dec 2022 10:18: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 1p1UHC-0000BG-TU for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 10:18: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 1p1UHC-0002Yj-LI for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 10:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1UHC-0004I7-GY for bug-gnu-emacs@gnu.org; Sat, 03 Dec 2022 10:18: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 15:18: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.167008067916489 (code B ref 59793); Sat, 03 Dec 2022 15:18:02 +0000 Original-Received: (at 59793) by debbugs.gnu.org; 3 Dec 2022 15:17:59 +0000 Original-Received: from localhost ([127.0.0.1]:51857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1UH8-0004Ht-Nz for submit@debbugs.gnu.org; Sat, 03 Dec 2022 10:17:59 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:41568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1UH6-0004Hn-IR for 59793@debbugs.gnu.org; Sat, 03 Dec 2022 10:17:57 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E65ED41426; Sat, 3 Dec 2022 16:17:55 +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 hdVUFyQST7g1; Sat, 3 Dec 2022 16:17:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670080674; bh=FFOmuzQ/yBSmArTlkLCXCFg8g2twvErihIX41/X32T0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TUcKQJa/ggPwOSw/8pbAO+AJFxtjmKocc3Ca/wsw0BtOtkLB/Bo31sc5opRuZXJCo vvNzzGoyG6YS54tUVUl0DjlMpXfWHj1qemBXLylumT6g13zM/adscs8tOYlE8+cWA/ /ClUGW4upmvMtJp9/LMyeaajb+WEX7v1qNWKX2v1vObmk3IWMI2H01PNirGGhP1acr ZWQoSvyhIsmqWwjgigXq5rDhTKZksfva9W+Ie/l5NXPDDFWQfkVK1Rwz8fPRkz5YRk sEDQuPxY05exV98d9sxU38BSRxKSkgfLcKbNuNVfIpZP+TY19RR9FF0nNDqwpB6CKa WUUY8c+Rtm8MA== In-Reply-To: <83cz90erqg.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Dec 2022 11:55:35 +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:249849 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Feng Shu >> Date: Sat, 03 Dec 2022 15:24:55 +0800 >>=20 >> This week, I faced an issue about emacs-eat:=20 >>=20 >>=20 >> eat-yank not work well: https://codeberg.org/akib/emacs-eat/issues/9 >>=20 >>=20 >> ------------- >> (defun eat-yank (&optional arg) >> "Same as `yank', but for Eat. >>=20 >> ARG is passed to `yank', which see." >> (interactive "*P") >> (when eat--terminal >> (funcall eat--synchronize-scroll-function) >> (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) >> (eat-send-string-as-yank >> eat--terminal >> (mapconcat (lambda (arg) >> (if (stringp arg) >> arg >> (string arg))) >> args ""))))) >> (apply insert-for-yank args))))) >> (yank arg)))) >> --------- >>=20 >>=20 >> After some test with author of emacs-eat, we find that config >>=20 >> (require 'eat) >> (load "subr.el") >>=20 >> work, while the below config do not work. >>=20 >> (require 'eat) >> (load "subr.elc")=20 >>=20 >>=20 >> we find that C-x C-e insert-for-yank and insert-for-yank-1 works too. >>=20 >>=20 >> so we think subr.elc is not compiled correctly, I use the below=20 >> script to compile emacs, do not install and run ~/emacs/emacs29/src/emac= s directly > > Thanks, but what exactly "does not work" in the byte-compiled version of > subr.el? Do you have a recipe to reproduce the problem you see without > using emacs-eat? If so, please post such a recipe. Because from your > report, I don't see how to reproduce the problem and how to investigate i= t. > > > I have figured out a simpler reproduction method, but since I don't have the much information other than the subr.elc file, Feng should verify it. 1. Save the following in a file. =2D-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))) =2D-8<---------------cut here---------------end--------------->8--- 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. Feng, can you precisely specify the commit you're building from? It'll allow to reproducing your problem more easily and precisely. =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----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOLZvwACgkQVTX89U2I YWuTLw/+Mqgye1GT0Ue0geUQr2/AyhGuurTHvi3PyYeADTGWjRkdBpyYXFY39GZK kxVnKQgb51Chw9CUd7kpYcT6dp/pp5HxjfkQYcWRu2LBnvs9SpMYQyvcxXHJ2hnw /SFvnjppHSEhy72QSgKAnG/2e/PZS9nIfdPIAutCg5XwDWwBdjdtYKqgh4zUjCyQ LLLZz0fxlUQqtE155YafXJEKQXZ7JTzaV/iSpjse9mFryeJVqESoClYaDm81SGk5 8/fPSu6+8Fv8tKZjkElN5oP4A3uW7akHfsHrGgSqtzuy3M7PZ0hnDIkBsSIlbhpo 51IvQdM5u/eB+4kW43g/xh8eiUT2B1uVpuNj9zMiSrduuUKUhJaQDicxl37WCKkW +78XUY2rP8essTbfL2HHsA3J/jFArOjn+hR/XAx2kh6FAsBe/rFAOsuAFSclWOt/ nU7Lg8dKMEb3hs/QqH8Itpkmc0sKYU3ZNCvypv9Xxlvq3uKLR81EeWH1hLGMTHE1 6H8udztjc1f+VHBFrCqGLTL94Im58aDECmsw11AwI1Yq8vRM4Hoejg3AxheqXkKB 4XtWNJ4ctHzunEA1ZtdtT60jiIlUQLYf1Hv8Zz+AFgsOFC9m70qNdP4tE9WNGY5L 4hNf66ZIIZ63CG5Yv5UPmMtaJxNDAm+4Z1015HALXR8rIBfQyA4= =DZaO -----END PGP SIGNATURE----- --=-=-=--