https://github.com/JuliaLang/julia
Revision 445545455c3cc8e00b2990da3a06822d1e773b06 authored by Adam B on 18 June 2020, 19:41:27 UTC, committed by Rafael Fourquet on 26 July 2020, 13:53:10 UTC
Since the regex r"\bemacs" matches the cmd `emacs -nw`, the regex
r"\bemacs\b.*\s(-nw|--no-window-system)\b" should be considered in the
EDITOR_CALLBACKS list before it.

Without this change, when JULIA_EDITOR="emacs -nw", julia tries to
open the editor with run(...; wait=false) which causes the error:

emacs: standard input is not a tty

or for emacsclient:

emacsclient: could not get terminal name
emacsclient: error executing alternate editor ""
(cherry picked from commit 638510733757efd066b578582997af7cbf3b4fa9)
1 parent 98df0d5
History
Tip revision: 445545455c3cc8e00b2990da3a06822d1e773b06 authored by Adam B on 18 June 2020, 19:41:27 UTC
Consider terminal emacs in EDITOR_CALLBACKS before graphical (#36346)
Tip revision: 4455454
File Mode Size
.devcontainer
base
contrib
deps
doc
etc
src
stdlib
test
ui
.appveyor.yml -rw-r--r-- 2.1 KB
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 273 bytes
.mailmap -rw-r--r-- 11.0 KB
.travis.yml -rw-r--r-- 6.1 KB
CITATION.bib -rw-r--r-- 2.6 KB
CONTRIBUTING.md -rw-r--r-- 19.9 KB
HISTORY.md -rw-r--r-- 275.6 KB
LICENSE.md -rw-r--r-- 5.0 KB
Make.inc -rw-r--r-- 44.1 KB
Makefile -rw-r--r-- 26.9 KB
NEWS.md -rw-r--r-- 16.7 KB
README.md -rw-r--r-- 6.3 KB
VERSION -rw-r--r-- 10 bytes
sysimage.mk -rw-r--r-- 3.9 KB

README.md

back to top