unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bruce Korb <bruce.korb@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs development <emacs-devel@gnu.org>
Subject: Re: How do I paste at new point with middle click?
Date: Mon, 30 Jul 2018 06:39:58 -0700	[thread overview]
Message-ID: <CAKRnqNK+RWWjpCos9YqkFDCg3om_V9G+=nG3Si5HrAm2M93gZA@mail.gmail.com> (raw)
In-Reply-To: <831sblqwiy.fsf@gnu.org>

On Sun, Jul 29, 2018 at 7:37 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> The file NEWS.24 describes how to get back that old behavior, under
> "Selection changes" (near the end of that section).  Did you do what
> it says?

(setq c-basic-offset 4)
(setq initial-buffer-choice 'nil)
(setq inhibit-startup-screen 't)
(when window-system (set-frame-size (selected-frame) 83 125))

(global-set-key (kbd "<mouse-2>") 'x-clipboard-yank)
(setq mouse-drag-copy-region 't)
(setq mouse-yank-at-point 't)
(setq save-interprogram-paste-before-kill 't)
(setq select-active-regions 'nil)
(setq x-select-enable-clipboard 'nil)
(setq x-select-enable-primary 't)

You mentioned "NEWS.24", but the emacs page https://www.gnu.org/software/emacs/
does not have a link. So now I have downloaded emacs 24.1 just for the
etc/NEWS file.
The relevant stuff being around line 400 of 1,470 lines.

So I changed the mouse-2 binding:
(global-set-key (kbd "<mouse-2>") 'mouse-yank-at-click)
but the result is the same. The paste happens at point instead of mouse cursor.
Anyway, given that emacs 24 is only now making it into the wild and causing
wild frustration (at least for me), please consider a straight up elisp text box
on the emacs page:

    (global-set-key (kbd "<mouse-2>") 'mouse-yank-at-click)
    (setq mouse-drag-copy-region 't)
    (setq mouse-yank-at-point 't)
    (setq save-interprogram-paste-before-kill 't)
    (setq select-active-regions 'nil)
    (setq x-select-enable-clipboard 'nil)
    (setq x-select-enable-primary 't)

except also with whatever fix is necessary for paste-at-mouse-point
instead of paste-at-point. Thank you. (Aside: I drag selected the above
elisp from a terminal and click-pasted in my browser to the mouse
point and *I CANNOT DO THAT IN EMACS*!! So, you do not seem
to be compatible "with modern X programs".)

Sorry for ranting. Just such a fundamental discontinuity and not-
normal-X-behavior is, as I said, "frustrating".

Regards, Bruce



  reply	other threads:[~2018-07-30 13:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-29 15:12 How do I paste at new point with middle click? Bruce Korb
2018-07-29 16:43 ` Eli Zaretskii
     [not found]   ` <CAKRnqNKYigmAbQr6Qjo9OChuo5EpfBRvnXTmKqpLvxKn4nu9Jg@mail.gmail.com>
     [not found]     ` <CAKRnqN+dPnQSn=b-dFocMrkr=kuBQtapufD99fSWVd0Pf6H1dA@mail.gmail.com>
2018-07-29 22:16       ` Bruce Korb
2018-07-30  1:12         ` Bruce Korb
2018-07-30  2:37           ` Eli Zaretskii
2018-07-30 13:39             ` Bruce Korb [this message]
2018-07-30 13:45               ` Bruce Korb
2018-07-30 14:37                 ` Eli Zaretskii
2018-07-30 14:48                   ` Bruce Korb
2018-07-30 13:50               ` Noam Postavsky
2018-07-30  2:34         ` Eli Zaretskii
2018-07-30  2:32     ` Eli Zaretskii
2018-07-30  7:32   ` Robert Pluim

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='CAKRnqNK+RWWjpCos9YqkFDCg3om_V9G+=nG3Si5HrAm2M93gZA@mail.gmail.com' \
    --to=bruce.korb@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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 public inbox

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

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