Mercurial > emacs
comparison src/nsselect.m @ 103326:65c6cc4bd9c8
nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p,
Fx_selection_owner_p): rename from Fns_own_selection_internal,
Fns_selection_exists_p, Fns_selection_owner_p.
author | David Reitter <david.reitter@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 14:08:16 +0000 |
parents | b5a34573cf82 |
children | bb413968898a |
comparison
equal
deleted
inserted
replaced
103325:dbcad43aecdd | 103326:65c6cc4bd9c8 |
---|---|
369 Lisp Defuns | 369 Lisp Defuns |
370 | 370 |
371 ========================================================================== */ | 371 ========================================================================== */ |
372 | 372 |
373 | 373 |
374 DEFUN ("ns-own-selection-internal", Fns_own_selection_internal, | 374 DEFUN ("x-own-selection-internal", Fx_own_selection_internal, |
375 Sns_own_selection_internal, 2, 2, 0, | 375 Sx_own_selection_internal, 2, 2, 0, |
376 doc: /* Assert a selection. | 376 doc: /* Assert a selection. |
377 SELECTION-NAME is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. | 377 SELECTION-NAME is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. |
378 VALUE is typically a string, or a cons of two markers, but may be | 378 VALUE is typically a string, or a cons of two markers, but may be |
379 anything that the functions on `selection-converter-alist' know about. */) | 379 anything that the functions on `selection-converter-alist' know about. */) |
380 (selection_name, selection_value) | 380 (selection_name, selection_value) |
424 ns_undeclare_pasteboard (pb); | 424 ns_undeclare_pasteboard (pb); |
425 return Qt; | 425 return Qt; |
426 } | 426 } |
427 | 427 |
428 | 428 |
429 DEFUN ("ns-selection-exists-p", Fns_selection_exists_p, Sns_selection_exists_p, | 429 DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p, |
430 0, 1, 0, doc: /* Whether there is an owner for the given selection. | 430 0, 1, 0, doc: /* Whether there is an owner for the given selection. |
431 The arg should be the name of the selection in question, typically one of | 431 The arg should be the name of the selection in question, typically one of |
432 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. | 432 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. |
433 \(Those are literal upper-case symbol names.) | 433 \(Those are literal upper-case symbol names.) |
434 For convenience, the symbol nil is the same as `PRIMARY', | 434 For convenience, the symbol nil is the same as `PRIMARY', |
447 types =[pb types]; | 447 types =[pb types]; |
448 return ([types count] == 0) ? Qnil : Qt; | 448 return ([types count] == 0) ? Qnil : Qt; |
449 } | 449 } |
450 | 450 |
451 | 451 |
452 DEFUN ("ns-selection-owner-p", Fns_selection_owner_p, Sns_selection_owner_p, | 452 DEFUN ("x-selection-owner-p", Fx_selection_owner_p, Sx_selection_owner_p, |
453 0, 1, 0, | 453 0, 1, 0, |
454 doc: /* Whether the current Emacs process owns the given selection. | 454 doc: /* Whether the current Emacs process owns the given selection. |
455 The arg should be the name of the selection in question, typically one of | 455 The arg should be the name of the selection in question, typically one of |
456 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. | 456 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. |
457 \(Those are literal upper-case symbol names.) | 457 \(Those are literal upper-case symbol names.) |
554 QTEXT = intern ("TEXT"); staticpro (&QTEXT); | 554 QTEXT = intern ("TEXT"); staticpro (&QTEXT); |
555 QFILE_NAME = intern ("FILE_NAME"); staticpro (&QFILE_NAME); | 555 QFILE_NAME = intern ("FILE_NAME"); staticpro (&QFILE_NAME); |
556 | 556 |
557 defsubr (&Sx_disown_selection_internal); | 557 defsubr (&Sx_disown_selection_internal); |
558 defsubr (&Sx_get_selection_internal); | 558 defsubr (&Sx_get_selection_internal); |
559 defsubr (&Sns_own_selection_internal); | 559 defsubr (&Sx_own_selection_internal); |
560 defsubr (&Sns_selection_exists_p); | 560 defsubr (&Sx_selection_exists_p); |
561 defsubr (&Sns_selection_owner_p); | 561 defsubr (&Sx_selection_owner_p); |
562 #ifdef CUT_BUFFER_SUPPORT | 562 #ifdef CUT_BUFFER_SUPPORT |
563 defsubr (&Sns_get_cut_buffer_internal); | 563 defsubr (&Sns_get_cut_buffer_internal); |
564 defsubr (&Sns_rotate_cut_buffers_internal); | 564 defsubr (&Sns_rotate_cut_buffers_internal); |
565 defsubr (&Sns_store_cut_buffer_internal); | 565 defsubr (&Sns_store_cut_buffer_internal); |
566 #endif | 566 #endif |