diff options
| author | Glenn Morris | 2018-02-13 14:22:16 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-02-13 14:22:16 -0800 |
| commit | 4bee1b8bacb9ce6107ea605da464d01f6bd3aa7d (patch) | |
| tree | dc5dc2098f8956b66620cc1003601f705c289cd2 /src/w16select.c | |
| parent | 6c7186de3bbb2b7652cdc01a68bee035761197e5 (diff) | |
| download | emacs-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.c | 36 |
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 | |||
| 683 | For MS-Windows and MS-DOS: | ||
| 684 | When sending or receiving text via selection and clipboard, the text | ||
| 685 | is encoded or decoded by this coding system. The default value is | ||
| 686 | the 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 | |||
| 689 | For X Windows: | ||
| 690 | When sending text via selection and clipboard, if the target | ||
| 691 | data-type matches with the type of this coding system, it is used | ||
| 692 | for encoding the text. Otherwise (including the case that this | ||
| 693 | variable is nil), a proper coding system is used as below: | ||
| 694 | |||
| 695 | data-type coding system | ||
| 696 | --------- ------------- | ||
| 697 | UTF8_STRING utf-8 | ||
| 698 | COMPOUND_TEXT compound-text-with-extensions | ||
| 699 | STRING iso-latin-1 | ||
| 700 | C_STRING no-conversion | ||
| 701 | |||
| 702 | When receiving text, if this coding system is non-nil, it is used | ||
| 703 | for decoding regardless of the data-type. If this is nil, a | ||
| 704 | proper coding system is used according to the data-type as above. | ||
| 705 | |||
| 706 | See also the documentation of the variable `x-select-request-type' how | ||
| 707 | to control which data-type to request for receiving text. | ||
| 708 | |||
| 709 | The 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. */); |
| 714 | Usually, `selection-coding-system' is used for communicating with | ||
| 715 | other programs (X Windows clients or MS Windows programs). But, if this | ||
| 716 | variable is set, it is used for the next communication only. | ||
| 717 | After 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"); |