Browse Source

Fix last commit

* lisp/org.el (org-dynamic-block-define): Fix match.
Nicolas Goaziou 6 năm trước cách đây
mục cha
commit
3a2ef56195
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -9598,7 +9598,7 @@ TYPE is a string.  FUNC is the function creating the dynamic
 block of such type."
   (pcase (assoc type org-dynamic-block-alist)
     (`nil (push (cons type func) org-dynamic-block-alist))
-    (`(,def . ,_) (setcdr def func))))
+    (def (setcdr def func))))
 
 (defun org-dynamic-block-insert-dblock (type)
   "Insert a dynamic block of type TYPE.