[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Context Menu
From: |
Eli Zaretskii |
Subject: |
Re: New Context Menu |
Date: |
Wed, 18 Aug 2021 22:34:22 +0300 |
> Date: Wed, 18 Aug 2021 21:23:18 +0200
> From: Ergus <spacibba@aol.com>
> Cc: emacs-devel@gnu.org, juri@linkov.net
>
> >> Paste calls mouse-yank-primary, but in tty this commands calls
> >> gui-get-primary-selection and there is no selection because it tries to
> >> get the one on the primary selection not the one in the system
> >> (secoundary or clipboard) not the emacs kill-ring either.
> >>
> >> So I get: error("No selection is available")
> >
> >Which is the correct response. If you run on an xterm that supports
> >pasting, you will get the result as on GUI frames. Why is this a
> >problem?
> >
> If within Emacs I "Copy" throw context-menu, then I expect I could paste
> the copied thing in the same way. I expect C-y not <mouse-2> action.
>
> And if I copy from the browser, the context's menu paste must do the
> same and take it from the clipboard right? That's what a normal "Paste"
> do.
>
> In my case I use the xclip.el package from Stefan, so, everything could
> go throw Yank in my case. But that's a different beast.
>
> >And how do you get "Paste" in the context menu, btw?
>
> It is just there... what do you mean?
Ahh, I see now. Yes, it's wrong to call mouse-yank-primary here, as
that doesn't work on TTY frames. We should have a wrapper function
that calls yank if the selection doesn't exist.
- Re: New Context Menu, (continued)
- Re: New Context Menu, Eli Zaretskii, 2021/08/18
- Re: New Context Menu, Ergus, 2021/08/18
- Re: New Context Menu, Eli Zaretskii, 2021/08/18
- Re: New Context Menu, Ergus, 2021/08/18
- Re: New Context Menu, Eli Zaretskii, 2021/08/18
- Re: New Context Menu, Ergus, 2021/08/18
- Re: New Context Menu, Eli Zaretskii, 2021/08/19
- Re: New Context Menu, Juri Linkov, 2021/08/19
- Re: New Context Menu,
Eli Zaretskii <=
- Re: New Context Menu, Juri Linkov, 2021/08/18
- Re: New Context Menu, Eli Zaretskii, 2021/08/18
- Re: New Context Menu, Juri Linkov, 2021/08/19
- Re: New Context Menu, Eli Zaretskii, 2021/08/19
- Re: New Context Menu, Juri Linkov, 2021/08/20
- Re: New Context Menu, Eli Zaretskii, 2021/08/20
- Re: New Context Menu, Eli Zaretskii, 2021/08/20
- Re: New Context Menu, Juri Linkov, 2021/08/20
- Re: New Context Menu, Ergus, 2021/08/20
- Re: New Context Menu, Eli Zaretskii, 2021/08/20