Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Multi-pdf notes but in at any headline level #44

Open
DJJ88 opened this issue Mar 22, 2017 · 1 comment
Open

Multi-pdf notes but in at any headline level #44

DJJ88 opened this issue Mar 22, 2017 · 1 comment
Milestone

Comments

@DJJ88
Copy link

DJJ88 commented Mar 22, 2017

Hello,

Thanks for this nice tool. I was wondering if it is possible to use interleave in a lower level headlines as well?
Instead of launching M-x interleave at the Top level headline

  • Notes for CS103
    :PROPERTIES:
    :INTERLEAVE_PDF: cs103.pdf
    :END:

I would like to do

**** Notes for CS103
:PROPERTIES:
:INTERLEAVE_PDF: cs103.pdf
:END:

I'm not very good at lisp programing but your code is very clear. I suspect that the issue is in the following function

(defun interleave--headline-pdf-path (buffer) "Return the INTERLEAVE_PDF property of the current headline in BUFFER." (with-current-buffer buffer (save-excursion (let ((headline (org-element-at-point))) (when (and (equal (org-element-type headline) 'headline) (org-entry-get nil interleave--pdf-prop)) (setq interleave-multi-pdf-notes-file t) (org-entry-get nil interleave--pdf-prop))))))

But I cannot figure out why it does not work in the sub headlines.

Best regards

@DJJ88 DJJ88 changed the title Multi-pdf note but in subheadings Multi-pdf notes but in any level headlines Mar 22, 2017
@DJJ88 DJJ88 changed the title Multi-pdf notes but in any level headlines Multi-pdf notes but in at any headline level Mar 22, 2017
@rudolfochrist
Copy link
Owner

Hi @DJJ88 ,

I'm glad you like the project and thank you for reporting this. It seems you found a bug. I'm currently a little short on time, so it will take a while until this is fixed.

If you'd like to dabble into Elisp programming more, feel free to hack on it yourself and send in a PR. I will happily merge it.

Till then,
Sebastian

@rudolfochrist rudolfochrist modified the milestone: v1.5 Jul 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants