-
Notifications
You must be signed in to change notification settings - Fork 39
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
URL in buffer name, not capturing #27
Comments
What version of Org are you using? |
Org mode version 9.1.9 (release_9.1.9-553-gcad9ac) |
Er, I'm not sure that's the same version that was running in emacs -Q. I'll update shortly. |
Yeah, probably that was loading the built-in Org version, which is likely older, and may not support the new org-protocol URLs. |
Right. That was 8.2.10. I have the same behavior in 9.1.9 and tried using emacs -Q as a debugging tactic. Any ideas on how I might proceed, either with |
I'm afraid I don't know. It should work properly with new-style org-protocol URLs. I'm still using Org 9.0.5 and I don't have org-protocol working reliably with my browser at the moment, so maybe there are newer bugs that I haven't encountered yet. Maybe in a few weeks I'll be able to look into it, but it might take me a while to find time. If you are able and willing to debug it, you might have to go as far as stepping through the code in the debugger (e.g. by instrumenting functions with edebug until you find the problem). It's really not fun, but I've had to do that in the past when I ran into some problems with org-protocol. |
Thanks. Setting the wrap option |
@apnewberry Thanks, but I don't see how either of those could be causing or fixing the problem. Can you be more specific? |
This version is the one that works for me. I don't think the The The |
Okay, so what exactly did you change that fixed the problem you were having in this bug? |
Here's the diff. It's a bit hard to read without As I understand it, the fixing changes were replacing The html change is just for cleaning the output. |
I'm still not sure how either of those would have fixed the problem you seemed to be having. The
The
Thanks for your help with this issue. It's hard for me to test these issues myself since I have different versions of some of the software. |
I wasn't able to replicate the problem with Removing Sorry I couldn't narrow it down much -- but thanks for following up on the issue nonetheless. :) |
Just wanted to say and update thread, on installation/configuration I got the same behavior (path+url) in buffer name. Linux NixOS This one seems to be the big one. |
@Anton-Latukha Thank you. A few things:
|
Sorry, I decided back then, that then stripping-down Spacemacs and using classic Emacs binding and somehow gradually debugging - was not a realistic task then. I do not know now what was not working, maybe I not loaded |
Right here #32 - I submit the simple configuration for Spacemacs. |
Also in #33 I submitted info how to properly make |
I have the same problem. Url in buffer name, no content in buffer. Doom Emacs 2.09 |
@antoan Unfortunately that is not enough information for me to begin to diagnose the problem. Anyway, with all the changes that have been made to browsers in the past few years regarding user JavaScript, bookmarklets, etc, I can't confirm that this tool works reliably on any certain browser or configuration. I'd recommend looking into the related browser extensions that perform essentially the same function. |
I had this syndrome several times. Every time it was a syndrom of configuration not set up by me or that configuration was not loaded properly by applications at runtime. And every time solution was a case of: reregistering the Maybe it was not put clear. It is a configuration/applicatioin taking configuration issue. Try carefully clean-up config, and reregister/configure stuff, and restart everything. |
Actually when I was comparing - *this project parsing worked cleaner than the extension solution. And extension solution can only be clickable by mouse, when this one is indeed modular, so I do not drug & click mouse - I have F2 as a hotkey for page export. |
I encountered the same issue, for a reason I didn't investigate, the fork of @apnewberry fix the issue in my side. |
Hello, I had this issue as well with:
For me the error occurred in the ;; in org-protocol-capture-html--with-pandoc
if (not (zerop (call-process-region
(point-min) (point-max)
"pandoc" t t nil "-f" "html" "-t" "org" org-protocol-capture-html-pandoc-no-wrap-option)))
(message "Pandoc failed: %s" (buffer-string)) Funny fact: the error is not specific to pandoc. If i replace it by another command such as SolutionThe fork did not produce consistent result. I made it work once but there were other modifications as well. (push '("capture-html"
:protocol "capture-html"
:function org-protocol-capture-html--with-pandoc)
;; :kill-client t)
org-protocol-protocol-alist) I have no idea why this work or what that option was supposed to do 🤷 |
This is a similar issue to #26 "Strange emacs buffer instead of capture buffer".
Ubuntu 17.10
Emacs 25.2.2
Chrome and Firefox
emacs -Q
This works for the
l
command:but this one does not:
I just get this buffer name:
Tried debugging a bit
This works,
(org-protocol-capture-html--url-html "http://github.com")
.But not sure what I'm supposed to pass to
org-protocol-capture-html--capture-eww-readable
, if that's the right way to proceed.Alternatively, since
org-protocol://capture:
works, I should be able to just use a%(...)
function call in my template file, but I'm not sure what function to put there (or what its arguments should be).The text was updated successfully, but these errors were encountered: