diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-04-05 18:07:02 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-04-05 18:07:02 +0400 |
commit | 73931ad14ad7a51d91f10b19ae9ca8cadb256916 (patch) | |
tree | 43ac5997fa67fa4824162b85b84104b1056ab5ce /src/nsselect.m | |
parent | 632556e4feb1121faff0c6fd31ee84f7e13591ec (diff) | |
download | emacs-73931ad14ad7a51d91f10b19ae9ca8cadb256916.tar.gz |
Consistently use platform-specific function to detect window system.
* lisp.h (check_window_system): New prototype. This function is
going to replace check_x, check_w32 and check_ns.
(have_menus_p): Mention msdos.c in comment.
* fontset.c (check_window_system_func): Remove. Adjust all users.
* fontset.h (check_window_system_func): Remove prototype.
* nsterm.h (check_ns):
* xterm.h (check_x):
* w32term.h (check_w32): Likewise.
* menu.c (Fx_popup_menu): Use check_window_system.
* msdos.c (check_window_system): Define for MS-DOS.
* nsfns.m (check_window_system): Define for NS. Adjust all users.
* w32fns.c (check_window_system): Likewise for MS-Windows.
* xfns.c (check_window_system): Likewise for X.
* font.c, frame.c, nsmenu.m, nsselect.m, nsterm.m, w32menu.c:
* xfaces.c, xmenu.c: Use check_window_system where appropriate.
Diffstat (limited to 'src/nsselect.m')
-rw-r--r-- | src/nsselect.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nsselect.m b/src/nsselect.m index 49380f87945..2f539a16406 100644 --- a/src/nsselect.m +++ b/src/nsselect.m @@ -355,7 +355,7 @@ On Nextstep, FRAME is unused. */) Lisp_Object target_symbol, data; - check_ns (); + check_window_system (); CHECK_SYMBOL (selection); if (NILP (value)) error ("selection value may not be nil."); @@ -409,7 +409,7 @@ On MS-DOS, all this does is return non-nil if we own the selection. */) (Lisp_Object selection, Lisp_Object time_object, Lisp_Object terminal) { id pb; - check_ns (); + check_window_system (); CHECK_SYMBOL (selection); if (NILP (assq_no_quit (selection, Vselection_alist))) return Qnil; @@ -436,7 +436,7 @@ On Nextstep, TERMINAL is unused. */) id pb; NSArray *types; - check_ns (); + check_window_system (); CHECK_SYMBOL (selection); if (EQ (selection, Qnil)) selection = QPRIMARY; if (EQ (selection, Qt)) selection = QSECONDARY; @@ -464,7 +464,7 @@ frame's display, or the first available X display. On Nextstep, TERMINAL is unused. */) (Lisp_Object selection, Lisp_Object terminal) { - check_ns (); + check_window_system (); CHECK_SYMBOL (selection); if (EQ (selection, Qnil)) selection = QPRIMARY; if (EQ (selection, Qt)) selection = QSECONDARY; @@ -492,7 +492,7 @@ On Nextstep, TIME-STAMP and TERMINAL are unused. */) { Lisp_Object val; - check_ns (); + check_window_system (); CHECK_SYMBOL (selection_name); CHECK_SYMBOL (target_type); val = ns_get_local_selection (selection_name, target_type); @@ -516,7 +516,7 @@ SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */) (Lisp_Object selection) { id pb; - check_ns (); + check_window_system (); pb = ns_symbol_to_pb (selection); return pb != nil ? ns_string_from_pasteboard (pb) : Qnil; } @@ -529,7 +529,7 @@ SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */) (Lisp_Object selection, Lisp_Object string) { id pb; - check_ns (); + check_window_system (); pb = ns_symbol_to_pb (selection); if (pb != nil) ns_string_to_pasteboard (pb, string); return Qnil; |