From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 15:35:45 2021 Received: (at submit) by debbugs.gnu.org; 18 Jan 2021 20:35:45 +0000 Received: from localhost ([127.0.0.1]:48555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1bFY-0006W3-Nm for submit@debbugs.gnu.org; Mon, 18 Jan 2021 15:35:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:34178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1bFX-0006Vw-4p for submit@debbugs.gnu.org; Mon, 18 Jan 2021 15:35:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1bFW-0003cw-Tm for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2021 15:35:42 -0500 Received: from lucaswerkmeister.de ([46.4.66.178]:47942 helo=mail.lucaswerkmeister.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1bFR-0001Qn-4u for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2021 15:35:42 -0500 Received: from localhost.localdomain (ip5f5ae923.dynamic.kabel-deutschland.de [95.90.233.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@lucaswerkmeister.de) by mail.lucaswerkmeister.de (Postfix) with ESMTPSA id 3D15A1200A84; Mon, 18 Jan 2021 20:35:33 +0000 (UTC) Authentication-Results: mail.lucaswerkmeister.de; dmarc=fail (p=none dis=none) header.from=lucaswerkmeister.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucaswerkmeister.de; s=mail; t=1611002133; bh=J7CncGOvgSe2VZEyeL5lwXxN7JeM+nWjQ1sENuSvu8Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From:Reply-To:Subject:Date:To:Cc: In-Reply-To:References:Message-Id:Sender:Content-Type: Content-Transfer-Encoding:Content-Disposition:Mime-Version; b=vROoTh0UxStqgXUlWI97x6RoHK0iSnhX6TzqNM4dKsXCzPkPb44w0Je9CVy35fCJI WamKyTBYM9WQyrLsRGwdvneNLyzCIbulwjfNgAgJ5AA5YEVqL/l/kW7305CLml9oRB ewV/TkUtgcW0A2GZ/5xOyDWOOtxHOAvK3gTHGLHU= From: Lucas Werkmeister To: bug-gnu-emacs@gnu.org Subject: [PATCH] Mark nxml-mode customs as safe Date: Mon, 18 Jan 2021 21:35:25 +0100 Message-Id: <20210118203525.49016-1-mail@lucaswerkmeister.de> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=46.4.66.178; envelope-from=mail@lucaswerkmeister.de; helo=mail.lucaswerkmeister.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Lucas Werkmeister 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.4 (--) * lisp/nxml/nxml-mode.el: Add :safe. --- Notes: This lets users customize nxml-mode variables more easily. For instance, systemd sets nxml-child-indent to 2 for its man/*.xml files; without this change, emacs prompts the user whether that value is safe or not. lisp/nxml/nxml-mode.el | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 5bc3049d90..0602943db2 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -54,26 +54,30 @@ nxml-char-ref-display-glyph-flag "Non-nil means display glyph following character reference. The glyph is displayed in face `nxml-glyph'." :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defcustom nxml-sexp-element-flag t "Non-nil means sexp commands treat an element as a single expression." :version "27.1" ; nil -> t :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defcustom nxml-slash-auto-complete-flag nil "Non-nil means typing a slash automatically completes the end-tag. This is used by `nxml-electric-slash'." :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defcustom nxml-child-indent 2 "Indentation for the children of an element relative to the start-tag. This only applies when the line or lines containing the start-tag contains nothing else other than that start-tag." :group 'nxml - :type 'integer) + :type 'integer + :safe #'integerp) (defcustom nxml-attribute-indent 4 "Indentation for the attributes of an element relative to the start-tag. @@ -81,12 +85,14 @@ nxml-attribute-indent In other cases, the first attribute on one line is indented the same as the first attribute on the previous line." :group 'nxml - :type 'integer) + :type 'integer + :safe #'integerp) (defcustom nxml-bind-meta-tab-to-complete-flag t "Non-nil means to use nXML completion in \\[completion-at-point]." :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defcustom nxml-prefer-utf-16-to-utf-8-flag nil "Non-nil means prefer UTF-16 to UTF-8 when saving a buffer. @@ -94,7 +100,8 @@ nxml-prefer-utf-16-to-utf-8-flag and when its current `buffer-file-coding-system' specifies neither UTF-16 nor UTF-8." :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defcustom nxml-prefer-utf-16-little-to-big-endian-flag (eq system-type 'windows-nt) @@ -103,7 +110,8 @@ nxml-prefer-utf-16-little-to-big-endian-flag auto-detected. It may be relevant both when there is no encoding declaration and when the encoding declaration specifies `UTF-16'." :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defcustom nxml-default-buffer-file-coding-system nil "Default value for `buffer-file-coding-system' for a buffer for a new file. @@ -112,13 +120,15 @@ nxml-default-buffer-file-coding-system A buffer's `buffer-file-coding-system' affects what \\[nxml-insert-xml-declaration] inserts." :group 'nxml - :type 'coding-system) + :type 'coding-system + :safe #'coding-system-p) (defcustom nxml-auto-insert-xml-declaration-flag nil "Non-nil means automatically insert an XML declaration in a new file. The XML declaration is inserted using `nxml-insert-xml-declaration'." :group 'nxml - :type 'boolean) + :type 'boolean + :safe #'booleanp) (defface nxml-delimited-data '((t (:inherit font-lock-doc-face))) -- 2.30.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 22:47:44 2021 Received: (at 45969) by debbugs.gnu.org; 19 Jan 2021 03:47:44 +0000 Received: from localhost ([127.0.0.1]:48982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hzc-0003v7-1y for submit@debbugs.gnu.org; Mon, 18 Jan 2021 22:47:44 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hza-0003ut-1J for 45969@debbugs.gnu.org; Mon, 18 Jan 2021 22:47:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References: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=uUlrobNKdoXj7SaVx1OUZcwk0+FNfYP2YfG1aEo3+H4=; b=VQc81dMqsyTKYLXPKYeLUuzThy 6SVoXFsp1CsOPu3rIMTcPj4wDzQaBddr5QlwXwdts09SMyYzCnry63bUDlrlKNaMETSmefk1/qgJv EwaiYgjdq48MNxJAWaCQmEDetEVpiKF5j7scbw5G7fcSQtxa6Ex4jNKJGXHWPW5Xoqqk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1hzS-0002zz-0h; Tue, 19 Jan 2021 04:47:36 +0100 From: Lars Ingebrigtsen To: Lucas Werkmeister Subject: Re: bug#45969: [PATCH] Mark nxml-mode customs as safe References: <20210118203525.49016-1-mail@lucaswerkmeister.de> X-Now-Playing: The Durutti Column's _Without Mercy (4)_: "Silence" Date: Tue, 19 Jan 2021 04:47:32 +0100 In-Reply-To: <20210118203525.49016-1-mail@lucaswerkmeister.de> (Lucas Werkmeister's message of "Mon, 18 Jan 2021 21:35:25 +0100") Message-ID: <87mtx5r3jf.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: Lucas Werkmeister writes: > * lisp/nxml/nxml-mode.el: Add :safe. > --- > > Notes: > This lets users customize nxml-mode variables more easily. For > instance, systemd sets nxml-child-indent to 2 for its man/*.xml > files; with [...] 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-Debbugs-Envelope-To: 45969 Cc: 45969@debbugs.gnu.org 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 (-) Lucas Werkmeister writes: > * lisp/nxml/nxml-mode.el: Add :safe. > --- > > Notes: > This lets users customize nxml-mode variables more easily. For > instance, systemd sets nxml-child-indent to 2 for its man/*.xml > files; without this change, emacs prompts the user whether that > value is safe or not. Makes sense to me; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 22:47:49 2021 Received: (at control) by debbugs.gnu.org; 19 Jan 2021 03:47:49 +0000 Received: from localhost ([127.0.0.1]:48985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hzh-0003vQ-Ac for submit@debbugs.gnu.org; Mon, 18 Jan 2021 22:47:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hzf-0003v0-Cp for control@debbugs.gnu.org; Mon, 18 Jan 2021 22:47:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NdRS2mUxpbIY0nNk3LQF7/WVkJ04uKeayL2N55laAsg=; b=ISaRT7cmkyfPdA3A3bRm8KfuRs 0WPq9v+VBEpL1gAyByfkD1uGcKSBp1gwkc/ZBBE8foxi57sJFRIKTkWaFzTk03sv1rqex/fVCt2AM BrXq765XpLYyEIXsPlQyw/sYe0UBxu9KZChOk6pw36hwmb512KDvaEtqqF45BUpP6Z44=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1hzX-000307-Qx for control@debbugs.gnu.org; Tue, 19 Jan 2021 04:47:41 +0100 Date: Tue, 19 Jan 2021 04:47:38 +0100 Message-Id: <87lfcpr3j9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45969 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: tags 45969 fixed close 45969 28.1 quit 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-Debbugs-Envelope-To: control 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 (-) tags 45969 fixed close 45969 28.1 quit From unknown Sun Jun 22 00:22:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Feb 2021 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator