Re: [O] Error handling in org-make-link-string

2018-04-14 Thread Nicolas Goaziou
Hello, Bob Newell writes: > Aloha, > > Either of your suggested solutions would work, of course, and limit > effects to org-xxx-copy-for-org-mode. I didn't go that way because I > didn't want to have to continually modify the core product on my own > :) > > The idea of > > (if (org-string-nw-p l

Re: [O] Error handling in org-make-link-string

2018-04-14 Thread Bob Newell
Aloha, Either of your suggested solutions would work, of course, and limit effects to org-xxx-copy-for-org-mode. I didn't go that way because I didn't want to have to continually modify the core product on my own :) The idea of (if (org-string-nw-p link-location etc. may be best because we can

Re: [O] Error handling in org-make-link-string

2018-04-14 Thread Nicolas Goaziou
Hello, Bob Newell writes: > The problem? When org-make-link-string encounters an empty link (it > doesn't happen often but it does happen), it uses the 'error' function > to say that the link is empty. This means that the entire call to > org-xxx-copy-for-org-mode is aborted, and consequently no

[O] Error handling in org-make-link-string

2018-04-13 Thread Bob Newell
Aloha, I've got a subsystem for capturing snippets of information (I mentioned it here, scraps.el, quite some while back). Some information is captured from w3m or eww browser buffers. To do this I use org-w3m-copy-for-org-mode or org-eww-copy-for-org-mode. This is nice in that links are converte