-
Notifications
You must be signed in to change notification settings - Fork 59
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
browse-url
fails
#36
Comments
I've dig more into it. In my setup As wikiemacs suggests the solution is to open the url in the browser directly (omitting the call to |
Hi @asok , thanks for the info. Then, I guess that you could solve it changing the value of browse-url-browser-function, no? If that works well for you, we could add this info in the README. |
@areina I have a hard time solving this actually. I've tried to run google chrome with this: (defun browse-url-open-chrome-browser (url &optional new-window)
(interactive (browse-url-interactive-arg "URL: "))
(start-process url nil "open" (concat " -a /Applications/Google Chrome.app --args " url)))
(setq browse-url-browser-function 'browse-url-open-chrome-browser) But to no avail. For now, I've settled to use w3m. It works with such setup: (setq browse-url-browser-function 'browse-url-w3) |
Hey @asok ! thanks for trying and reporting! you can try browse-url-chrome, creating the function by copypasta-ing browse-url-chromium. something like: (setq browse-url-chrome-program "google-chrome")
(defun browse-url-chrome (url &optional _new-window)
(interactive (browse-url-interactive-arg "URL: "))
(setq url (browse-url-encode-url url))
(let* ((process-environment (browse-url-process-environment)))
(apply 'start-process
(concat "google-chrome " url) nil
browse-url-chrome-program
(append
browse-url-chromium-arguments
(list url))))) This is not using 'open' but directly running the google-chrome app. in linux it works fine :/ |
@kidd thanks a lot. The only issue is that on osx
Sadly I can't find anything helpful on google. Am I really the only one having this issue? |
No clue if you're the only one with this issue... :/ for the moment, you'll have to stay with w3 (or eww, which will be bundled with emacs 24.4, and works quite well) until we find out wtf is osx doing, and how to solve it.. :/ Cheers! |
Thanks for the help. |
Another way would be to host via a little local webserver and allow helm-dash to have a different base url from |
I'm now using this method
note: a couple of edits. |
Also just tried to open a URL in Google chrome OSX with
Seems to work, so I'm trying shell-command / start-process |
This worked.
Safari needs an osascript solution... Personally I like the localhost server solution, as it doesn't require a specific browser. |
http://apple.stackexchange.com/a/197284/1267
|
refer to ANN: Helm-dash, the documentation browser for emacs : emacs , for mac ox El Captan, spacemacs:
;;helm-dash
(with-eval-after-load 'dash
(setq helm-dash-browser-func 'browse-url-default-macosx-browser))
|
I'm using Emacs 24.3.1 on Macos. It seems that url browsing does not work. When I try:
In the
*Messages*
I see:And no browser's window is opened.
Though when I strip the
#target
part of the url:The browser window is opened with the html file.
It might be the bug mentioned here (under the section named: "Bug" in browse-url-default-windows-browser).
Maybe it's worth mentioning that in the README.
The text was updated successfully, but these errors were encountered: