summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-08-26 11:27:51 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-08-26 11:27:51 +0200
commit750071accd81c527bd4e9c9167d232ac0afd2c92 (patch)
treeb8374bd62c9a0fc137b1dff3284a89fdf96a213f
parent64bfa2d931c6370eb114cddf4b2815813f65de70 (diff)
downloadorg-mode-750071accd81c527bd4e9c9167d232ac0afd2c92.tar.gz
Tiny refactoring
* lisp/ox.el (org-export-with-drawers): Tiny refactoring.
-rw-r--r--lisp/ox.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 578960e..4102e13 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -437,11 +437,7 @@ e.g. \"d:nil\"."
(repeat :tag "Specify names of drawers to ignore during export"
:inline t
(string :tag "Drawer name"))))
- :safe (lambda (x) (or (booleanp x)
- (and (listp x)
- (or (cl-every #'stringp x)
- (and (eq (nth 0 x) 'not)
- (cl-every #'stringp (cdr x))))))))
+ :safe (lambda (x) (or (booleanp x) (consp x))))
(defcustom org-export-with-email nil
"Non-nil means insert author email into the exported file.