diff options
| author | YAMAMOTO Mitsuharu | 2006-07-12 08:34:36 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-07-12 08:34:36 +0000 |
| commit | 279a8f1a78d05eb83b0a4f38393168d7b404c4df (patch) | |
| tree | 39b159f8add7b51dc1ae6ff3951a52ad9183d814 | |
| parent | 7ff147735137794affec748b42a4a77db7be27c8 (diff) | |
| download | emacs-279a8f1a78d05eb83b0a4f38393168d7b404c4df.tar.gz emacs-279a8f1a78d05eb83b0a4f38393168d7b404c4df.zip | |
(Window System Selections): Mention scrap support for Mac.
Default value of x-select-enable-clipboard is t on Mac.
| -rw-r--r-- | lispref/frames.texi | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lispref/frames.texi b/lispref/frames.texi index 09887d000dd..09b0df1615c 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi | |||
| @@ -1694,12 +1694,33 @@ and @code{x-set-selection} on MS-Windows support the text data type | |||
| 1694 | only; if the clipboard holds other types of data, Emacs treats the | 1694 | only; if the clipboard holds other types of data, Emacs treats the |
| 1695 | clipboard as empty. | 1695 | clipboard as empty. |
| 1696 | 1696 | ||
| 1697 | @cindex scrap support (for Mac OS) | ||
| 1698 | On Mac OS, selection-like data transfer between applications is | ||
| 1699 | performed through a mechanism called @dfn{scraps}. The clipboard is a | ||
| 1700 | particular scrap named @code{com.apple.scrap.clipboard}. Types of scrap | ||
| 1701 | data are called @dfn{scrap flavor types}, which are identified by | ||
| 1702 | four-char codes such as @code{TEXT}. Emacs associates a selection with | ||
| 1703 | a scrap, and a selection type with a scrap flavor type via | ||
| 1704 | @code{mac-scrap-name} and @code{mac-ostype} properties, respectively. | ||
| 1705 | |||
| 1706 | @example | ||
| 1707 | (get 'CLIPBOARD 'mac-scrap-name) | ||
| 1708 | @result{} "com.apple.scrap.clipboard" | ||
| 1709 | (get 'com.apple.traditional-mac-plain-text 'mac-ostype) | ||
| 1710 | @result{} "TEXT" | ||
| 1711 | @end example | ||
| 1712 | |||
| 1713 | Conventionally, selection types for scrap flavor types on Mac OS have | ||
| 1714 | the form of @acronym{UTI, Uniform Type Identifier} such as | ||
| 1715 | @code{com.apple.traditional-mac-plain-text}, | ||
| 1716 | @code{public.utf16-plain-text}, and @code{public.file-url}. | ||
| 1717 | |||
| 1697 | @defopt x-select-enable-clipboard | 1718 | @defopt x-select-enable-clipboard |
| 1698 | If this is non-@code{nil}, the Emacs yank functions consult the | 1719 | If this is non-@code{nil}, the Emacs yank functions consult the |
| 1699 | clipboard before the primary selection, and the kill functions store in | 1720 | clipboard before the primary selection, and the kill functions store in |
| 1700 | the clipboard as well as the primary selection. Otherwise they do not | 1721 | the clipboard as well as the primary selection. Otherwise they do not |
| 1701 | access the clipboard at all. The default is @code{nil} on most systems, | 1722 | access the clipboard at all. The default is @code{nil} on most systems, |
| 1702 | but @code{t} on MS-Windows. | 1723 | but @code{t} on MS-Windows and Mac. |
| 1703 | @end defopt | 1724 | @end defopt |
| 1704 | 1725 | ||
| 1705 | @node Drag and Drop | 1726 | @node Drag and Drop |