summaryrefslogtreecommitdiff
path: root/lispref/frames.texi
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2006-07-12 08:34:36 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2006-07-12 08:34:36 +0000
commit279a8f1a78d05eb83b0a4f38393168d7b404c4df (patch)
tree39b159f8add7b51dc1ae6ff3951a52ad9183d814 /lispref/frames.texi
parent7ff147735137794affec748b42a4a77db7be27c8 (diff)
downloademacs-279a8f1a78d05eb83b0a4f38393168d7b404c4df.tar.gz
(Window System Selections): Mention scrap support for Mac.
Default value of x-select-enable-clipboard is t on Mac.
Diffstat (limited to 'lispref/frames.texi')
-rw-r--r--lispref/frames.texi23
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
only; if the clipboard holds other types of data, Emacs treats the
clipboard as empty.
+@cindex scrap support (for Mac OS)
+On Mac OS, selection-like data transfer between applications is
+performed through a mechanism called @dfn{scraps}. The clipboard is a
+particular scrap named @code{com.apple.scrap.clipboard}. Types of scrap
+data are called @dfn{scrap flavor types}, which are identified by
+four-char codes such as @code{TEXT}. Emacs associates a selection with
+a scrap, and a selection type with a scrap flavor type via
+@code{mac-scrap-name} and @code{mac-ostype} properties, respectively.
+
+@example
+(get 'CLIPBOARD 'mac-scrap-name)
+ @result{} "com.apple.scrap.clipboard"
+(get 'com.apple.traditional-mac-plain-text 'mac-ostype)
+ @result{} "TEXT"
+@end example
+
+Conventionally, selection types for scrap flavor types on Mac OS have
+the form of @acronym{UTI, Uniform Type Identifier} such as
+@code{com.apple.traditional-mac-plain-text},
+@code{public.utf16-plain-text}, and @code{public.file-url}.
+
@defopt x-select-enable-clipboard
If this is non-@code{nil}, the Emacs yank functions consult the
clipboard before the primary selection, and the kill functions store in
the clipboard as well as the primary selection. Otherwise they do not
access the clipboard at all. The default is @code{nil} on most systems,
-but @code{t} on MS-Windows.
+but @code{t} on MS-Windows and Mac.
@end defopt
@node Drag and Drop