Browse Source

Add missing argument

* lisp/org.el (org-set-property): Add missing argument.
Nicolas Goaziou 9 năm trước cách đây
mục cha
commit
005f8b2fd1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -16395,7 +16395,7 @@ Throw an error when trying to set a property with an invalid name."
     ;; `org-entry-put' also makes the following check, but this one
     ;; avoids polluting `org-last-set-property' and
     ;; `org-last-set-property-value' needlessly.
-    (unless (org--valid-property-p)
+    (unless (org--valid-property-p property)
       (user-error "Invalid property name: \"%s\"" property))
     (let ((value (or value (org-read-property-value property)))
 	  (fn (cdr (assoc-string property org-properties-postprocess-alist t))))