aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorGlenn Morris2020-01-16 07:50:22 -0800
committerGlenn Morris2020-01-16 07:50:22 -0800
commit215d9fcb79b6ec3c241f58fdff02bf15fb952d0c (patch)
tree00b960d85395a10dd1831fef0fe73cb515dbbf11 /lib-src
parent0f4fa004ebbcf8796abab26988e79b01ba4f2ab5 (diff)
parent52080b5778cbe535c331fa14539aecd88f2be0a0 (diff)
downloademacs-215d9fcb79b6ec3c241f58fdff02bf15fb952d0c.tar.gz
emacs-215d9fcb79b6ec3c241f58fdff02bf15fb952d0c.zip
Merge from origin/emacs-27
52080b5778 (origin/emacs-27) * lisp/minibuffer.el (read-file-name-def... e4cec1fd10 ; * etc/NEWS: Fix some file name quotations. 13995f31a2 Make emacs prefer an existing ~/.emacs.d to an existing XD... 91cac24952 ; etc/NEWS minor edits 5505babc07 Describe --with-cairo non-support for bitmapped fonts. caf00066ee Mention GTK font chooser changes in NEWS 23b87db628 ; Unmaintain fortran elisp 3b0d1a50aa f90: handle F2008 module function 55803cc189 Move shell-related menu items to "Shell Commands" submenu ... 2be48605c0 * admin/notes/font-backend: Remove outdated file. (Bug#34663) f07a470124 Declare the ftx font backend driver obsolete 6c08a430fb ; Fix wording of a comment. # Conflicts: # admin/notes/font-backend # etc/NEWS
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 645ff04c6d4..204064f1871 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -924,21 +924,22 @@ open_config (char const *home, char const *xdg, char const *config_file)
924 char *configname = xmalloc (max (xdgsubdirsize, homesubdirsizemax) 924 char *configname = xmalloc (max (xdgsubdirsize, homesubdirsizemax)
925 + strlen (config_file)); 925 + strlen (config_file));
926 FILE *config; 926 FILE *config;
927 if (xdg || home) 927
928 if (home)
928 { 929 {
929 strcpy ((xdg 930 strcpy (stpcpy (stpcpy (configname, home), "/.emacs.d/server/"),
930 ? stpcpy (stpcpy (configname, xdg), "/emacs/server/") 931 config_file);
931 : stpcpy (stpcpy (configname, home), "/.config/emacs/server/")),
932 config_file);
933 config = fopen (configname, "rb"); 932 config = fopen (configname, "rb");
934 } 933 }
935 else 934 else
936 config = NULL; 935 config = NULL;
937 936
938 if (! config && home) 937 if (! config && (xdg || home))
939 { 938 {
940 strcpy (stpcpy (stpcpy (configname, home), "/.emacs.d/server/"), 939 strcpy ((xdg
941 config_file); 940 ? stpcpy (stpcpy (configname, xdg), "/emacs/server/")
941 : stpcpy (stpcpy (configname, home), "/.config/emacs/server/")),
942 config_file);
942 config = fopen (configname, "rb"); 943 config = fopen (configname, "rb");
943 } 944 }
944 945