Re: Продвинутая работа с клипбордом
Artem Chuprina <ran@ran.pp.ru> writes:
> EMZ> А вот у меня в emacs23-lucid выделение, как я уже выше сказал, попадает
> EMZ> одновременно в primary selection и в clipboard. И после kill тоже в оба
> EMZ> буфера.
>
> Э, а у меня - нет... Это недефолтная настройка?
Недефолтная, да. У меня установка:
(setq x-select-enable-clipboard t)
Если nil, то уже выделение в clipboard не попадает. Повторю, что это в
emacs 23 (lucid), но вот с Emacs 24 надо поиграться, так как, как
правильно ты заметил, они что-то изменили, но документировали это
дело. К сожалению, не могу проверить.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Clipboard.html:
Prior to Emacs 24, the kill and yank commands used the primary selection
(see Primary Selection), not the clipboard. If you prefer this behavior,
change x-select-enable-clipboard to nil, x-select-enable-primary to t,
and mouse-drag-copy-region to t. In this case, you can use the following
commands to act explicitly on the clipboard: clipboard-kill-region kills
the region and saves it to the clipboard; clipboard-kill-ring-save
copies the region to the kill ring and saves it to the clipboard; and
clipboard-yank yanks the contents of the clipboard at point.
Reply to: