From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68272: [PATCH] Fix -1 leaking from C to lisp in 'read-event' etc. Date: Wed, 06 Mar 2024 13:46:05 +0200 Message-ID: <86a5nblh1e.fsf@gnu.org> References: <46480759b6d89b5a4864e8ee1b986817366a56e5.camel@timruffing.de> <83wmsmucuo.fsf@gnu.org> <1b3fa12138838a3fe5643a9e76a65d32a677e34d.camel@timruffing.de> <33de23a45d00e23ddfebb24d16db95d638ac96f1.camel@timruffing.de> <933c41e932327b6c149706ca251c18046d9ffb8b.camel@timruffing.de> <86il20litl.fsf@gnu.org> <86frx4ldc7.fsf@gnu.org> <86cys8lagq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15298"; mail-complaints-to="usenet@ciao.gmane.io" Cc: crypto@timruffing.de, 68272@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 06 12:46:55 2024 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 1rhpjb-0003ma-0G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Mar 2024 12:46:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhpjI-0004IW-2s; Wed, 06 Mar 2024 06:46:36 -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 1rhpjD-0004HV-FU for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 06:46:31 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhpjD-0006jF-7E for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 06:46:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhpjh-0006Ue-Ui for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2024 06:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Mar 2024 11:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68272-submit@debbugs.gnu.org id=B68272.170972561324946 (code B ref 68272); Wed, 06 Mar 2024 11:47:01 +0000 Original-Received: (at 68272) by debbugs.gnu.org; 6 Mar 2024 11:46:53 +0000 Original-Received: from localhost ([127.0.0.1]:49910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhpjY-0006UH-Sn for submit@debbugs.gnu.org; Wed, 06 Mar 2024 06:46:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhpjW-0006U4-Dd for 68272@debbugs.gnu.org; Wed, 06 Mar 2024 06:46:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhpiu-0006Gd-S4; Wed, 06 Mar 2024 06:46:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8YMw0Q9jc2hMaEyv3ZTUvwO4hYBBsjO/iGlL/AxfmiE=; b=eXxs6Xt0M/ki k6i1EYSrlW5tDHDaVBXlqTSiVPiFzrPvTbB4rJ7kQ3apYAPAiklDFVRu4wPncFDftYYDa3fp2yKzh ot60JB9ynXn1ZmIj/d6R3drlNiMThObuhJF+UwycCTC5zwymkInJsIOk0tUWHaNIyVAqZYjA4erfG 48izPx545GETJ74fuCP+Q2w45hjcK+4TznUBNohugk42ZIrWcwpubuSQmsol5XG2/qmvRiQdchRQ5 fLEG/G8yrG9eKwnPdQbNqI8ONgBo0YpYB5y3oS+4VI+od28SMduIXkxpq1JZYD/stD5saw2b66D8o YAYD41J9r57dSKZxftPuHA==; In-Reply-To: (message from Stefan Monnier on Tue, 05 Mar 2024 15:18:45 -0500) 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:281108 Archived-At: > From: Stefan Monnier > Cc: crypto@timruffing.de, 68272@debbugs.gnu.org > Date: Tue, 05 Mar 2024 15:18:45 -0500 > > > I'd prefer that we allowed Lisp programs to diagnose the situation > > where the macro ends prematurely, > > If we prefer to preserve the current behavior in Calc, the patch below > should do the trick. Fine by me, provided that we describe this technique in NEWS when we install the changes. Thanks.