-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure org-msg-org-to-xml uses right html buffer #7
make sure org-msg-org-to-xml uses right html buffer #7
Conversation
When `org-export-show-temporary-export-buffer` is `nil`, `org-msg-org-to-xml` would try to parse the **org** buffer rather than the html export buffer. This change hopefully fixes that.
Hmmm, still having trouble getting both the new message text and the citation to appear in the final html document. Maybe don't merge right away. |
(let ((xml (org-msg-html-buffer-to-xml base))) | ||
(kill-buffer) | ||
xml)))) | ||
(set-buffer (org-html-export-as-html)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the following solution would have less side effect:
(with-current-buffer (org-html-export-as-html)
(....)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I see that, but for whatever reason I'm not able to fix the issue with that code. Try
(let ((org-export-show-temporary-export-buffer nil))
(org-preview-html nil))
do you find your code works for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah shoot, I just saw ur comment in #6... I will keep trying to debug this but for now I have to get a little bit of work done...
What do you mean ? |
well, I can now either generate HTML for an org buffer, or generate HTML representing the original in-repoy-to message. But as soon as I include a reply in the messgae body, the original org text is overwritten. At first Ihtought that was an isus with my hcanges, but I don't think it is. |
Hi Matt, Yes the following change work for me with the following test
Could you explain the use case here. I am not clear what is the sequence of event you use ? Are you trying to reply to a message. How does the org-msg-edit-mode buffer looks like ? … ? Regards, Jeremy |
It's a separate issue -- sorry for confusing the issue. See #8 and #10
|
Could you very that the |
Unfortunately, I cannot make this work for me. is htere a way to safely |
When
org-export-show-temporary-export-buffer
isnil
,org-msg-org-to-xml
would try to parse the org buffer rather thanthe html export buffer. This change hopefully fixes that.
Appears to fix #6