aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2014-05-05 19:37:43 +0200
committerJan Djärv2014-05-05 19:37:43 +0200
commit879e36286d46283ac4b3e794c502bfac4c33016d (patch)
tree642a134d47dc3971dd226ba9d5fda591552012b5 /src
parentdccb0688651388531f00de3c8b365cdabcf54aa2 (diff)
downloademacs-879e36286d46283ac4b3e794c502bfac4c33016d.tar.gz
emacs-879e36286d46283ac4b3e794c502bfac4c33016d.zip
* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
not initialized. Fixes: debbugs:17398
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsselect.m4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0f6aaf93598..9839b6a2146 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-05-05 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
4 not initialized (Bug#17398).
5
12014-05-04 Paul Eggert <eggert@cs.ucla.edu> 62014-05-04 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Revert recent libpng changes (Bug#17339). 8 Revert recent libpng changes (Bug#17339).
diff --git a/src/nsselect.m b/src/nsselect.m
index f4713cb5e10..038849c0aed 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -429,7 +429,9 @@ On Nextstep, TERMINAL is unused. */)
429 id pb; 429 id pb;
430 NSArray *types; 430 NSArray *types;
431 431
432 check_window_system (NULL); 432 if (!window_system_available (NULL))
433 return Qnil;
434
433 CHECK_SYMBOL (selection); 435 CHECK_SYMBOL (selection);
434 if (EQ (selection, Qnil)) selection = QPRIMARY; 436 if (EQ (selection, Qnil)) selection = QPRIMARY;
435 if (EQ (selection, Qt)) selection = QSECONDARY; 437 if (EQ (selection, Qt)) selection = QSECONDARY;