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.
<http://permalink.gmane.org/gmane.emacs.orgmode/112052>.
This commit is contained in:
Marco Wahl 2017-02-12 09:00:56 +01:00
parent 91d82f7a87
commit 9c824217ad
1 changed files with 6 additions and 3 deletions

View File

@ -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
))