jed-users mailing list

[2025 Date Index] [2025 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Re: Clipboard problem


I'm sorry, testing before writing is always a good idea. The problem is real
enough, though. In an scratch buffer, just insert:

   local_setkey("insert\(\"\(\)\"\)", "(");

and do 
 
    alt-x evalbuffer

and then the rest of the routine.

Morten Bo Johansen <mbj@xxxxxxxxx> wrote:

> Hi,
> 
> If you have the time, then in e.g. a scratch buffer, insert the following:
> 
>    define t()
>    {
>       insert("\(\)");
>    }
>   
>    local_setkey("(", t);
> 
> and do 
> 
>    alt-x evalbuffer
>    
> then typing "(" will insert "()".
> 
> Now, try to mark the "()" with the clipboard region selection - I do this by
> holding down the shift key and then drag over the region with the left mouse
> button. Then insert the selection - I do this by holding down the shift key
> and then press the middle mouse button. Instead of inserting "()", it
> inserts "())", i.e. an extra right parenthesis is added.
> 
> Why does it do this and how can I avoid it?
> 
> Jed's own copy/insert region functions have no problems.
> 
> Thanks,
> Morten
> _______________________________________________
> For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
> 

-- 
Morten Bo Johansen
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2025 date index] [2025 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]