Skip to content

Commit

Permalink
Merge pull request #181 from maxevtushok/org-snippet-improvement
Browse files Browse the repository at this point in the history
ejc-eval-org-snippet should return org-table if possible
  • Loading branch information
kostafey authored Aug 21, 2023
2 parents cfb2a3b + bd0aa63 commit d1cbeb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ejc-sql.el
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ If the current mode is `sql-mode' prepare buffer to operate as `ejc-sql-mode'."
(if ejc-org-mode-show-results
(with-temp-buffer
(insert-file-contents (ejc-get-result-file-path))
(buffer-string))))))
(or (org-babel-read-table)
(buffer-string)))))))

(defun ejc-org-edit-special (orig-fun &rest args)
(if (and (equal "sql" (car (org-babel-get-src-block-info)))
Expand Down

0 comments on commit d1cbeb2

Please sign in to comment.