comparison src/w16select.c @ 41940:63819c5d6049

Change doc-string comments to `new style' [w/`doc:' keyword].
author Pavel Janík <Pavel@Janik.cz>
date Tue, 11 Dec 2001 06:22:43 +0000
parents cdfd4d09b79a
children aa52a9cea9f8
comparison
equal deleted inserted replaced
41939:e9a4c1f03019 41940:63819c5d6049
479 "(Binary characters in saved text; clipboard data not set.)"; 479 "(Binary characters in saved text; clipboard data not set.)";
480 static char system_error_msg[] = 480 static char system_error_msg[] =
481 "(Clipboard interface failure; clipboard data not set.)"; 481 "(Clipboard interface failure; clipboard data not set.)";
482 482
483 DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0, 483 DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0,
484 "This sets the clipboard data to the given text.") 484 doc: /* This sets the clipboard data to the given text. */)
485 (string, frame) 485 (string, frame)
486 Lisp_Object string, frame; 486 Lisp_Object string, frame;
487 { 487 {
488 unsigned ok = 1, put_status = 0; 488 unsigned ok = 1, put_status = 0;
489 int nbytes; 489 int nbytes;
490 unsigned char *src, *dst = NULL; 490 unsigned char *src, *dst = NULL;
491 int charset_info; 491 int charset_info;
590 590
591 return (ok && put_status == 0 ? string : Qnil); 591 return (ok && put_status == 0 ? string : Qnil);
592 } 592 }
593 593
594 DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0, 594 DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0,
595 "This gets the clipboard data in text format.") 595 doc: /* This gets the clipboard data in text format. */)
596 (frame) 596 (frame)
597 Lisp_Object frame; 597 Lisp_Object frame;
598 { 598 {
599 unsigned data_size, truelen; 599 unsigned data_size, truelen;
600 unsigned char *htext; 600 unsigned char *htext;
689 } 689 }
690 690
691 /* Support checking for a clipboard selection. */ 691 /* Support checking for a clipboard selection. */
692 692
693 DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p, 693 DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p,
694 0, 1, 0, 694 0, 1, 0,
695 "Whether there is an owner for the given X Selection.\n\ 695 doc: /* Whether there is an owner for the given X Selection.
696 The arg should be the name of the selection in question, typically one of\n\ 696 The arg should be the name of the selection in question, typically one of
697 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.\n\ 697 the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
698 \(Those are literal upper-case symbol names, since that's what X expects.)\n\ 698 \(Those are literal upper-case symbol names, since that's what X expects.)
699 For convenience, the symbol nil is the same as `PRIMARY',\n\ 699 For convenience, the symbol nil is the same as `PRIMARY',
700 and t is the same as `SECONDARY'.") 700 and t is the same as `SECONDARY'. */)
701 (selection) 701 (selection)
702 Lisp_Object selection; 702 Lisp_Object selection;
703 { 703 {
704 CHECK_SYMBOL (selection); 704 CHECK_SYMBOL (selection);
705 705
706 /* Return nil for SECONDARY selection. For PRIMARY (or nil) 706 /* Return nil for SECONDARY selection. For PRIMARY (or nil)
739 defsubr (&Sw16_set_clipboard_data); 739 defsubr (&Sw16_set_clipboard_data);
740 defsubr (&Sw16_get_clipboard_data); 740 defsubr (&Sw16_get_clipboard_data);
741 defsubr (&Sx_selection_exists_p); 741 defsubr (&Sx_selection_exists_p);
742 742
743 DEFVAR_LISP ("selection-coding-system", &Vselection_coding_system, 743 DEFVAR_LISP ("selection-coding-system", &Vselection_coding_system,
744 "Coding system for communicating with other X clients.\n\ 744 doc: /* Coding system for communicating with other X clients.
745 When sending or receiving text via cut_buffer, selection, and clipboard,\n\ 745 When sending or receiving text via cut_buffer, selection, and clipboard,
746 the text is encoded or decoded by this coding system.\n\ 746 the text is encoded or decoded by this coding system.
747 A default value is `iso-latin-1-dos'"); 747 A default value is `iso-latin-1-dos'. */);
748 Vselection_coding_system=intern ("iso-latin-1-dos"); 748 Vselection_coding_system=intern ("iso-latin-1-dos");
749 749
750 DEFVAR_LISP ("next-selection-coding-system", &Vnext_selection_coding_system, 750 DEFVAR_LISP ("next-selection-coding-system", &Vnext_selection_coding_system,
751 "Coding system for the next communication with other X clients.\n\ 751 doc: /* Coding system for the next communication with other X clients.
752 Usually, `selection-coding-system' is used for communicating with\n\ 752 Usually, `selection-coding-system' is used for communicating with
753 other X clients. But, if this variable is set, it is used for the\n\ 753 other X clients. But, if this variable is set, it is used for the
754 next communication only. After the communication, this variable is\n\ 754 next communication only. After the communication, this variable is
755 set to nil."); 755 set to nil. */);
756 Vnext_selection_coding_system = Qnil; 756 Vnext_selection_coding_system = Qnil;
757 757
758 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY); 758 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY);
759 QCLIPBOARD = intern ("CLIPBOARD"); staticpro (&QCLIPBOARD); 759 QCLIPBOARD = intern ("CLIPBOARD"); staticpro (&QCLIPBOARD);
760 } 760 }