aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/nsselect.m43
2 files changed, 19 insertions, 29 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 34f19b85389..2c5aa61e417 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * nsselect.m (ns-own-selection-internal, ns-disown-selection-internal):
4 Rename from the "x-" prefix.
5
12014-10-01 Stefan Monnier <monnier@iro.umontreal.ca> 62014-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * xselect.c (selection-converter-alist): Fix docstring. 8 * xselect.c (selection-converter-alist): Fix docstring.
diff --git a/src/nsselect.m b/src/nsselect.m
index 038849c0aed..3712ba064e7 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -328,19 +328,14 @@ ns_string_to_pasteboard (id pb, Lisp_Object str)
328 ========================================================================== */ 328 ========================================================================== */
329 329
330 330
331DEFUN ("x-own-selection-internal", Fx_own_selection_internal, 331DEFUN ("ns-own-selection-internal", Fns_own_selection_internal,
332 Sx_own_selection_internal, 2, 3, 0, 332 Sns_own_selection_internal, 2, 2, 0,
333 doc: /* Assert an X selection of type SELECTION and value VALUE. 333 doc: /* Assert an X selection of type SELECTION and value VALUE.
334SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. 334SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'.
335\(Those are literal upper-case symbol names, since that's what X expects.) 335\(Those are literal upper-case symbol names, since that's what X expects.)
336VALUE is typically a string, or a cons of two markers, but may be 336VALUE is typically a string, or a cons of two markers, but may be
337anything that the functions on `selection-converter-alist' know about. 337anything that the functions on `selection-converter-alist' know about. */)
338 338 (Lisp_Object selection, Lisp_Object value)
339FRAME should be a frame that should own the selection. If omitted or
340nil, it defaults to the selected frame.
341
342On Nextstep, FRAME is unused. */)
343 (Lisp_Object selection, Lisp_Object value, Lisp_Object frame)
344{ 339{
345 id pb; 340 id pb;
346 Lisp_Object old_value, new_value; 341 Lisp_Object old_value, new_value;
@@ -385,21 +380,11 @@ On Nextstep, FRAME is unused. */)
385} 380}
386 381
387 382
388DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal, 383DEFUN ("ns-disown-selection-internal", Fns_disown_selection_internal,
389 Sx_disown_selection_internal, 1, 3, 0, 384 Sns_disown_selection_internal, 1, 1, 0,
390 doc: /* If we own the selection SELECTION, disown it. 385 doc: /* If we own the selection SELECTION, disown it.
391Disowning it means there is no such selection. 386Disowning it means there is no such selection. */)
392 387 (Lisp_Object selection)
393Sets the last-change time for the selection to TIME-OBJECT (by default
394the time of the last event).
395
396TERMINAL should be a terminal object or a frame specifying the X
397server to query. If omitted or nil, that stands for the selected
398frame's display, or the first available X display.
399
400On Nextstep, the TIME-OBJECT and TERMINAL arguments are unused.
401On MS-DOS, all this does is return non-nil if we own the selection. */)
402 (Lisp_Object selection, Lisp_Object time_object, Lisp_Object terminal)
403{ 388{
404 id pb; 389 id pb;
405 check_window_system (NULL); 390 check_window_system (NULL);
@@ -443,7 +428,7 @@ On Nextstep, TERMINAL is unused. */)
443} 428}
444 429
445 430
446DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p, 431DEFUN ("ns-selection-owner-p", Fns_selection_owner_p, Sns_selection_owner_p,
447 0, 2, 0, 432 0, 2, 0,
448 doc: /* Whether the current Emacs process owns the given X Selection. 433 doc: /* Whether the current Emacs process owns the given X Selection.
449The arg should be the name of the selection in question, typically one of 434The arg should be the name of the selection in question, typically one of
@@ -507,7 +492,7 @@ On Nextstep, TIME-STAMP and TERMINAL are unused. */)
507DEFUN ("ns-get-selection-internal", Fns_get_selection_internal, 492DEFUN ("ns-get-selection-internal", Fns_get_selection_internal,
508 Sns_get_selection_internal, 1, 1, 0, 493 Sns_get_selection_internal, 1, 1, 0,
509 doc: /* Returns the value of SELECTION as a string. 494 doc: /* Returns the value of SELECTION as a string.
510SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */) 495SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */)
511 (Lisp_Object selection) 496 (Lisp_Object selection)
512{ 497{
513 id pb; 498 id pb;
@@ -520,7 +505,7 @@ SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */)
520DEFUN ("ns-store-selection-internal", Fns_store_selection_internal, 505DEFUN ("ns-store-selection-internal", Fns_store_selection_internal,
521 Sns_store_selection_internal, 2, 2, 0, 506 Sns_store_selection_internal, 2, 2, 0,
522 doc: /* Sets the string value of SELECTION. 507 doc: /* Sets the string value of SELECTION.
523SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */) 508SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. */)
524 (Lisp_Object selection, Lisp_Object string) 509 (Lisp_Object selection, Lisp_Object string)
525{ 510{
526 id pb; 511 id pb;
@@ -546,11 +531,11 @@ syms_of_nsselect (void)
546 QTEXT = intern_c_string ("TEXT"); staticpro (&QTEXT); 531 QTEXT = intern_c_string ("TEXT"); staticpro (&QTEXT);
547 QFILE_NAME = intern_c_string ("FILE_NAME"); staticpro (&QFILE_NAME); 532 QFILE_NAME = intern_c_string ("FILE_NAME"); staticpro (&QFILE_NAME);
548 533
549 defsubr (&Sx_disown_selection_internal); 534 defsubr (&Sns_disown_selection_internal);
550 defsubr (&Sx_get_selection_internal); 535 defsubr (&Sx_get_selection_internal);
551 defsubr (&Sx_own_selection_internal); 536 defsubr (&Sns_own_selection_internal);
552 defsubr (&Sx_selection_exists_p); 537 defsubr (&Sx_selection_exists_p);
553 defsubr (&Sx_selection_owner_p); 538 defsubr (&Sns_selection_owner_p);
554 defsubr (&Sns_get_selection_internal); 539 defsubr (&Sns_get_selection_internal);
555 defsubr (&Sns_store_selection_internal); 540 defsubr (&Sns_store_selection_internal);
556 541