emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Steve Miano <stevem995@comcast.net>
To: emacs-orgmode@gnu.org
Subject: Bug: wsl org-open-at-point [9.1.14 (9.1.14-9-g131531-elpa @ /home/boss5/.emacs.d/elpa/org-20181112/)]
Date: Fri, 27 Dec 2019 09:56:48 -0500	[thread overview]
Message-ID: <ebaaa5e1-8328-ac47-8d2a-6f8589f69af2@comcast.net> (raw)

On WSL, using emacs 25.1, in org-mode there is a bug/design issue.

It the issue is:
When opening a link in org-mode using C-c C-o, org-open-at-point doesn't
work. It does find the browser, if you have set

(setq browse-url-firefox-program "/mnt/c/PROGRA~1/MOZILL~1/firefox.exe")

and does run the process, but it doesn't bring up a browser. You can
see the process in list-processes and if you run that command in the
console it works, but in org-mode the console never show and the
process remains.

The function browse-url-default-browse finds and runs the correct
browser. However, it runs the browser using the wrong command
depending on the case. If you are on WSL, without the graphical
interface, you need to run the shell-command to use the windows
browser. This is how it is done when it detects cygwin using
system-type. However, System-type cannot be used to detect WSL because
it doesn't find that you are on windows. The uname command detects it.

Obviously this isn't straight forward as in different situations you
want to do different things, graphical vs non-graphical. Perhaps
modify the function which sets system-type to return wsl then detect
graphical environment and use the non shell-command approach?

I humbly bring this to your attention. Thanks in advance.


Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
  of 2017-09-15, modified by Debian
Package: Org mode version 9.1.14 (9.1.14-9-g131531-elpa @ 
/home/XXXX/.emacs.d/elpa/org-20181112/)

current state:
==============
(setq
  org-src-lang-modes '(("python" . python) ("plantuml" . fundamental) 
("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) 
("asymptote" . asy)
                       ("dot" . fundamental) ("sqlite" . sql) ("calc" . 
fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . shell-script)
                       ("shell" . sh) ("bash" . sh))
  org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
  org-babel-results-keyword "results"
  org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
  org-occur-hook '(org-first-headline-recenter)
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-log-done t
  org-confirm-shell-link-function 'yes-or-no-p
  org-link-search-must-match-exact-headline nil
  org-default-notes-file "~/org/notes.org"
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-from-is-user-regexp "\\<XXXXXX-XXXXXX\\>"
  org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-babel-pre-tangle-hook '(save-buffer)
  org-table-use-standard-references t
  org-font-lock-set-keywor

             reply	other threads:[~2019-12-27 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-27 14:56 Steve Miano [this message]
2019-12-27 17:25 ` Bug: wsl org-open-at-point [9.1.14 (9.1.14-9-g131531-elpa @ /home/boss5/.emacs.d/elpa/org-20181112/)] Fabrice Popineau
2019-12-27 17:28   ` Fabrice Popineau
2020-02-05  6:25   ` Bastien
2020-02-05  8:13     ` Fabrice Popineau
2020-02-05 10:15       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ebaaa5e1-8328-ac47-8d2a-6f8589f69af2@comcast.net \
    --to=stevem995@comcast.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).