From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WHl4Gh3gvGXVAQEAe85BDQ:P1 (envelope-from ) for ; Fri, 02 Feb 2024 13:29:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WHl4Gh3gvGXVAQEAe85BDQ (envelope-from ) for ; Fri, 02 Feb 2024 13:29:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fRPVqn2c; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706876957; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vZI17mv+KQ4j682dvDPue5GQCLZlDFPPH+S3zlxbc8g=; b=FeW/6QJUOhrdqsXbwYMOvjTbqOuT1L1VTsnr3CdcwDPR795c5xMC/+5rbMMh30OVZ4x+lp OSVL3LRjwEAbvwogUb3gMX6iABH5zJgRx43RHGDwj0+AEfv4Xe92u+Ip+SELEtcsFgg379 uwGGx+/ZJzrFvePuaTuJuHc+Y02ADud2Hwnr+Vs5IOAe/QejnG7Tze5k/DZii7PuiPGwTZ CKg1yxcFhHhu83iM3/N6JTb34Z7W4JMmGP3eNc7VtXANbh47wddpquL/XUbcvg0vy2+ziZ ZnxhQKEYFsn0MmwLyznTWFd/YB5QoqSrbClUJkxXqVHixsmYvb2V9KyfY5xVwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fRPVqn2c; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706876957; a=rsa-sha256; cv=none; b=cLxGh0vBlRSHDZPAwm6f5e6zTeZvRpmHZoyznp4M91DPFc+VsRY6Dd1T+4cpmRGvRgXt+J EBS2p9Ptn+ICCj78A0Ln7Ck5LPuSmyMs6KyV/gJOa0qwUeinwMTwFo0DvewtoahB9NAFRy D6vheTEwsKeK7IEqrPp7VD8ZjlaEIJ/EIeK7tTf7fFIVXmJjCVlEsj0fFGhu5BUDU1s1ZW K/rTlJpBRmRgRA7KOUp0gYWre2TRRo2eYeuE4hiYJNacwdidgxbIptvmJGU+YG12vU/c4X kgGPceCV3gY8/jHP44luOKRRZBDEqp3EBIVPiI8TbyJ16VX1TTEuN9MGqYpskg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D115939D45 for ; Fri, 2 Feb 2024 13:29:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVsZe-0004Ly-MK; Fri, 02 Feb 2024 07:23:14 -0500 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 1rVsZc-0004LS-LU for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 07:23:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVsZa-0004LE-V5 for emacs-orgmode@gnu.org; Fri, 02 Feb 2024 07:23:12 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F3FD6240101 for ; Fri, 2 Feb 2024 13:23:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706876587; bh=vZI17mv+KQ4j682dvDPue5GQCLZlDFPPH+S3zlxbc8g=; h=MIME-Version:Content-Type:Date:From:To:Subject:Message-ID:From; b=fRPVqn2cWZmCCqL4vgc3yjSzqziG8ewLKxGl40TnOGrP5IgtZcJJQyI7NfSuVAq8J aIM6tOarSIySbdSMQvjZt0gq77vs9yL3fmj9eAFTmlU7k+ZLMlH01epQdnZAQe8JgQ 9l+lp6o++VXHEu3G5+lD2apyccK0YAXmAXMZuFquPbaoJCMiPFsRLWRDRzYt2s6dtP 5Pa54htMzFDVhsEPcJ8tsxvlYlKI59LWCqeDmq3mjqz3YQVkhavEvvrEZNtHv7fDue NY4BtPp13mlDQIOraZvTEOvGNqTA69/au4owFvcquYoBGg5HqqgYF4bbt6f0AoPawa iDD665dPujXQw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TRFKk3JC2z6trs; Fri, 2 Feb 2024 13:23:06 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_2cc10e5611c247568216608ff45458e5" Date: Fri, 02 Feb 2024 12:23:06 +0000 From: gerard.vermeulen@posteo.net To: Emacs orgmode , Ihor Radchenko Subject: [PATCH] lisp/ox-latex.el: make org-latex-prefer-user-labels safe file local Message-ID: <62f5f464178614c98b4bc7b8d8903afb@posteo.net> Received-SPF: pass client-ip=185.67.36.66; envelope-from=gerard.vermeulen@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.11 X-Migadu-Queue-Id: D115939D45 X-Spam-Score: -10.11 X-Migadu-Scanner: mx11.migadu.com X-TUID: UpcsW4xWVuhZ --=_2cc10e5611c247568216608ff45458e5 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi, I think that it is inconsistent that `org-latex-reference-command' is a safe file local variable while `org-latex-prefer-user-labels' is not (it makes no sense to set the first at file scope, while the second is nil at global scope). Furthermore, `org-html-prefer-user-labels' is also a safe file local variable. The attached patch fixes this. Regards -- Gerard --=_2cc10e5611c247568216608ff45458e5 Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=0001-lisp-ox-latex.el-make-org-latex-prefer-user-labels-s.patch Content-Disposition: attachment; filename=0001-lisp-ox-latex.el-make-org-latex-prefer-user-labels-s.patch; size=1000 RnJvbSBkZDNiNDUzOTliOTg1OTQyZTM1NmUwZTVjOGRmYzRmMGEwNzBlNDQ5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHZXJhcmQgVmVybWV1bGVuIDxnZ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