emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joseph Turner <joseph@breatheoutbreathe.in>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: [PATCH] org-info-other-documents: Fix defcustom safe-local-variable property
Date: Thu, 19 Dec 2024 13:20:40 -0800	[thread overview]
Message-ID: <87a5cr5pzr.fsf@breatheoutbreathe.in> (raw)

[-- Attachment #1: Type: text/plain, Size: 29 bytes --]

Minor fix.  Thanks!

Joseph


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-info-other-documents-Fix-defcustom-safe-local-va.patch --]
[-- Type: text/x-diff, Size: 783 bytes --]

From 5451da0d798f104e9a0d87445c516fd89e473a38 Mon Sep 17 00:00:00 2001
From: Joseph Turner <joseph@breatheoutbreathe.in>
Date: Thu, 19 Dec 2024 13:16:50 -0800
Subject: [PATCH] org-info-other-documents: Fix defcustom safe-local-variable
 property

:safe should be a function.
---
 lisp/ol-info.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ol-info.el b/lisp/ol-info.el
index fa9b23b84..b4e993a0b 100644
--- a/lisp/ol-info.el
+++ b/lisp/ol-info.el
@@ -149,7 +149,7 @@ (defcustom org-info-other-documents
   :group 'org-link
   :type '(alist :key-type string :value-type string)
   :package-version '(Org . "9.7")
-  :safe t)
+  :safe #'listp)
 
 (defun org-info-map-html-url (filename)
   "Return URL or HTML file associated to Info FILENAME.
-- 
2.46.0


                 reply	other threads:[~2024-12-19 21:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87a5cr5pzr.fsf@breatheoutbreathe.in \
    --to=joseph@breatheoutbreathe.in \
    --cc=emacs-orgmode@gnu.org \
    /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).