Skip to content

Commit

Permalink
fix bug in insert src blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Oct 14, 2021
1 parent b33e446 commit 535153c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion org-db.el
Expand Up @@ -412,7 +412,7 @@ Adds FNAME to the database if it doesn't exist."
filename-id)
(org-babel-map-src-blocks nil

(emacsql org-db [:insert :into src-blocks :values [nil $s1 $s2 $s3 %s4]]
(emacsql org-db [:insert :into src-blocks :values [nil $s1 $s2 $s3 $s4]]
filename-id lang body beg-block)))

(defun org-db-update-keywords (filename-id parse-tree)
Expand Down Expand Up @@ -914,7 +914,10 @@ Optional RECURSIVE is non-nil find files recursively."
(emacsql org-db [:delete :from file-atlabels])
(emacsql org-db [:delete :from email-addresses])
(emacsql org-db [:delete :from file-email-addresses])
(emacsql org-db [:delete :from src-blocks])
(emacsql org-db [:delete :from file-editmarks])
(emacsql org-db [:delete :from file-targets])
(emacsql org-db [:delete :from targets])
(org-db-log "Everything should be reset."))


Expand Down

0 comments on commit 535153c

Please sign in to comment.