nobiot / org-transclusion

Emacs package to enable transclusion with Org Mode
https://nobiot.github.io/org-transclusion/
GNU General Public License v3.0
917 stars 44 forks source link

Refactor/src lines #187

Open nobiot opened 1 year ago

nobiot commented 1 year ago

@devcarbon-com I am trying to refactor src-lines.el. I feel that function org-transclusion-content-range-of-lines is too long and it does :lines and :thing-at-point -- I was hoping to separate them into their own functions.

I have tried this below, but it cannot find the thing boundary correct for defun and sexp. Do you see where I am wrong? sentence and paragraph seem to work OK. I am using test/things-at-point.org as the test.

https://github.com/nobiot/org-transclusion/blob/refactor/src-lines/org-transclusion-src-lines.el#L343-L381

devcarbon-com commented 1 year ago

Hey @nobiot , I'll be happy to take a look, but so you know it will probably be a few weeks before I can.

nobiot commented 1 year ago

Timing is perfect 👍 Thank you!