소스 검색

org-footnote: Tiny refactoring

* lisp/org-footnote.el (org-footnote-section): Tiny refactoring.
Nicolas Goaziou 6 년 전
부모
커밋
2086ea42cf
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      lisp/org-footnote.el

+ 1 - 3
lisp/org-footnote.el

@@ -115,9 +115,7 @@ you will need to run the following command after the change:
   :type '(choice
 	  (string :tag "Collect footnotes under heading")
 	  (const :tag "Define footnotes locally" nil))
-  :safe (lambda (x)
-	  (or (eq x nil)
-	      (stringp x))))
+  :safe #'string-or-null-p)
 
 (defcustom org-footnote-define-inline nil
   "Non-nil means define footnotes inline, at reference location.