Chris Palmer wrote:
2. Whenever I start xemacs, I get this on stderr:
_XF86BigfontQueryFont: could not attach shm segment
It doesn't appear to hurt anything; xemacs works fine from what I can
tell.
Probably harmless.
Unless it's related to this:
It isn't.
3. When I do a text copy in an OS X app like Terminal and then try
to
paste into XEmacs with C-y, the minibuffer says:
Selection conversion error: no selection, CLIPBOARD
When I do a text copy in an X app like rxvt and then try to paste into
XEmacs with C-y, the last thing I copied in XEmacs is pasted instead of
what I copied in the rxvt.
Finally, I DO get the expected results when I paste into XEmacs using
the mouse instead of C-y.
Whereas Windows (and presumably MacOS) has a concept of "the clipboard",
X has a potentially unlimited number of "selections". Of these, two
are commonly used.
The "primary selection" generally corresponds to the highlighted text;
this is the data which will normally be pasted when pressing the
middle mouse button. You can bind a key to this operation with e.g.:
(define-key global-map '(meta insert) 'x-insert-selection)
This will allow you to paste the primary selection with Meta-Insert
("Meta" is probably going to be labelled with "Alt" or that
four-leaf-clover shape; it's whatever key you have to use for "M-x").
The "clipboard" is a separate selection which behaves like the Windows
clipboard. You have to explicitly cut or copy data to the clipboard
before you can paste it. In XEmacs, Ctrl-Insert copies the highlighted
text to the clipboard ("copy"), while Shift-Insert pastes the contents
of the clipboard ("paste"). You can bind a key to the "cut" operation
with e.g.:
(define-key global-map '(shift delete) 'kill-primary-selection)
As well as those, XEmacs has the "kill ring". This is internal to
XEmacs, although the default is to make some attempt at keeping it
synchronised with the clipboard. The kill ring is manipulated with
Ctrl-w, Meta-w and Ctrl-y (cut, copy, paste, respectively).
Among X applications, most support the primary selection; some also
support the clipboard. In all probability, the X primary selection and
clipboard will be completely independent of the MacOS selection and/or
clipboard unless there is some utility which specifically synchronises
the two.
--
Glynn Clements <glynn.clements(a)virgin.net>