all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fedora 40 emacs clipboard appending
@ 2024-04-26 18:17 Ken Goldman
  2024-04-27  0:27 ` Po Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Ken Goldman @ 2024-04-26 18:17 UTC (permalink / raw)
  To: help-gnu-emacs

My environment is emacs on Fedora 40 in a VNC window, the vnc client is 
Windows 11.

When I copy-region-as-kill, it appends to the clipboard vnc uses, so
paste in Windows gets a long history.

All works for windows other than emacs, and it only fails when I paste
to Windows.

I know that there are many Linux and emacs clipboards, and something 
changed with Fedora 40.

Any hints?




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fedora 40 emacs clipboard appending
  2024-04-26 18:17 Fedora 40 emacs clipboard appending Ken Goldman
@ 2024-04-27  0:27 ` Po Lu
  2024-04-28 20:56   ` Neal Becker
  0 siblings, 1 reply; 7+ messages in thread
From: Po Lu @ 2024-04-27  0:27 UTC (permalink / raw)
  To: Ken Goldman; +Cc: help-gnu-emacs

Ken Goldman <kgoldman@us.ibm.com> writes:

> My environment is emacs on Fedora 40 in a VNC window, the vnc client
> is Windows 11.
>
> When I copy-region-as-kill, it appends to the clipboard vnc uses, so
> paste in Windows gets a long history.
>
> All works for windows other than emacs, and it only fails when I paste
> to Windows.
>
> I know that there are many Linux and emacs clipboards, and something
> changed with Fedora 40.
>
> Any hints?

Fedora moved to installing the PGTK configuration of Emacs by default,
which isn't designed for X servers, of which your VNC server probably is
one.  You should either reinstall a different package (emacs-x11?) or
build Emacs from source.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fedora 40 emacs clipboard appending
  2024-04-27  0:27 ` Po Lu
@ 2024-04-28 20:56   ` Neal Becker
  2024-04-29  7:03     ` Eli Zaretskii
  2024-05-15 19:20     ` Ken Goldman
  0 siblings, 2 replies; 7+ messages in thread
From: Neal Becker @ 2024-04-28 20:56 UTC (permalink / raw)
  To: help-gnu-emacs

Po Lu wrote:

> Ken Goldman <kgoldman@us.ibm.com> writes:
> 
>> My environment is emacs on Fedora 40 in a VNC window, the vnc client
>> is Windows 11.
>>
>> When I copy-region-as-kill, it appends to the clipboard vnc uses, so
>> paste in Windows gets a long history.
>>
>> All works for windows other than emacs, and it only fails when I paste
>> to Windows.
>>
>> I know that there are many Linux and emacs clipboards, and something
>> changed with Fedora 40.
>>
>> Any hints?
> 
> Fedora moved to installing the PGTK configuration of Emacs by default,
> which isn't designed for X servers, of which your VNC server probably is
> one.  You should either reinstall a different package (emacs-x11?) or
> build Emacs from source.
rpm -qa emacs*
emacs-filesystem-29.3-5.fc40.noarch
emacs-gtk+x11-29.3-5.fc40.x86_64 <<< This one
emacs-common-29.3-5.fc40.x86_64
emacs-29.3-5.fc40.x86_64





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fedora 40 emacs clipboard appending
  2024-04-28 20:56   ` Neal Becker
@ 2024-04-29  7:03     ` Eli Zaretskii
  2024-05-15 19:20     ` Ken Goldman
  1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2024-04-29  7:03 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Neal Becker <ndbecker2@gmail.com>
> Date: Sun, 28 Apr 2024 16:56:22 -0400
> 
> Po Lu wrote:
> 
> > Ken Goldman <kgoldman@us.ibm.com> writes:
> > 
> >> My environment is emacs on Fedora 40 in a VNC window, the vnc client
> >> is Windows 11.
> >>
> >> When I copy-region-as-kill, it appends to the clipboard vnc uses, so
> >> paste in Windows gets a long history.
> >>
> >> All works for windows other than emacs, and it only fails when I paste
> >> to Windows.
> >>
> >> I know that there are many Linux and emacs clipboards, and something
> >> changed with Fedora 40.
> >>
> >> Any hints?
> > 
> > Fedora moved to installing the PGTK configuration of Emacs by default,
> > which isn't designed for X servers, of which your VNC server probably is
> > one.  You should either reinstall a different package (emacs-x11?) or
> > build Emacs from source.
> rpm -qa emacs*
> emacs-filesystem-29.3-5.fc40.noarch
> emacs-gtk+x11-29.3-5.fc40.x86_64 <<< This one
> emacs-common-29.3-5.fc40.x86_64
> emacs-29.3-5.fc40.x86_64

Are you sure the OP has the same version installed?

In any case, try to see what happens when you call kill-new instead of
copy-region-as-kill: if kill-new sets the clipboard instead of
appending, then the problem is that somehow Emacs thinks the previous
command was also kill-region.  If kill-new also appends, then I
suggest to step with Edebug through kill-new and see what's going on
there.  Perhaps there's some customization which causes this, or maybe
interprogram-cut-function does something unusual in this case.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fedora 40 emacs clipboard appending
  2024-04-28 20:56   ` Neal Becker
  2024-04-29  7:03     ` Eli Zaretskii
