From 9c824217adc619aff20d83495c3897d295c3a6d3 Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Sun, 12 Feb 2017 09:00:56 +0100 Subject: [PATCH] org-eww: Fix copy of form-elements * lisp/org-eww.el (org-eww-copy-for-org-mode): New behavior: Just add link-title when link-location is not a string. This fixes copying from www.indeed.co.uk. Reported and a suggestion of a fix by Andrea. . --- lisp/org-eww.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/org-eww.el b/lisp/org-eww.el index d5b7b6202..7bc248d4d 100644 --- a/lisp/org-eww.el +++ b/lisp/org-eww.el @@ -138,9 +138,12 @@ the structure of the Org file." (point) (org-eww-goto-next-url-property-change))) ;; concat `org-mode' style url to `return-content'. - (setq return-content (concat return-content - (org-make-link-string - link-location link-title)))) + (setq return-content + (concat return-content + (if (stringp link-location) + ;; hint: link-location is different for form-elements. + (org-make-link-string link-location link-title) + link-title)))) (goto-char temp-position) ; reset point before jump next anchor (setq out-bound t) ; for break out `while' loop ))