- Subject: Re: cut & paste and indention
- From: Morten Bo Johansen <mojo@xxxxxxxx>
- Date: Thu, 22 May 2003 20:24:24 +0200
Boris Folgmann <misc@xxxxxxxxxxxx> wrote:
BF> You get:
BF> Test
BF> Test
BF> Test
The paste_mode that I have attached should solve it.
BF> Related problem: cut & paste is not possible when using
BF> enable_xmouse() which is very comfortable for using the
BF> menus!
The way it works for me is that if I drag the mouse cursor over
some text with left mouse button and then release the button
the spanned text gets marked with jed's mark_region (?)
function and I can use the middle mouse button to paste that
text. If you only want to copy/paste then holding down the
shift key before depressing the left mouse button and dragging
is probably more comfortable.
Morten
--
"Experience is what enables you to recognize a mistake when you make it
again." (Earl Wilson)
% made by JED and pasted to the mailing list
% use as follows:
% M-x push_mode
% Push to mode: paste
% <paste with mouse>
% M-x pop_mode
$1 = "Paste";
!if (keymap_p ($1)) make_keymap ($1);
_for (32, 255, 1)
{
$2 = char ();
undefinekey ($2, $1);
definekey ("self_insert_cmd", $2, $1);
}
definekey ("newline", "\n", $1);
definekey ("newline", "\r", $1);
definekey ("self_insert_cmd", "\t", $1);
define paste_mode ()
{
variable kmap = "Paste";
set_mode (kmap, 2);
use_keymap (kmap);
runhooks ("paste_mode_hook");
}
provide("paste_mode");
[2003 date index]
[2003 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]