From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 00:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 37819@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157144381726843 (code B ref -1); Sat, 19 Oct 2019 00:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2019 00:10:17 +0000 Received: from localhost ([127.0.0.1]:51696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLcK1-0006yt-50 for submit@debbugs.gnu.org; Fri, 18 Oct 2019 20:10:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:49089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLcJy-0006yj-EX for submit@debbugs.gnu.org; Fri, 18 Oct 2019 20:10:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38556) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLcJx-0007H3-Ip for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:10:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLcJw-00069d-Ol for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:10:13 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:40326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLcJw-00069X-IC for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 20:10:12 -0400 Received: by mail-pf1-f172.google.com with SMTP id x127so4803384pfb.7 for ; Fri, 18 Oct 2019 17:10:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=T8/vxcyUk5AzOZzVBEildQskAlxOM5nV2XB0gajRPwc=; b=fklIZ1zaII6L1PeoqowXCOsstmut+aDnfKHpu6v7Feu54klcSKoHmBlnfEHzQDCay2 WOqbRShbXoAhu4NqJlk1mYQK4uskDqP+b80CrKYpyUgYhJkPdfQ1HXRepxmiQLRhNAb+ TCrhvCKJ00L4kcK3HuogGElCILsxyxPu29El8CGeWnbhe2Sdwr5r3au95m+zVazpfV7n NN3gg7EUCpPro1aAF1+eBzFZpO0XSr7UPROtelz9LS9eUfVn+udsX03+NlM7AcSrjfS6 2nLQzXaKdGZVkEdEhCARvMKkZBTUBKmnB+hxALfW4btie0ZZTGBWORl5lUPGiqUn2K2P ZI5g== X-Gm-Message-State: APjAAAVxy84UJ/ktzGPx/ZgZJy74FZjR/9RSoDJL11iD/dDl4O/e8Toq QCSwGpmI2uDyL+D4YQenwBKdoOQ7LkLkrLdgdl/cuA== X-Google-Smtp-Source: APXvYqwT1eiaHlyai0mNmxJppijBRE9Tt+XDnZfOcRBlvnM8z/zr5ZeJv0nheA+IdPSKTY7KEd+N2vBTGYcq2IrcR8c= X-Received: by 2002:a63:4046:: with SMTP id n67mr11946665pga.200.1571443810745; Fri, 18 Oct 2019 17:10:10 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sat, 19 Oct 2019 02:09:59 +0200 Message-ID: Content-Type: multipart/mixed; boundary="0000000000001fe2f005953846eb" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.210.172 X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --0000000000001fe2f005953846eb Content-Type: text/plain; charset="UTF-8" I suspect that 'load-dangerous-libraries' is largely irrelevant nowadays. Is this correct? If yes, here is a patch which would ignore it and declare it obsolete. Best regards, Stefan Kangas --0000000000001fe2f005953846eb Content-Type: application/octet-stream; name="0001-Make-load-dangerous-libraries-obsolete.patch" Content-Disposition: attachment; filename="0001-Make-load-dangerous-libraries-obsolete.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k1wt20xu0 RnJvbSBjOTM4ZWJlNzVhNTk4ZjhjMjcyMGQ4ZDNiY2NhZGFhN2QyMTRhYjgwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5rYW5nYXNAZ21haWwuY29t PgpEYXRlOiBTYXQsIDE5IE9jdCAyMDE5IDAyOjA1OjUwICswMjAwClN1YmplY3Q6IFtQQVRDSF0g TWFrZSAnbG9hZC1kYW5nZXJvdXMtbGlicmFyaWVzJyBvYnNvbGV0ZQoKKiBsaXNwL3N1YnIuZWwg KGxvYWQtZGFuZ2Vyb3VzLWxpYnJhcmllcyk6IERlY2xhcmUgb2Jzb2xldGUuCiogc3JjL2xyZWFk LmMgKEZsb2FkKTogSWdub3JlIGl0cyB2YWx1ZS4KKHN5bXNfb2ZfbHJlYWQpOiBVcGRhdGUgZG9j IHN0cmluZyBvZiAnYnl0ZWNvbXAtdmVyc2lvbi1yZWdleHAnIHRvIG5vdApyZWZlciB0byBpdC4K KiBkb2MvZW1hY3MvYnVpbGRpbmcudGV4aSAoTGlzcCBMaWJyYXJp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gdmVyc2lvblxcfGJ5dGVjb21w IHZlcnNpb24gRlNGXFwpIik7CiAKLS0gCjIuMjMuMAoK --0000000000001fe2f005953846eb-- From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.157146663022391 (code B ref 37819); Sat, 19 Oct 2019 06:31:01 +0000 Received: (at 37819) by debbugs.gnu.org; 19 Oct 2019 06:30:30 +0000 Received: from localhost ([127.0.0.1]:51822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLiFy-0005p4-5Q for submit@debbugs.gnu.org; Sat, 19 Oct 2019 02:30:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLiFw-0005on-BE for 37819@debbugs.gnu.org; Sat, 19 Oct 2019 02:30:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iLiFr-0005UF-72; Sat, 19 Oct 2019 02:30:23 -0400 Received: from [176.228.60.248] (port=4829 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iLiFq-0007Wv-G3; Sat, 19 Oct 2019 02:30:22 -0400 Date: Sat, 19 Oct 2019 09:30:12 +0300 Message-Id: <8336fp8cy3.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Stefan Kangas on Sat, 19 Oct 2019 02:09:59 +0200) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Kangas > Date: Sat, 19 Oct 2019 02:09:59 +0200 > > I suspect that 'load-dangerous-libraries' is largely irrelevant > nowadays. Is this correct? If yes, here is a patch which would > ignore it and declare it obsolete. What is the purpose of declaring this obsolete? I'd argue we should keep this "forever", since it can never do any harm, and sometimes might do an important job. From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 08:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 37819@debbugs.gnu.org, Stefan Kangas Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.157147402619350 (code B ref 37819); Sat, 19 Oct 2019 08:34:02 +0000 Received: (at 37819) by debbugs.gnu.org; 19 Oct 2019 08:33:46 +0000 Received: from localhost ([127.0.0.1]:51924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLkBF-000522-Sc for submit@debbugs.gnu.org; Sat, 19 Oct 2019 04:33:46 -0400 Received: from quimby.gnus.org ([80.91.231.51]:46828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLkBE-00051q-6F for 37819@debbugs.gnu.org; Sat, 19 Oct 2019 04:33:44 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLkBA-0003fw-GP; Sat, 19 Oct 2019 10:33:43 +0200 From: Lars Ingebrigtsen References: <8336fp8cy3.fsf@gnu.org> Date: Sat, 19 Oct 2019 10:33:40 +0200 In-Reply-To: <8336fp8cy3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Oct 2019 09:30:12 +0300") Message-ID: <87y2xhgmmz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> I suspect that 'load-dangerous-libraries' is largely irrelevant >> nowadays. Is this correct? If yes, here is a patch which would >> ignore it and declare it obsolete. > > What is the purpose of de [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> I suspect that 'load-dangerous-libraries' is largely irrelevant >> nowadays. Is this correct? If yes, here is a patch which would >> ignore it and declare it obsolete. > > What is the purpose of declaring this obsolete? I'd argue we should > keep this "forever", since it can never do any harm, and sometimes > might do an important job. The patch just makes Emacs refuse to load .elc files compiled by XEmacs permanently, so it looks like the right thing to me. But perhaps for Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.157148615413162 (code B ref 37819); Sat, 19 Oct 2019 11:56:02 +0000 Received: (at 37819) by debbugs.gnu.org; 19 Oct 2019 11:55:54 +0000 Received: from localhost ([127.0.0.1]:52046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLnKs-0003QE-3t for submit@debbugs.gnu.org; Sat, 19 Oct 2019 07:55:54 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:41824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLnKq-0003Q2-HC for 37819@debbugs.gnu.org; Sat, 19 Oct 2019 07:55:52 -0400 Received: by mail-pl1-f173.google.com with SMTP id t10so4158249plr.8 for <37819@debbugs.gnu.org>; Sat, 19 Oct 2019 04:55:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fviqVy5uVaXI93rD9JUTdp+ubwcW/0R8TtF8N0GUNmU=; b=RIDRtnC/8h+Ula5v6rn1CZQy/dtgStlIiBQEeGoM7iECLmTGX8PrdiEGEXWz6q3RAe K4h5Xk8wvppBzFwD0dVKEzH4aLD0V8ezaVbKXoLgDa07zVTLrTpIsmvVT181HdCvDzZc koSnJy2BPEZSHl68MQVyM+RV7mf02kx6T9fJn3mqGcNCiJ3S7rY9h/1vPe21ZYs+1edV ZoZWEGk3vL/rBz2KUzNqPSOW7NZqfddqrSq6rrctfIZ6Z4w954EOnO27Z3XRib3cT4Wz tbMOxCLwWMXp5QIVeKuQkAt3wt3HDK3P5XZ/UAKbp+UITrpqBaNApja9O/Swm3cZedrX 9u8g== X-Gm-Message-State: APjAAAVSAv1TEczgWzvEfAFReG4DcPK7gmT0/PtxAQZJ7kGEYpC6iX2a rk5dqKdiy0KuYUYwjGVjUGWU18MYlJu7Ek4rGXY= X-Google-Smtp-Source: APXvYqwiQJMB9tbwlXEFYhZfLNvLDPV7aFbXj9B5RSjTuCyqF34q5KWwWHPyK//9vWq0hy/Oz7k7VX+BeX1mMWj/gyI= X-Received: by 2002:a17:902:d888:: with SMTP id b8mr15187126plz.259.1571486146582; Sat, 19 Oct 2019 04:55:46 -0700 (PDT) MIME-Version: 1.0 References: <8336fp8cy3.fsf@gnu.org> <87y2xhgmmz.fsf@gnus.org> In-Reply-To: <87y2xhgmmz.fsf@gnus.org> From: Stefan Kangas Date: Sat, 19 Oct 2019 13:55:35 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Lars Ingebrigtsen writes: > Eli Zaretskii writes: > > >> I suspect that 'load-dangerous-libraries' is largely irrelevant > >> nowadays. Is this correct? If yes, here is a patch which would > >> ignore it and declare it obsolete. > > > > What is the purpose of declaring this obsolete? I'd argue we should > > keep this "forever", since it can never do any harm, and sometimes > > might do an important job. > > The patch just makes Emacs refuse to load .elc files compiled by XEmacs > permanently, so it looks like the right thing to me. That is my understanding too. The use-case of loading XEmacs byte code is, I think, not very relevant. Is it used for anything else? If yes, I think we should change the documentation to discuss that instead. If no, I believe making it obsolete makes sense. > But perhaps for Emacs 28. I have nothing against that. (We'd also have to announce this in NEWS; I didn't do that yet.) Best regards, Stefan Kangas From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jan 2020 06:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.157924235025997 (code B ref 37819); Fri, 17 Jan 2020 06:26:02 +0000 Received: (at 37819) by debbugs.gnu.org; 17 Jan 2020 06:25:50 +0000 Received: from localhost ([127.0.0.1]:38773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isL4k-0006lA-Rl for submit@debbugs.gnu.org; Fri, 17 Jan 2020 01:25:50 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:38696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isL4g-0006kv-J2 for 37819@debbugs.gnu.org; Fri, 17 Jan 2020 01:25:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gn4rmtzg0jJpqHfMh5rzNlKA6nlaxGx4Kmab3BA3+9Y=; b=h17Q15JGl2odvk3jcd64zs1rIC wU88HhqaAfr9EvF/T+V8eaCreP8ay/EwthOPucRajxbxRGTwwu+uhF4eowUdehQgHpeOyAlllOIhw 2mz6F/uRzIDON2wAWpbZRVqSeQtjUkNie3Y4cXIVManRBrivaJk/ecwne9d2u4yEiiODrRpaWHJkj ckRLsNtLF/JU03EI0KI+c8OIB9Ipd8q0gtdRSwDcNXy+/gUSlMmYO1YubvhxCO8yRxXyAXzmsO52z jr4FZAMXlkh4RCfcvRfktoQ5KVrHJFqvpZMBZSIYY1ED55H22hc1jh4J6BC0TTMonBEfC1sV+58ay hUrvK02w==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:37390 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1isL4a-001kM8-Lw; Fri, 17 Jan 2020 01:25:36 -0500 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Sat, 19 Oct 2019 13:55:35 +0200") References: <8336fp8cy3.fsf@gnu.org> <87y2xhgmmz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Fri, 17 Jan 2020 07:25:34 +0100 Message-ID: <87o8v21twh.fsf@marxist.se> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Stefan Kangas writes: > Lars Ingebrigtsen writes: > >> Eli Zaretskii writes: >> >> >> I suspect that 'load-dangerous-libraries' is largely irrelevant >> >> nowadays. Is this correct? If yes, here is a patch which would >> >> ignore it and declare it obsolete. >> > >> > What is the purpose of declaring this obsolete? I'd argue we should >> > keep this "forever", since it can never do any harm, and sometimes >> > might do an important job. >> >> The patch just makes Emacs refuse to load .elc files compiled by XEmacs >> permanently, so it looks like the right thing to me. > > That is my understanding too. The use-case of loading XEmacs byte > code is, I think, not very relevant. > > Is it used for anything else? If yes, I think we should change the > documentation to discuss that instead. If no, I believe making it > obsolete makes sense. > >> But perhaps for Emacs 28. > > I have nothing against that. (We'd also have to announce this in > NEWS; I didn't do that yet.) I have attached an updated patch with a NEWS entry. Does anyone have any objections to installing this on master? Best regards, Stefan Kangas --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Make-load-dangerous-libraries-obsolete-Bug-37819.patch >From c428ffb949a8cf786e61afb24b8d4bb992049b95 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 19 Oct 2019 02:05:50 +0200 Subject: [PATCH] Make 'load-dangerous-libraries' obsolete (Bug#37819) * lisp/subr.el (load-dangerous-libraries): Declare obsolete. * src/lread.c (Fload): Ignore its value. (syms_of_lread): Update doc string of 'bytecomp-version-regexp' to not refer to it. * doc/emacs/building.texi (Lisp Libraries): Remove its documentation. --- doc/emacs/building.texi | 7 ------- etc/NEWS | 5 +++++ lisp/subr.el | 3 +++ src/lread.c | 7 ++----- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 02f18865f3..272b08d08e 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -1528,13 +1528,6 @@ Lisp Libraries prefix being completed. To disable this feature, change the variable @code{help-enable-completion-autoload} to @code{nil}. -@vindex load-dangerous-libraries -@cindex Lisp files byte-compiled by XEmacs - By default, Emacs refuses to load compiled Lisp files which were -compiled with XEmacs, a modified version of Emacs---they can cause -Emacs to crash. Set the variable @code{load-dangerous-libraries} to -@code{t} if you want to try loading them. - @node Lisp Eval @section Evaluating Emacs Lisp Expressions @cindex Emacs Lisp mode diff --git a/etc/NEWS b/etc/NEWS index f5740c8b3c..6d5cac333d 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -67,6 +67,11 @@ Formerly it made an exception for integer components of SOA records, because SOA serial numbers can exceed fixnum ranges on 32-bit platforms. Emacs now supports bignums so this old glitch is no longer needed. +** The 'load-dangerous-libraries' variable is now obsolete. +It was used to allow loading Lisp libraries compiled by XEmacs, a +modified version by Emacs which is no longer actively maintained. +This is no longer supported, and setting this variable has no effect. + * Lisp Changes in Emacs 28.1 diff --git a/lisp/subr.el b/lisp/subr.el index 0e09228f6f..8f73614d0a 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1621,6 +1621,9 @@ log10 (defvaralias 'messages-buffer-max-lines 'message-log-max) (define-obsolete-variable-alias 'inhibit-null-byte-detection 'inhibit-nul-byte-detection "27.1") +(make-obsolete-variable 'load-dangerous-libraries + "no longer used." "27.1") + ;;;; Alternate names for functions - these are not being phased out. diff --git a/src/lread.c b/src/lread.c index 290b3d3d64..3ba13bd1ec 100644 --- a/src/lread.c +++ b/src/lread.c @@ -1337,10 +1337,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0, && ! (version = safe_to_load_version (fd))) { safe_p = 0; - if (!load_dangerous_libraries) - error ("File `%s' was not compiled in Emacs", SDATA (found)); - else if (!NILP (nomessage) && !force_load_messages) - message_with_string ("File `%s' not compiled in Emacs", found, 1); + error ("File `%s' was not compiled in Emacs", SDATA (found)); } compiled = 1; @@ -5022,7 +5019,7 @@ syms_of_lread (void) When Emacs loads a compiled Lisp file, it reads the first 512 bytes from the file, and matches them against this regular expression. When the regular expression matches, the file is considered to be safe -to load. See also `load-dangerous-libraries'. */); +to load. */); Vbytecomp_version_regexp = build_pure_c_string ("^;;;.\\(in Emacs version\\|bytecomp version FSF\\)"); -- 2.20.1 --=-=-=-- From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Jan 2020 13:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: Eli Zaretskii , 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.157969937826556 (code B ref 37819); Wed, 22 Jan 2020 13:23:02 +0000 Received: (at 37819) by debbugs.gnu.org; 22 Jan 2020 13:22:58 +0000 Received: from localhost ([127.0.0.1]:49206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuFyD-0006uG-Vs for submit@debbugs.gnu.org; Wed, 22 Jan 2020 08:22:58 -0500 Received: from quimby.gnus.org ([95.216.78.240]:59956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iuFyD-0006u5-5X for 37819@debbugs.gnu.org; Wed, 22 Jan 2020 08:22:57 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iuFy5-0003Oz-5Z; Wed, 22 Jan 2020 14:22:51 +0100 From: Lars Ingebrigtsen References: <8336fp8cy3.fsf@gnu.org> <87y2xhgmmz.fsf@gnus.org> <87o8v21twh.fsf@marxist.se> Date: Wed, 22 Jan 2020 14:22:48 +0100 In-Reply-To: <87o8v21twh.fsf@marxist.se> (Stefan Kangas's message of "Fri, 17 Jan 2020 07:25:34 +0100") Message-ID: <875zh3wrpz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: > Does anyone have any objections to installing this on master? Looks good to me. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: marxist.se] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > Does anyone have any objections to installing this on master? Looks good to me. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jan 2020 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.157989499712745 (code B ref 37819); Fri, 24 Jan 2020 19:44:01 +0000 Received: (at 37819) by debbugs.gnu.org; 24 Jan 2020 19:43:17 +0000 Received: from localhost ([127.0.0.1]:54785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv4rN-0003JU-BK for submit@debbugs.gnu.org; Fri, 24 Jan 2020 14:43:17 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:52610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv4rL-0003JF-E6 for 37819@debbugs.gnu.org; Fri, 24 Jan 2020 14:43:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:References:Message-ID:Date: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=E2m10wNDXJKNXU3QoHAKbH4p+Czxxhnl3LUfsGq6Anw=; b=D4nWXg9cznQG9a5EDdkcAYzEEN +FAbc/pVdB5WV4csDHD/trpHcpGfaM+DUlEbB/TEO713q27ceVXVL+J1dFyU1cBE/LmeU+Z9XtGVv /cxQtG5aXX6grhS74ncrLc9U2wwwXLVgboBpsGxHD7fMobU4XpAqCL+YPV5Ls9/5CHe2psgvFJQHY qtjIqcFBnnqkCbed1XtvZ0NdO2uzN0sWbmMWgd8uzMGjpbp9xP36L/t4Ea/zv+FpD9tqxvYXEiHXm QeGLigjHXCtwi+PQq+c9eSrP8CFngxCWQzjHtv+hrINVWQp/0w9d3bRPnOGqhCXGTu1S/+ULebbn2 hhn+dF2g==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:50970 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iv4rF-001hcP-GI; Fri, 24 Jan 2020 14:43:09 -0500 From: Stefan Kangas In-Reply-To: <875zh3wrpz.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 22 Jan 2020 14:22:48 +0100") Date: Thu, 23 Jan 2020 18:12:48 +0100 Message-ID: <87pnfaf65r.fsf@marxist.se> References: <8336fp8cy3.fsf@gnu.org> <87y2xhgmmz.fsf@gnus.org> <87o8v21twh.fsf@marxist.se> <875zh3wrpz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > Stefan Kangas writes: > >> Does anyone have any objections to installing this on master? > > Looks good to me. I realized that we can also remove some now extraneous warnings that will never happen with the patch (since Fload errors out before them). Please find attached an updated patch. Best regards, Stefan Kangas --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Make-load-dangerous-libraries-obsolete-Bug-37819.patch >From 46c857bdb2ee9234fe1a241b49168ee11a31315b Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 19 Oct 2019 02:05:50 +0200 Subject: [PATCH] Make 'load-dangerous-libraries' obsolete (Bug#37819) * lisp/subr.el (load-dangerous-libraries): Declare obsolete. * src/lread.c (Fload): Ignore its value. (syms_of_lread): Update doc string of 'bytecomp-version-regexp' to not refer to it. * doc/emacs/building.texi (Lisp Libraries): Remove its documentation. --- doc/emacs/building.texi | 7 ------- etc/NEWS | 5 +++++ lisp/subr.el | 3 +++ src/lread.c | 23 +++++------------------ 4 files changed, 13 insertions(+), 25 deletions(-) diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 02f18865f3..272b08d08e 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -1528,13 +1528,6 @@ Lisp Libraries prefix being completed. To disable this feature, change the variable @code{help-enable-completion-autoload} to @code{nil}. -@vindex load-dangerous-libraries -@cindex Lisp files byte-compiled by XEmacs - By default, Emacs refuses to load compiled Lisp files which were -compiled with XEmacs, a modified version of Emacs---they can cause -Emacs to crash. Set the variable @code{load-dangerous-libraries} to -@code{t} if you want to try loading them. - @node Lisp Eval @section Evaluating Emacs Lisp Expressions @cindex Emacs Lisp mode diff --git a/etc/NEWS b/etc/NEWS index f5740c8b3c..1c2c43e2a6 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -67,6 +67,11 @@ Formerly it made an exception for integer components of SOA records, because SOA serial numbers can exceed fixnum ranges on 32-bit platforms. Emacs now supports bignums so this old glitch is no longer needed. +** The 'load-dangerous-libraries' variable is now obsolete. +It was used to allow loading Lisp libraries compiled by XEmacs, a +modified version of Emacs which is no longer actively maintained. +This is no longer supported, and setting this variable has no effect. + * Lisp Changes in Emacs 28.1 diff --git a/lisp/subr.el b/lisp/subr.el index 0e09228f6f..8f73614d0a 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1621,6 +1621,9 @@ log10 (defvaralias 'messages-buffer-max-lines 'message-log-max) (define-obsolete-variable-alias 'inhibit-null-byte-detection 'inhibit-nul-byte-detection "27.1") +(make-obsolete-variable 'load-dangerous-libraries + "no longer used." "27.1") + ;;;; Alternate names for functions - these are not being phased out. diff --git a/src/lread.c b/src/lread.c index 290b3d3d64..c7de4cc426 100644 --- a/src/lread.c +++ b/src/lread.c @@ -985,9 +985,7 @@ #define UPDATE_BEG_END_STATE(ch) \ /* Value is a version number of byte compiled code if the file associated with file descriptor FD is a compiled Lisp file that's - safe to load. Only files compiled with Emacs are safe to load. - Files compiled with XEmacs can lead to a crash in Fbyte_code - because of an incompatible change in the byte compiler. */ + safe to load. Only files compiled with Emacs are safe to load. */ static int safe_to_load_version (int fd) @@ -1153,7 +1151,6 @@ DEFUN ("load", Fload, Sload, 1, 5, 0, /* True means we are loading a compiled file. */ bool compiled = 0; Lisp_Object handler; - bool safe_p = 1; const char *fmode = "r" FOPEN_TEXT; int version; @@ -1336,11 +1333,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0, if (version < 0 && ! (version = safe_to_load_version (fd))) { - safe_p = 0; - if (!load_dangerous_libraries) - error ("File `%s' was not compiled in Emacs", SDATA (found)); - else if (!NILP (nomessage) && !force_load_messages) - message_with_string ("File `%s' not compiled in Emacs", found, 1); + error ("File `%s' was not compiled in Emacs", SDATA (found)); } compiled = 1; @@ -1447,10 +1440,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0, if (NILP (nomessage) || force_load_messages) { - if (!safe_p) - message_with_string ("Loading %s (compiled; note unsafe, not compiled in Emacs)...", - file, 1); - else if (is_module) + if (is_module) message_with_string ("Loading %s (module)...", file, 1); else if (!compiled) message_with_string ("Loading %s (source)...", file, 1); @@ -1510,10 +1500,7 @@ DEFUN ("load", Fload, Sload, 1, 5, 0, if (!noninteractive && (NILP (nomessage) || force_load_messages)) { - if (!safe_p) - message_with_string ("Loading %s (compiled; note unsafe, not compiled in Emacs)...done", - file, 1); - else if (is_module) + if (is_module) message_with_string ("Loading %s (module)...done", file, 1); else if (!compiled) message_with_string ("Loading %s (source)...done", file, 1); @@ -5022,7 +5009,7 @@ syms_of_lread (void) When Emacs loads a compiled Lisp file, it reads the first 512 bytes from the file, and matches them against this regular expression. When the regular expression matches, the file is considered to be safe -to load. See also `load-dangerous-libraries'. */); +to load. */); Vbytecomp_version_regexp = build_pure_c_string ("^;;;.\\(in Emacs version\\|bytecomp version FSF\\)"); -- 2.20.1 --=-=-=-- From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2020 13:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: Eli Zaretskii , 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.158211798827004 (code B ref 37819); Wed, 19 Feb 2020 13:14:02 +0000 Received: (at 37819) by debbugs.gnu.org; 19 Feb 2020 13:13:08 +0000 Received: from localhost ([127.0.0.1]:41759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4PA3-00071U-UT for submit@debbugs.gnu.org; Wed, 19 Feb 2020 08:13:08 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j4PA2-00070x-TN for 37819@debbugs.gnu.org; Wed, 19 Feb 2020 08:13:07 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4P9u-0006IX-JM; Wed, 19 Feb 2020 14:13:01 +0100 From: Lars Ingebrigtsen References: <8336fp8cy3.fsf@gnu.org> <87y2xhgmmz.fsf@gnus.org> <87o8v21twh.fsf@marxist.se> <875zh3wrpz.fsf@gnus.org> <87pnfaf65r.fsf@marxist.se> Date: Wed, 19 Feb 2020 14:12:57 +0100 In-Reply-To: <87pnfaf65r.fsf@marxist.se> (Stefan Kangas's message of "Thu, 23 Jan 2020 18:12:48 +0100") Message-ID: <87imk23eli.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: >>> Does anyone have any objections to installing this on master? >> >> Looks good to me. > > I realized that we can also remove some now extraneous warnings that > will never happen with the patch (s [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: >>> Does anyone have any objections to installing this on master? >> >> Looks good to me. > > I realized that we can also remove some now extraneous warnings that > will never happen with the patch (since Fload errors out before them). > Please find attached an updated patch. Looks even better. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 11:39:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37819: [PATCH] Make 'load-dangerous-libraries' obsolete Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Mar 2020 00:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Lars Ingebrigtsen Cc: Eli Zaretskii , 37819@debbugs.gnu.org Received: via spool by 37819-submit@debbugs.gnu.org id=B37819.158302203214691 (code B ref 37819); Sun, 01 Mar 2020 00:21:02 +0000 Received: (at 37819) by debbugs.gnu.org; 1 Mar 2020 00:20:32 +0000 Received: from localhost ([127.0.0.1]:35583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8CLP-0003or-Vt for submit@debbugs.gnu.org; Sat, 29 Feb 2020 19:20:32 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:58644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8CLO-0003oa-0K; Sat, 29 Feb 2020 19:20:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=31jkN7Bg5XwEZS995e0PU6H2KFcvReYHjcS7G7sMsJ0=; b=KCqULFi+Xhc/a4+Rb6WItJJPsu nIC3EnUQIQCyql8DfZ/lIKd4NemMUE7JUAmFtlI8G5hXcfNap6vPstvIUJmaSl6Hq2lbkQyTlG51N 4LN/khhopSq9EGGnpsKnDr61xuzVilsm3wuF0x1ACxz+GNugpVKAipvST68RN3+gnfugsYKS06XlZ Kim/9vT3T2spfwWKyHcaybjP2t3Q8GLZKqiAo1IUNxg+0cc64Du0FKevQXMb6iCzKxuwjGXevz2l1 LpxB3F5vox6Ga1Zk3YyzkIG8qrAjLdlPvmAi8/Y7ndAuTeRdyGki4MVbgSPZmM8o0rw7aH73HaZfj 4adwjiFg==; Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:60394 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1j8CLI-001kVS-Ed; Sat, 29 Feb 2020 19:20:24 -0500 From: Stefan Kangas In-Reply-To: <87imk23eli.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 19 Feb 2020 14:12:57 +0100") References: <8336fp8cy3.fsf@gnu.org> <87y2xhgmmz.fsf@gnus.org> <87o8v21twh.fsf@marxist.se> <875zh3wrpz.fsf@gnus.org> <87pnfaf65r.fsf@marxist.se> <87imk23eli.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Sun, 01 Mar 2020 01:20:22 +0100 Message-ID: <87k14553jt.fsf@stefankangas.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 37819 28.1 thanks Lars Ingebrigtsen writes: > Stefan Kangas writes: > >>>> Does anyone have any objections to installing this on master? >>> >>> Looks good to me. >> >> I realized that we can also remove some now extraneous warnings that >> will never happen with the patch (since Fload errors out before them). >> Please find attached an updated patch. > > Looks even better. :-) Thanks, now pushed to master as commit e98ee8ddac. Best regards, Stefan Kangas