all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Fedora 40 emacs clipboard appending
Date: Mon, 29 Apr 2024 10:03:25 +0300	[thread overview]
Message-ID: <86ttjkslaa.fsf@gnu.org> (raw)
In-Reply-To: <v0md5m$54i$1@ciao.gmane.io> (message from Neal Becker on Sun, 28 Apr 2024 16:56:22 -0400)

> 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.



  reply	other threads:[~2024-04-29  7:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86ttjkslaa.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.