From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68272: [PATCH] Fix -1 leaking from C to lisp in 'read-event' etc. Date: Tue, 05 Mar 2024 14:29:43 -0500 Message-ID: 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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39344"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: crypto@timruffing.de, 68272@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 05 20:31:05 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 1rhaVE-000A2T-AQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Mar 2024 20:31:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhaUy-0001Jw-3q; Tue, 05 Mar 2024 14:30:48 -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 1rhaUw-0001Jl-G0 for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 14:30:47 -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 1rhaUi-0005UR-9C for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 14:30:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhaVC-0002ed-Bv for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2024 14:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Mar 2024 19:31:02 +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.170966702310146 (code B ref 68272); Tue, 05 Mar 2024 19:31:02 +0000 Original-Received: (at 68272) by debbugs.gnu.org; 5 Mar 2024 19:30:23 +0000 Original-Received: from localhost ([127.0.0.1]:49036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhaUZ-0002da-I2 for submit@debbugs.gnu.org; Tue, 05 Mar 2024 14:30:23 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhaUX-0002dJ-8e for 68272@debbugs.gnu.org; Tue, 05 Mar 2024 14:30:22 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4D7D180C35; Tue, 5 Mar 2024 14:29:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1709666984; bh=Z1Hu5IQicyjwpMm4I0+gc0vJa9NtFCd0OqDs9CZJSD8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RSHhLyOzRhg3EpgNuWPRAlVIaJ1GPfjkX8Ecxok0hzfeq03lS1pPUyIEfjcQKXrng 2fCFNA/CVsa43OZomFvURb3o/pHW3059U8vdiCljTyES6pslnNxy8vAgZptme0lseA l5Sy2Ue2GdbFm+C0qtBQ1RwQTRwf5wjAKXv4LShK2CXTrsAgPSfIkMaVuYStGcXfgz Vb/Rviw+Orc6ux7hid1vYurQsXa/JUc6WH7x/srox6kgxy+O8XXRknH8tULIXglTvs 6jkGbAT4nw3ZyfeiencrEKiYgnEXjg2H4mkHvDj8HIpUGx1CTjfIs0d04K08Qswmlh XvZt9gQgtJz9g== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 45C8F80394; Tue, 5 Mar 2024 14:29:44 -0500 (EST) Original-Received: from pastel (unknown [104.247.233.29]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 22296120804; Tue, 5 Mar 2024 14:29:44 -0500 (EST) In-Reply-To: <86frx4ldc7.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 05 Mar 2024 20:53:44 +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:281080 Archived-At: >> >> > IOW, what about callers that actually _want_ to know when the macro >> >> > ends prematurely? >> >> I couldn't find any, really. >> > ??? calc is one, obviously. >> >> I don't think so: AFAICT the tests there were added simply >> because they had to do something with this -1 return value. > > Any evidence? Andreas thought differently, what if he is right? I think the mail you responded to already provided my answer to the case the original author did it on purpose. I have nothing to add. Do you have a better alternative? Stefan