- Subject: [jed-users] Re: Clipboard problem
- From: Morten Bo Johansen <mbj@xxxxxxxxx>
- Date: Mon, 26 May 2025 16:01:43 +0200
John E. Davis <jed@xxxxxxxxxxx> wrote:
> The reason you observe this behavior is that when you paste back into
> the editor, you are actually pasting into the terminal where jed is
> running, such as XTerm. This terminal then sends the pasted characters
> to the input stream as if they were typed directly. In this instance,
> jed detected two characters in the input stream: '(' and ')'. Since
> you assigned the '(' key to insert '()', the input character '('
> triggered the insertion of '()'. The second character in the input
> stream was simply ')', which was inserted as is. Consequently, the
> final result is: '())'.
>
> Use 'Esc-X paste' before pasting into the editor to avoid this issue.
Thanks for this explanation. I had to be something along those lines. I just
wondered, because if I do the same in the terminal version of Emacs with
e.g.
(local-set-key (kbd "(") (lambda () (interactive) (insert "()")))
I don't get this problem. But I suppose that it will take something at the
source code level in Jed to change it.
Thanks,
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2025 date index]
[2025 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]