diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 674f88ac1..76c2d73f6 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -290,10 +290,8 @@ used to limit the exported source code blocks by language." (unless tangle-mode (setq tangle-mode #o755))) ;; update counter (setq block-counter (+ 1 block-counter)) - (add-to-list 'path-collector - (cons file-name tangle-mode) - nil - (lambda (a b) (equal (car a) (car b)))))))) + (unless (assoc file-name path-collector) + (push (cons file-name tangle-mode) path-collector)))))) specs))) (if (equal arg '(4)) (org-babel-tangle-single-block 1 t)