mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 08:10:21 -08:00
* emacsclient.c (decode_options): Use a dummy display name under NS/Cocoa.
This commit is contained in:
parent
87248b4462
commit
e7534fc4ed
2 changed files with 14 additions and 1 deletions
|
|
@ -574,7 +574,15 @@ decode_options (argc, argv)
|
|||
inconvenient. So we force users to use "--display $DISPLAY" if
|
||||
they want Emacs to connect to their current display. */
|
||||
if (!current_frame && !tty && !display)
|
||||
display = egetenv ("DISPLAY");
|
||||
{
|
||||
display = egetenv ("DISPLAY");
|
||||
#ifdef NS_IMPL_COCOA
|
||||
/* Under Cocoa, we don't really use displays the same way as in X,
|
||||
so provide a dummy. */
|
||||
if (!display || strlen (display) == 0)
|
||||
display = "ns";
|
||||
#endif
|
||||
}
|
||||
|
||||
/* A null-string display is invalid. */
|
||||
if (display && strlen (display) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue