Merge branch 'maint'
This commit is contained in:
commit
cc9233c1f4
|
@ -140,13 +140,13 @@ the structure of the Org file."
|
||||||
;; concat `org-mode' style url to `return-content'.
|
;; concat `org-mode' style url to `return-content'.
|
||||||
(setq return-content
|
(setq return-content
|
||||||
(concat return-content
|
(concat return-content
|
||||||
(if (stringp link-location)
|
(if (org-string-nw-p link-location)
|
||||||
;; hint: link-location is different for form-elements.
|
;; Hint: link-location is different
|
||||||
|
;; for form-elements.
|
||||||
(org-make-link-string link-location link-title)
|
(org-make-link-string link-location link-title)
|
||||||
link-title))))
|
link-title))))
|
||||||
(goto-char temp-position) ; reset point before jump next anchor
|
(goto-char temp-position) ; reset point before jump next anchor
|
||||||
(setq out-bound t) ; for break out `while' loop
|
(setq out-bound t))) ; for break out `while' loop
|
||||||
))
|
|
||||||
;; Add the rest until end of the region to be copied.
|
;; Add the rest until end of the region to be copied.
|
||||||
(when (< (point) transform-end)
|
(when (< (point) transform-end)
|
||||||
(setq return-content
|
(setq return-content
|
||||||
|
|
|
@ -95,12 +95,13 @@ so that it can be yanked into an Org buffer with links working correctly."
|
||||||
(setq link-title (buffer-substring (point)
|
(setq link-title (buffer-substring (point)
|
||||||
(org-w3m-get-anchor-end)))
|
(org-w3m-get-anchor-end)))
|
||||||
;; concat Org style url to `return-content'.
|
;; concat Org style url to `return-content'.
|
||||||
(setq return-content (concat return-content
|
(setq return-content
|
||||||
(org-make-link-string
|
(concat return-content
|
||||||
link-location link-title))))
|
(if (org-string-nw-p link-location)
|
||||||
|
(org-make-link-string link-location link-title)
|
||||||
|
link-title))))
|
||||||
(goto-char temp-position) ; reset point before jump next anchor
|
(goto-char temp-position) ; reset point before jump next anchor
|
||||||
(setq out-bound t) ; for break out `while' loop
|
(setq out-bound t))) ; for break out `while' loop
|
||||||
))
|
|
||||||
;; add the rest until end of the region to be copied
|
;; add the rest until end of the region to be copied
|
||||||
(if (< (point) transform-end)
|
(if (< (point) transform-end)
|
||||||
(setq return-content
|
(setq return-content
|
||||||
|
|
Loading…
Reference in New Issue