From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#74879: 30.0.92; trusted-content-p and trusted-files cannot be used for non-file buffers Date: Mon, 16 Dec 2024 15:32:31 +0200 Message-ID: <643a50f9-2128-405b-ae5b-114990b3dfc2@gutov.dev> References: <87ed29ixu8.fsf@daniel-mendler.de> <875xnlfdzi.fsf@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32540"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Stefan Monnier , Stefan Kangas To: Daniel Mendler , 74879@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 14:33:37 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 1tNBE7-0008Fu-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 14:33:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNBDq-0004rE-1n; Mon, 16 Dec 2024 08:33:18 -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 1tNBDb-0004qu-I1 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 08:33:06 -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 1tNBDa-0002jo-I3 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 08:33:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=AkRtIKmFDpTaKPAR80LOjZppfoygEOtOTpAjN0FbS48=; b=abFs+F+sIxEdX5B1fdWJ8rDXs4N7AXnYO0JAXG+qnrp/A7Rms3OK8nsVrYwkSQ3WpMWTSS0vQhNV3eBOfY0kPmlR3bFwK56x8cFVsUY1eDyDt10V0291CWPKhDfXd0l/4gO3RkSzZhZDEM4B9bHu069K4YbP82UuNxR32FMJZ2JkF14TQTHVdA1fkNuRdgojnE5kFWizSI/lQOfhaOQyffONWy2EqXPhmVW5kkZfK5kaA11vbK9FiQS8CQXNUNnI9nCb+s8yU7lE8znaac9eNwJGb/LgCnei3h/Wv+yNaQZCil9weZIYa9TWVd3VvtsvIA+AvfrwB+UMtdudXmLFTA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNBDa-0001Sk-At for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 08:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 13:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74879 X-GNU-PR-Package: emacs Original-Received: via spool by 74879-submit@debbugs.gnu.org id=B74879.17343559655583 (code B ref 74879); Mon, 16 Dec 2024 13:33:02 +0000 Original-Received: (at 74879) by debbugs.gnu.org; 16 Dec 2024 13:32:45 +0000 Original-Received: from localhost ([127.0.0.1]:53983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNBDI-0001Ry-Hi for submit@debbugs.gnu.org; Mon, 16 Dec 2024 08:32:44 -0500 Original-Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]:60981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNBDG-0001Ri-1Y for 74879@debbugs.gnu.org; Mon, 16 Dec 2024 08:32:43 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 3362E2540161; Mon, 16 Dec 2024 08:32:36 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 16 Dec 2024 08:32:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1734355956; x=1734442356; bh=AkRtIKmFDpTaKPAR80LOjZppfoygEOtOTpAjN0FbS48=; b= Eqtd9+eVeRrax2iAF8etHE+lxk5HqiMFJ4WNrC+ikUcxmdgMB9XJzL8Gdh58vG+r T7m2TTGVbLyNhj5KElP2eV/coiy3sD2B1RXzo4SvNIHOkvgJKsa0JxOe2+oz+IWd 1tMgNBCf8uICuzPMvIF2ypJ+eoBMk71K2fz/KGwapihAuCnaRoSR0JwMRPDLmNeA iRpQuOPClpviDSbSAE5eNHrvezZpuFLUTEOQvkqReJIXArLX2E+0cHWGJcsX2gsQ wXPuT1XUO9wFELqsdqxxGSXCHm6rJEqHd2iZbDhMewfu8u2EnOYszkT7v+oZPDYd rIxgOrGIqFYdEOKgTV30Kg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734355956; x= 1734442356; bh=AkRtIKmFDpTaKPAR80LOjZppfoygEOtOTpAjN0FbS48=; b=O DcUJUPsIM9/f+qWa1QdulwbhqTZ6vXP8QqWUyrSiuabDaK17e76gpwrCHnhRvRUd D+rdDijUoAw1dXkfeU2zNW2BxrYDcoeNuqhPTZOr13qxs+ZVbJZVzJr6M4NMT7QD wd4cA7OWmUSXJQ4UEKIlLng6PUeeGcKv+E/vC3cpy47v+gMOiO2iVBnR7PYVukxF 4u24Gjh53+KM5TesANTCyg+2G0SvNM3NgG0pooeO7PYfFofrgO/ntBqTzKPSxeY+ HFwd4xsauJJfZnGC5B3nJPmGws5famJTGptI6nqroGzihUTHll4AkAldICpjXNFs taoj1oyd4FZRCEbnwZVqQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrleefgdehfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedt vddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep gedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgrihhlsegurghnihgvlhdqmh gvnhgulhgvrhdruggvpdhrtghpthhtohepjeegkeejleesuggvsggsuhhgshdrghhnuhdr ohhrghdprhgtphhtthhopehmohhnnhhivghrsehirhhordhumhhonhhtrhgvrghlrdgtrg dprhgtphhtthhopehsthgvfhgrnhhkrghnghgrshesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Dec 2024 08:32:33 -0500 (EST) Content-Language: en-US In-Reply-To: <875xnlfdzi.fsf@daniel-mendler.de> 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:297169 Archived-At: On 15/12/2024 12:16, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > For example in my GNU ELPA Corfu package the plan was to check > `(trusted-content-p)' when starting auto completion. Shouldn't that be done in the c-a-p-f function? >To be clear - Corfu > is safe by default, since auto completion is disabled by default. > However many people enable auto completion unconditionally in all > buffers. Having completion invoked manually doesn't really ensure that the user knows about the odds of it running code from the current file. Some languages do that, some don't, and the newbie Lisp users have little idea of what macro expansion in completion entails.