alphapapa / org-web-tools

View, capture, and archive Web pages in Org-mode
GNU General Public License v3.0
647 stars 33 forks source link

Cryptic errors? #36

Closed jrmiller82 closed 4 years ago

jrmiller82 commented 4 years ago

Hi all:

I can't get a single org-web-tools-FOO command to work. I keep getting things like /443 Name or service not known

or Before first headline at position 1 in buffer FOO.org.

Any ideas as to what I'm doing wrong?

alphapapa commented 4 years ago

There's no all, it's just me.

You would have to be more specific in order for me to offer help.

jrmiller82 commented 4 years ago

So I have an org file containing the following only

- [[https://lawjrm.com]]

And I try to run org-web-tools-convert-links-to-page-entries and all I get is "before first headline at position 26 in buffer test.org".

Thoughts?

jrmiller82 commented 4 years ago

If I put the same link in the clipboard, and run org-web-tools-read-url-as-org I get Bad url: /

alphapapa commented 4 years ago

The docstring for org-web-tools-convert-links-to-page-entries says it operates on the current entry. An Org entry is a headline and its content. The example you gave is a file without headlines, which doesn't work.

If I put the same link in the clipboard, and run org-web-tools-read-url-as-org I get Bad url: /

What is the actual, complete content of the clipboard when you call the command? What is the first entry in the Emacs kill ring?

jrmiller82 commented 4 years ago

I figured it out. Thank you for your posts. I'm sorry I didn't read the docs first; I only read the readme in the repo. This is such a good plugin! Thank you for writing it!

alphapapa commented 4 years ago

Thanks, glad it's useful.