From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: How to get parsed output of org-eww-copy-for-org-mode ? Date: Tue, 24 Dec 2019 17:59:05 +0800 Message-ID: <87lfr259jq.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32912) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijgyK-0003NV-P0 for emacs-orgmode@gnu.org; Tue, 24 Dec 2019 04:59:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijgyJ-0003B0-Lv for emacs-orgmode@gnu.org; Tue, 24 Dec 2019 04:59:24 -0500 Received: from [183.246.146.61] (port=2283 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ijgyH-00033y-DA for emacs-orgmode@gnu.org; Tue, 24 Dec 2019 04:59:23 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" 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