Parcourir la source

org-attach: Make `org-attach-directory' a safe variable

* lisp/org-attach.el (org-attach-directory): Add :safe keyword.
Nicolas Goaziou il y a 7 ans
Parent
commit
ada2f64b16
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      lisp/org-attach.el

+ 2 - 1
lisp/org-attach.el

@@ -54,7 +54,8 @@
 If this is a relative path, it will be interpreted relative to the directory
 where the Org file lives."
   :group 'org-attach
-  :type 'directory)
+  :type 'directory
+  :safe #'stringp)
 
 (defcustom org-attach-commit t
   "If non-nil commit attachments with git.