From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bruce Korb Newsgroups: gmane.emacs.devel Subject: Re: How do I paste at new point with middle click? Date: Mon, 30 Jul 2018 06:39:58 -0700 Message-ID: References: <83lg9uq9fj.fsf@gnu.org> <831sblqwiy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1532957922 12996 195.159.176.226 (30 Jul 2018 13:38:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 13:38:42 +0000 (UTC) Cc: emacs development To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 30 15:38:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fk8Nh-0003Ff-La for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 15:38:37 +0200 Original-Received: from localhost ([::1]:52702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk8Pm-00059T-Hp for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 09:40:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fk8Pf-00057q-Ap for emacs-devel@gnu.org; Mon, 30 Jul 2018 09:40:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fk8Pe-0008WG-Cc for emacs-devel@gnu.org; Mon, 30 Jul 2018 09:40:39 -0400 Original-Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:47029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fk8Pc-0008W0-Q1; Mon, 30 Jul 2018 09:40:36 -0400 Original-Received: by mail-qt0-x22f.google.com with SMTP id d4-v6so12043246qtn.13; Mon, 30 Jul 2018 06:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GM0ymJt1QwmM9vBW0alyoHkadgrlHqVSVUT2VaSA+Hg=; b=gjKHkf8XCoAxMo8cr9KxxmJahHctxECGtVNoNNeUH8Sk2mIloJT1eOWrP+B6zDUNuQ 0g9TxWWDeuNpfa4QSuRC2A+NB/vF7k8PCVMiK6iLm9R2PVO9M84c+jLj89hjelOambBb woC54OV+8YCNLXE0tWHljwx2/kWtxdzhE1bciNknBQvIyr+NvXrT+9cQIFe5CvKSq7u9 EC1tNzF+/6h8SpKzfgR9YetS3Pu4vZYMD9w3y83dC3s3W451RgZhO5ij2mtUbsiPyxTR BayF/rgKxFJyz+jhMbOr0pgTVkyWSI1kHWbQ5n1vX8PVBO/K4Dh2i7OAUJiI+T9aq4L2 RjRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GM0ymJt1QwmM9vBW0alyoHkadgrlHqVSVUT2VaSA+Hg=; b=Gj9kRx5VMv11D4rHeibLOOFXSBI55orlRd4QgnaVDrYWfM575ZRTtfK1lJ8rDH4Ilw uib1jKOkIXXcwgqb2vhylTeLkM3w2N7cpO5GpdsxsWHBicmseEftCELn7ASI5x6oKPSy z+bwsNZ7iih40d/3Ln4h/ZozQvj2NnGs1A9PbUTSNt9RglOmLdb9QqJmC8VAyaTrs/8P E+ocvgUlXF/ub10aQwCJydGU1YNZwy9N2jZQlit0qIHcZWkFW2LS1ht+Rk7oQHDRVX6b AwJJk1rqmkODxsjzh/55BSOZXAENF7Efg7XJegySnjCC1U1krNjMGHWwzvvkHkbBqTWC mNMA== X-Gm-Message-State: AOUpUlH5TXaI0Z5eoUL5+k/vX/rM+I74BOocN1UT6eGGgmjeNaklULTi GQkLR1UST8r/P4Ltg4caS03tCXz9S87U8qmpBksx0VTU2JE= X-Google-Smtp-Source: AAOMgpcAUa8PQ+xJTgdzzHcuMUu7TErL8aI7J3AdJhK9IQCPiOtkd5cpiMk4cSAC9RJgkcmqrKg78LKjRLU1bqCo8x4= X-Received: by 2002:a0c:9002:: with SMTP id o2-v6mr15159699qvo.173.1532958035947; Mon, 30 Jul 2018 06:40:35 -0700 (PDT) In-Reply-To: <831sblqwiy.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227987 Archived-At: On Sun, Jul 29, 2018 at 7:37 PM Eli Zaretskii 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 "") '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-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-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