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#71429: Inconsistent y-or-n-p prompt behavior in Emacs Lisp Date: Sat, 08 Jun 2024 13:41:14 -0400 Message-ID: References: <0a72f9c4-3f1c-4fc8-a412-169dca892b57@medialab.sissa.it> <86bk4bet9p.fsf@gnu.org> <87cyoreqpd.fsf@gmx.net> <87h6e3lemo.fsf@gmx.net> <861q57cwhi.fsf@gnu.org> <86wmmzbddb.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="23815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gabriele@medialab.sissa.it, 71429@debbugs.gnu.org, stephen.berman@gmx.net, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 08 19:42:12 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 1sG04y-00060u-AN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jun 2024 19:42:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sG04Z-0005WK-9T; Sat, 08 Jun 2024 13:41:47 -0400 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 1sG04Y-0005W1-DP for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 13:41:46 -0400 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 1sG04Y-0005qy-5V for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 13:41:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sG04n-0004Wg-Ny for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 13:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jun 2024 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71429 X-GNU-PR-Package: emacs Original-Received: via spool by 71429-submit@debbugs.gnu.org id=B71429.171786850717377 (code B ref 71429); Sat, 08 Jun 2024 17:42:01 +0000 Original-Received: (at 71429) by debbugs.gnu.org; 8 Jun 2024 17:41:47 +0000 Original-Received: from localhost ([127.0.0.1]:39383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sG04X-0004W9-1I for submit@debbugs.gnu.org; Sat, 08 Jun 2024 13:41:47 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:41743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sG04S-0004Vt-7S for 71429@debbugs.gnu.org; Sat, 08 Jun 2024 13:41:44 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E5F21441151; Sat, 8 Jun 2024 13:41:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1717868476; bh=cHNS/Mt0P+KQ/zs5XVXOayTeUqBXtnj9EQjj2L7nG9c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ja0Abh79kLa5XhphIszWIyNQFaV/A3Sj9Hc5ms1ZVF0+sFq83eDE0FwP8oInl8ocQ iHhZfc3kqTT7cr/sbXGUDGB6BEeDeLVbh04hjZcoYm5/Ti0+iQgTyh9IeeSOYb5qll RcAe9Tv70lZiqDF+vLUmmbIWXBmWwidjNi0KVFyfT4Kxyugsd1mVgU0j/GiPquM0IH LEFajG9skLlMIIZyhN+VYN0clFwu4ubXdwKHWk+0nkgITdZCNiVJ5alfv0jYj9KpKC gOD8Jam3basfMR4TGcrEMN5LA4zq0Uxb/blJBgNPsg1X/qVjLA+XDax6vWshZYAkNj XGXoTF9JBKzSA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 97BF2441109; Sat, 8 Jun 2024 13:41:16 -0400 (EDT) Original-Received: from pastel (unknown [24.140.236.196]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5A639120550; Sat, 8 Jun 2024 13:41:16 -0400 (EDT) In-Reply-To: <86wmmzbddb.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 Jun 2024 19:36:32 +0300") 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:286883 Archived-At: > Or maybe you are saying that a Lisp program that binds > search-spaces-regexp has a bug, because Lisp code is not supposed to > bind that? That, yes. Binding it should be done carefully only at those places where the contained Lisp code is performing a search whose regexp was built from interactive user input. If you let bind that var and then call arbitrary code, I'd expect breakage. Stefan