aboutsummaryrefslogtreecommitdiffstats
path: root/src/w16select.c
diff options
context:
space:
mode:
authorGlenn Morris2018-02-13 14:22:16 -0800
committerGlenn Morris2018-02-13 14:22:16 -0800
commit4bee1b8bacb9ce6107ea605da464d01f6bd3aa7d (patch)
treedc5dc2098f8956b66620cc1003601f705c289cd2 /src/w16select.c
parent6c7186de3bbb2b7652cdc01a68bee035761197e5 (diff)
downloademacs-4bee1b8bacb9ce6107ea605da464d01f6bd3aa7d.tar.gz
emacs-4bee1b8bacb9ce6107ea605da464d01f6bd3aa7d.zip
Stop keeping multiple doc copies for items defined multiple times
It was always a nuisance to keep all the copies in sync. * src/doc.c (Fsnarf_documentation): Don't skip entire files. Instead, skip individual doc strings starting with "SKIP". * doc/lispref/internals.texi (Writing Emacs Primitives): Mention this skipping. * lisp/term/ns-win.el, lisp/term/pc-win.el, src/dosfns.c: * src/frame.c, src/nsfns.m, src/nsmenu.m, src/nsterm.m: * src/w16select.c, src/w32fns.c, src/w32menu.c, src/w32select.c: * src/w32term.c, src/xmenu.c: Remove duplicated doc strings. * src/xfns.c: Merge in information from doc string duplicates.
Diffstat (limited to 'src/w16select.c')
-rw-r--r--src/w16select.c36
1 files changed, 2 insertions, 34 deletions
diff --git a/src/w16select.c b/src/w16select.c
index ed3d041f2df..2d740a3ee61 100644
--- a/src/w16select.c
+++ b/src/w16select.c
@@ -678,43 +678,11 @@ syms_of_win16select (void)
678 defsubr (&Sw16_selection_exists_p); 678 defsubr (&Sw16_selection_exists_p);
679 679
680 DEFVAR_LISP ("selection-coding-system", Vselection_coding_system, 680 DEFVAR_LISP ("selection-coding-system", Vselection_coding_system,
681 doc: /* Coding system for communicating with other programs. 681 doc: /* SKIP: real doc in select.el. */);
682
683For MS-Windows and MS-DOS:
684When sending or receiving text via selection and clipboard, the text
685is encoded or decoded by this coding system. The default value is
686the current system default encoding on 9x/Me, `utf-16le-dos'
687\(Unicode) on NT/W2K/XP, and `iso-latin-1-dos' on MS-DOS.
688
689For X Windows:
690When sending text via selection and clipboard, if the target
691data-type matches with the type of this coding system, it is used
692for encoding the text. Otherwise (including the case that this
693variable is nil), a proper coding system is used as below:
694
695data-type coding system
696--------- -------------
697UTF8_STRING utf-8
698COMPOUND_TEXT compound-text-with-extensions
699STRING iso-latin-1
700C_STRING no-conversion
701
702When receiving text, if this coding system is non-nil, it is used
703for decoding regardless of the data-type. If this is nil, a
704proper coding system is used according to the data-type as above.
705
706See also the documentation of the variable `x-select-request-type' how
707to control which data-type to request for receiving text.
708
709The default value is nil. */);
710 Vselection_coding_system = intern ("iso-latin-1-dos"); 682 Vselection_coding_system = intern ("iso-latin-1-dos");
711 683
712 DEFVAR_LISP ("next-selection-coding-system", Vnext_selection_coding_system, 684 DEFVAR_LISP ("next-selection-coding-system", Vnext_selection_coding_system,
713 doc: /* Coding system for the next communication with other programs. 685 doc: /* SKIP: real doc in select.el. */);
714Usually, `selection-coding-system' is used for communicating with
715other programs (X Windows clients or MS Windows programs). But, if this
716variable is set, it is used for the next communication only.
717After the communication, this variable is set to nil. */);
718 Vnext_selection_coding_system = Qnil; 686 Vnext_selection_coding_system = Qnil;
719 687
720 DEFSYM (QCLIPBOARD, "CLIPBOARD"); 688 DEFSYM (QCLIPBOARD, "CLIPBOARD");