unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: tpeplt <tpeplt@gmail.com>
To: Ken Goldman <kgoldnorwalk@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Fedora 40 emacs clipboard appending
Date: Thu, 16 May 2024 10:41:10 -0400	[thread overview]
Message-ID: <87zfspvmyh.fsf@gmail.com> (raw)
In-Reply-To: <2d9c393d-2084-481c-8a6b-05e622e7e733@us.ibm.com> (Ken Goldman's message of "Wed, 15 May 2024 15:20:37 -0400")

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.



      parent reply	other threads:[~2024-05-16 14:41 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
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 [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zfspvmyh.fsf@gmail.com \
    --to=tpeplt@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kgoldnorwalk@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).