aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2018-02-06 12:20:37 -0500
committerNoam Postavsky2018-02-08 19:10:11 -0500
commit19fa6d561abd91e9ad71a6799c5ed4f582c9f351 (patch)
treebd5aba726efbafd00c5b3638dd461ada8f7f793d
parent979944c9b03ed168c85b65f880937adac0a2bf16 (diff)
downloademacs-19fa6d561abd91e9ad71a6799c5ed4f582c9f351.tar.gz
emacs-19fa6d561abd91e9ad71a6799c5ed4f582c9f351.zip
Fix --no-build-details for w32 and macOS
* src/w32term.c (w32_initialize_display_info): Handle nil system-name. * lisp/term/ns-win.el (window-system-initialization): Don't pass nil to `x-open-connection'.
-rw-r--r--lisp/term/ns-win.el2
-rw-r--r--src/w32term.c13
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 618041dbe27..76b1a414560 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -834,7 +834,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
834 (format "Creation of the standard fontset failed: %s" err) 834 (format "Creation of the standard fontset failed: %s" err)
835 :error))) 835 :error)))
836 836
837 (x-open-connection (system-name) x-command-line-resources t) 837 (x-open-connection (or (system-name) "") x-command-line-resources t)
838 838
839 ;; Add GNUstep menu items Services, Hide and Quit. Rename Help to Info 839 ;; Add GNUstep menu items Services, Hide and Quit. Rename Help to Info
840 ;; and put it first (i.e. omit from menu-bar-final-items. 840 ;; and put it first (i.e. omit from menu-bar-final-items.
diff --git a/src/w32term.c b/src/w32term.c
index db4ccf58138..ac29bbbbd46 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6922,10 +6922,15 @@ w32_initialize_display_info (Lisp_Object display_name)
6922 memset (dpyinfo, 0, sizeof (*dpyinfo)); 6922 memset (dpyinfo, 0, sizeof (*dpyinfo));
6923 6923
6924 dpyinfo->name_list_element = Fcons (display_name, Qnil); 6924 dpyinfo->name_list_element = Fcons (display_name, Qnil);
6925 dpyinfo->w32_id_name = xmalloc (SCHARS (Vinvocation_name) 6925 if (STRINGP (Vsystem_name))
6926 + SCHARS (Vsystem_name) + 2); 6926 {
6927 sprintf (dpyinfo->w32_id_name, "%s@%s", 6927 dpyinfo->w32_id_name = xmalloc (SCHARS (Vinvocation_name)
6928 SDATA (Vinvocation_name), SDATA (Vsystem_name)); 6928 + SCHARS (Vsystem_name) + 2);
6929 sprintf (dpyinfo->w32_id_name, "%s@%s",
6930 SDATA (Vinvocation_name), SDATA (Vsystem_name));
6931 }
6932 else
6933 dpyinfo->w32_id_name = xlispstrdup (Vinvocation_name);
6929 6934
6930 /* Default Console mode values - overridden when running in GUI mode 6935 /* Default Console mode values - overridden when running in GUI mode
6931 with values obtained from system metrics. */ 6936 with values obtained from system metrics. */