@ 2024-05-15 19:20     ` Ken Goldman
  2024-05-16 13:12       ` Stefan Monnier via Users list for the GNU Emacs text editor
  2024-05-16 14:41       ` tpeplt
  1 sibling, 2 replies; 7+ messages in thread
From: Ken Goldman @ 2024-05-15 19:20 UTC (permalink / raw)
  To: help-gnu-emacs

On 4/28/2024 4:56 PM, Neal Becker wrote:
> Po Lu wrote:
> 
>> Ken Goldman <kgoldman@us.ibm.com> writes:
>>
>>> My environment is emacs on Fedora 40 in a VNC window, the vnc client
>>> is Windows 11.
>>>
>>> When I copy-region-as-kill, it appends to the clipboard vnc uses, so
>>> paste in Windows gets a long history.
>>>
>>> All works for windows other than emacs, and it only fails when I paste
>>> to Windows.
>>>
>>> I know that there are many Linux and emacs clipboards, and something
>>> changed with Fedora 40.
>>>
>>> Any hints?
>>
>> Fedora moved to installing the PGTK configuration of Emacs by default,
>> which isn't designed for X servers, of which your VNC server probably is
>> one.  You should either reinstall a different package (emacs-x11?) or
>> build Emacs from source.
> rpm -qa emacs*
> emacs-filesystem-29.3-5.fc40.noarch
> emacs-gtk+x11-29.3-5.fc40.x86_64 <<< This one
> emacs-common-29.3-5.fc40.x86_64
> emacs-29.3-5.fc40.x86_64

For the record, this is correct.

Aliasing emacs to emacs-gtk+x11 fixed the clipboard.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fedora 40 emacs clipboard appending
  2024-05-15 19:20     ` Ken Goldman
@ 2024-05-16 13:12       ` Stefan Monnier via Users list for the GNU Emacs text editor
  2024-05-16 14:41       ` tpeplt
  1 sibling, 0 replies; 7+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2024-05-16 13:12 UTC (permalink / raw)
  To: help-gnu-emacs

> Aliasing emacs to emacs-gtk+x11 fixed the clipboard.

I wish we improved our code so that we can build an Emacs that can handle
both Wayland and X11 frames.


        Stefan




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Fedora 40 emacs clipboard appending
  2024-05-15 19:20     ` Ken Goldman
  2024-05-16 13:12       ` Stefan Monnier via Users list for the GNU Emacs text editor
@ 2024-05-16 14:41       ` tpeplt
  1 sibling, 0 replies; 7+ messages in thread
From: tpeplt @ 2024-05-16 14:41 UTC (permalink / raw)
  To: Ken Goldman; +Cc: help-gnu-emacs

Ken Goldman <kgoldnorwalk@gmail.com> writes:

>>>
>>> Fedora moved to installing the PGTK configuration of Emacs by default,
>>> which isn't designed for X servers, of which your VNC server probably is
>>> one.  You should either reinstall a different package (emacs-x11?) or
>>> build Emacs from source.
>> rpm -qa emacs*
>> emacs-filesystem-29.3-5.fc40.noarch
>> emacs-gtk+x11-29.3-5.fc40.x86_64 <<< This one
>> emacs-common-29.3-5.fc40.x86_64
>> emacs-29.3-5.fc40.x86_64
>
> For the record, this is correct.
>
> Aliasing emacs to emacs-gtk+x11 fixed the clipboard.
>

You might want to consider using the ‘alternatives’ package that was
created to support having different programs that perform similar
actions on a single system.

Try the following at a shell prompt:

$ man 8 alternatives

This should display the manual page for ‘alternatives’ if it is
installed in your file system.

If it is installed, then try the ‘--display’ option for the ‘emacs’
group:

$ alternatives --display emacs
emacs - status is auto.
 link currently points to /usr/bin/emacs-29.3
/usr/bin/emacs-29.3-gtk+x11 - priority 75
/usr/bin/emacs-29.3 - priority 80
Current `best' version is /usr/bin/emacs-29.3.

If this works, then try the ‘--config’ option to change the priority:

$ sudo alternatives --config emacs
Swipe your finger across the fingerprint reader

There are 2 programs which provide 'emacs'.

  Selection    Command
-----------------------------------------------
   1           /usr/bin/emacs-29.3-gtk+x11
*+ 2           /usr/bin/emacs-29.3

Enter to keep the current selection[+], or type selection number: 1

Then use the ‘--display’ option again to confirm the change:

$ alternatives --display emacs
emacs - status is manual.
 link currently points to /usr/bin/emacs-29.3-gtk+x11
/usr/bin/emacs-29.3-gtk+x11 - priority 75
/usr/bin/emacs-29.3 - priority 80
Current `best' version is /usr/bin/emacs-29.3.

Of course, you can use the ‘--config’ option to revert to the default
setting if you have problems with the new configuration.

Here are the first two paragraphs of the ‘Description’ section of ‘man 8
alternatives’ to understand the justification given for the creation of
the ‘alternatives’ package:

DESCRIPTION
       alternatives creates, removes, maintains and displays information about
       the symbolic links comprising the alternatives system. The alternatives
       system  is a reimplementation of the Debian alternatives system. It was
       rewritten primarily to remove the dependence on perl; it is intended to
       be a drop in replacement for Debian's update-dependencies script.  This
       man page is a slightly modified version of the man page from the Debian
       project.

       It  is  possible  for  several  programs fulfilling the same or similar
       functions to be installed on a single system at the same time.  For ex‐
       ample, many systems have several text editors installed at once.   This
       gives choice to the users of a system, allowing each to use a different
       editor, if desired, but makes it difficult for a program to make a good
       choice  of  editor to invoke if the user has not specified a particular
       preference.


-- 
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-16 14:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-26 18:17 Fedora 40 emacs clipboard appending Ken Goldman
2024-04-27  0:27 ` Po Lu
2024-04-28 20:56   ` Neal Becker
2024-04-29  7:03     ` Eli Zaretskii
2024-05-15 19:20     ` Ken Goldman
2024-05-16 13:12       ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-05-16 14:41       ` tpeplt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.