Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
Drew
  • 79.1k
  • 10
  • 123
  • 257
added elisp tag and removed cygwin tag, added language code lang-elisp
Source Link

When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart. Looking into the function browse-url-default-windows-browser I found out that it needed to call process cygstart:

(defun browse-url-default-windows-browser (url &optional _new-window)
  "Invoke the MS-Windows system's default Web browser.
The optional NEW-WINDOW argument is not used."
<...>
((eq system-type 'cygwin)
         (call-process "cygstart" nil nil nil url))
    (defun browse-url-default-windows-browser (url &optional _new-window)
      "Invoke the MS-Windows system's default Web browser.
    The optional NEW-WINDOW argument is not used."
    <...>
    ((eq system-type 'cygwin)
             (call-process "cygstart" nil nil nil url))

But there is no cygstart in MSYS2 according to its wiki How does MSYS2 differ from Cygwin. Though the variable system-type really equals 'cygwin and cannot be changed to anything more appropriate.

How to fix this error?

When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart. Looking into the function browse-url-default-windows-browser I found out that it needed to call process cygstart:

(defun browse-url-default-windows-browser (url &optional _new-window)
  "Invoke the MS-Windows system's default Web browser.
The optional NEW-WINDOW argument is not used."
<...>
((eq system-type 'cygwin)
         (call-process "cygstart" nil nil nil url))

But there is no cygstart in MSYS2 according to its wiki How does MSYS2 differ from Cygwin. Though the variable system-type really equals 'cygwin and cannot be changed to anything more appropriate.

How to fix this error?

When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart. Looking into the function browse-url-default-windows-browser I found out that it needed to call process cygstart:

    (defun browse-url-default-windows-browser (url &optional _new-window)
      "Invoke the MS-Windows system's default Web browser.
    The optional NEW-WINDOW argument is not used."
    <...>
    ((eq system-type 'cygwin)
             (call-process "cygstart" nil nil nil url))

But there is no cygstart in MSYS2 according to its wiki How does MSYS2 differ from Cygwin. Though the variable system-type really equals 'cygwin and cannot be changed to anything more appropriate.

How to fix this error?

added elisp tag and removed cygwin tag
Link
Source Link
Loading