-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix candidates and PA #2
base: master
Are you sure you want to change the base?
Conversation
Add headers and simplify code.
which should be implemented as dummy source
Hi Thierry,
What do you think? Thanks. |
alphapapa <notifications@github.com> writes:
Hi Thierry,
1. The persistent action worked fine for me before this PR. Maybe my Helm version is too old?
No, the problem was with curl when using `helm-net-prefer-curl` it is
now fixed in helm-net with helm-net-curl-switches.
2. I think this PR makes the summaries less useful, as most of them now are only one or two sentences. The code before this PR uses the Wikipedia
"extracts" API, which I set up in the Wikipedia API sandbox, and AFAICT it's intended for the purpose of summarizing pages. It usually provides a
paragraph or two, which easily fits on the screen, and provides enough information that, most of the time, I don't need to visit the full article. This
PR seems to make the summaries more like dictionary definitions, which are too brief, IMO.
What do you think?
Definitely yes, the output is more complete.
BTW I have fixed the re-search-forward call to avoid error and improved
header as well, feel free to add your copyright if you want.
Now working fine for me with and without curl usage.
Thanks.
…--
Thierry
|
I actually left it that way on purpose, so it would raise an error if the HTTP request can't be parsed correctly rather than failing silently. I'd rather users report a bug than think there are no results available or that the tool simply doesn't work sometimes. Ideally we wouldn't have to skip the HTTP headers manually, but Emacs network libraries are so primitive. :( Anyway, what do you think?
I've only contributed a few lines, so I think it's fine as is. :)
Good. So does this PR still require merging? Thanks. |
alphapapa <notifications@github.com> writes:
BTW I have fixed the re-search-forward call to avoid error
I actually left it that way on purpose, so it would raise an error if
the HTTP request can't be parsed correctly rather than failing
silently. I'd rather users report a bug than think there are no
results available or that the tool simply doesn't work
sometimes. Ideally we wouldn't have to skip the HTTP headers manually,
but Emacs network libraries are so primitive. :( Anyway, what do you
think?
We have to attempt to skip HTML headers, but not throw an error because
the CURL output with -L option have no HTML header i.e. in this case the
search-forward is not needed.
Good. So does this PR still require merging?
No.
Thanks.
…--
Thierry
|
This fix PA and simplify code.