emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get parsed output of org-eww-copy-for-org-mode ?
@ 2019-12-24  9:59 stardiviner
  2019-12-24 10:26 ` Marco Wahl
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: stardiviner @ 2019-12-24  9:59 UTC (permalink / raw)
  To: Org Mode


I try to get the parsed HTML content into Org format content for org capture
template.

#+begin_src emacs-lisp
(require 'org-eww)
(with-temp-buffer
  (insert html)
  (org-eww-copy-for-org-mode)
  ;; FIXME does not yank converted content, inserted original HTML instead.
  (current-kill 0)
  (org-yank))
#+end_src

But in upper code snippet, the ~current-kill~ or ~org-yank~ (or ~yank~) can't get the
output. I try to use *advice-add*, but I don't know which advice combinator can
archive the purpose that get the parsed output of ~org-eww-copy-for-org-mode~ and
save it somewhere like variable or register. So that I can yank in capture
buffer again.

-- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-12-27  1:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-24  9:59 How to get parsed output of org-eww-copy-for-org-mode ? stardiviner
2019-12-24 10:26 ` Marco Wahl
2019-12-25  8:08 ` Adam Porter
2019-12-25 11:00   ` stardiviner
2019-12-25 11:33   ` [SOLVED] " stardiviner
2019-12-25 21:54 ` Bob Newell
2019-12-27  1:35   ` stardiviner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).