diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile index 878dd1cbb78..889a3aa2c61 100644 --- a/editors/emacs/Makefile +++ b/editors/emacs/Makefile @@ -1,7 +1,7 @@ COMMENT= GNU editor: extensible, customizable, self-documenting VERSION= 29.1 -REVISION= 0 +REVISION= 1 DISTNAME= emacs-${VERSION} CATEGORIES= editors diff --git a/editors/emacs/patches/patch-src_dispnew_c b/editors/emacs/patches/patch-src_dispnew_c new file mode 100644 index 00000000000..e6ff50cfffd --- /dev/null +++ b/editors/emacs/patches/patch-src_dispnew_c @@ -0,0 +1,15 @@ +If !HAVE_X_WINDOWS unsetenv the DISPLAY variable so that +xdg-* tools will not open anything in a browser + +Index: src/dispnew.c +--- src/dispnew.c.orig ++++ src/dispnew.c +@@ -6538,6 +6538,8 @@ init_display_interactive (void) + #endif + return; + } ++#else ++ (void)unsetenv ("DISPLAY"); + #endif /* HAVE_X_WINDOWS */ + + #ifdef HAVE_NTGUI