diff options
author | Marco Wahl <marcowahlsoft@gmail.com> | 2017-02-12 09:00:56 +0100 |
---|---|---|
committer | Marco Wahl <marcowahlsoft@gmail.com> | 2017-02-12 09:00:56 +0100 |
commit | 9c824217adc619aff20d83495c3897d295c3a6d3 (patch) | |
tree | 42664fa0f3a1135d8e42aebf6853fbcd05a6c03e | |
parent | 91d82f7a871c6e095546ad232c98e28a6c6cbbef (diff) | |
download | org-mode-9c824217adc619aff20d83495c3897d295c3a6d3.tar.gz |
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>.
-rw-r--r-- | lisp/org-eww.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/org-eww.el b/lisp/org-eww.el index d5b7b62..7bc248d 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 )) |