From: gerard.vermeulen@posteo.net
To: Emacs orgmode <emacs-orgmode@gnu.org>,
Ihor Radchenko <yantar92@posteo.net>
Subject: [PATCH] lisp/ox-latex.el: make org-latex-prefer-user-labels safe file local
Date: Fri, 02 Feb 2024 12:23:06 +0000 [thread overview]
Message-ID: <62f5f464178614c98b4bc7b8d8903afb@posteo.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
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
[-- Attachment #2: 0001-lisp-ox-latex.el-make-org-latex-prefer-user-labels-s.patch --]
[-- Type: application/octet-stream, Size: 1000 bytes --]
From dd3b45399b985942e356e0e5c8dfc4f0a070e449 Mon Sep 17 00:00:00 2001
From: Gerard Vermeulen <gerard.vermeulen@posteo.net>
Date: Fri, 2 Feb 2024 13:06:29 +0100
Subject: [PATCH] lisp/ox-latex.el: make org-latex-prefer-user-labels safe file
local
* lisp/ox-latex.el (org-latex-prefer-user-labels): make it a safe file
local variable for consistency with `org-latex-reference-command' and
`org-html-prefer-user-labels' being also safe file local variables.
---
lisp/ox-latex.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index d06b3e9ac..2b44679c7 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -401,7 +401,8 @@ references."
:group 'org-export-latex
:type 'boolean
:version "26.1"
- :package-version '(Org . "8.3"))
+ :package-version '(Org . "8.3")
+ :safe #'booleanp)
(defcustom org-latex-reference-command "\\ref{%s}"
"Format string that takes a reference to produce a LaTeX reference command.
--
2.42.0
next reply other threads:[~2024-02-02 12:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 12:23 gerard.vermeulen [this message]
2024-02-02 13:51 ` [PATCH] lisp/ox-latex.el: make org-latex-prefer-user-labels safe file local Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62f5f464178614c98b4bc7b8d8903afb@posteo.net \
--to=gerard.vermeulen@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).