From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#27530: patch to cut and copy secondary Date: Tue, 05 Sep 2017 11:32:44 +0200 Message-ID: <87lgltbidf.fsf@gmail.com> References: <20170629.214304.1822535652145654069.tkk@misasa.okayama-u.ac.jp> <20170905.121104.688310267504171014.tkk@misasa.okayama-u.ac.jp> <87pob5bn1t.fsf@gmail.com> <20170905.182537.2023575934474224469.tkk@misasa.okayama-u.ac.jp> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504604872 27077 195.159.176.226 (5 Sep 2017 09:47:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2017 09:47:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27530@debbugs.gnu.org To: Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 05 11:47:37 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dpARm-0004zA-7W for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 11:47:06 +0200 Original-Received: from localhost ([::1]:57784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpARr-0005oM-OM for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 05:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpAEF-00026v-Ja for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 05:33:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpAEA-0001Ee-Sp for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 05:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41590) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpAEA-0001EQ-P6 for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 05:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpAEA-0007nq-DN for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 05:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Sep 2017 09:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27530 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27530-submit@debbugs.gnu.org id=B27530.150460397329980 (code B ref 27530); Tue, 05 Sep 2017 09:33:02 +0000 Original-Received: (at 27530) by debbugs.gnu.org; 5 Sep 2017 09:32:53 +0000 Original-Received: from localhost ([127.0.0.1]:50271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpAE1-0007nU-HV for submit@debbugs.gnu.org; Tue, 05 Sep 2017 05:32:53 -0400 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:35637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpADz-0007nE-Tr for 27530@debbugs.gnu.org; Tue, 05 Sep 2017 05:32:52 -0400 Original-Received: by mail-wm0-f43.google.com with SMTP id h144so2489258wme.0 for <27530@debbugs.gnu.org>; Tue, 05 Sep 2017 02:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CPel+6Gao6hvzBQ2s/2WJoIhm9+JFJrZ5E/GUQK2tVw=; b=ACOImLrRYq23tR/wKcQPEOepBtsy54IaQ/sS62ZZHWkmyLfovKRdJgV9CRSUYeXk3o 1tzh9H5RTPFd0r1KFn/W/mQ0WM5tjRTih8ixIsSquDyOV73a6TuWnL2BSbxEGjmJIBWt ACV7WS2DQ6R50RQ12LP02rFmhwUfuluIGyix0wKQeGB7H4fpMjM42sGyYHQ5zJL07dOL VhssdxQkcqlhrkpKy2a1L9yvOkB0eKBtMODjLGlsEsm3IG2VoC2gA1q4ApZu3OkNLjsL sumqIg00GTbZcXSmdVbagkpy6PKcpWB83yVkK6daQsPhVYDZFDfgiTrIAhGtmqkj+9fT ouBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CPel+6Gao6hvzBQ2s/2WJoIhm9+JFJrZ5E/GUQK2tVw=; b=Iinj2yzqiRK6PO0Nr+2v7P6r02tocb+fiWHEq+02M9fr8iU7r5VdE+B4/QZovbR9ia qqFH/l+Kczr/2nbHw1n/5hMyvwmUq5iWEURc6gBlUAQwhFk9eSw1oygZNZEoDONjmECQ KniLFdWypOmZFBgvwGGF6ju52DNXTvFe0vYFjHPRZqb/LPvTynbhjDZ/DJzqAaCeQ2so 1FwHZo0y6DbGrRWXq1EyqeMDPbgWbu2YJfZIWvnROjDLw5vmfOQZIXShO0nr7A7Zd3vG cFwSqy4QN75fBrTtOX/Vk1eieu0wKIHM9hXTmhleAzmlS2Cd3m2aogz10viLH0IZKXxc P83w== X-Gm-Message-State: AHPjjUjLfJmxqxI4RoRpDsh9qlyhqq5oDUJ6Dk/x2LWZXGC9OPRv1qY6 eb5Jy3Hzew4ADbc3OVk= X-Google-Smtp-Source: ADKCNb7qhr+7x+A3uMmcs5Jm8FJ2UtFaZgzH7pZe3niNpR737UKaWTDGEFt+6kXcnOUPN2FropHXzw== X-Received: by 10.28.30.137 with SMTP id e131mr1703205wme.40.1504603965587; Tue, 05 Sep 2017 02:32:45 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id f19sm97472wrf.85.2017.09.05.02.32.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 02:32:44 -0700 (PDT) In-Reply-To: <20170905.182537.2023575934474224469.tkk@misasa.okayama-u.ac.jp> (Tak Kunihiro's message of "Tue, 05 Sep 2017 18:25:37 +0900 (JST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136599 Archived-At: Tak Kunihiro writes: >>> The function `mouse-exchange-point-and-mark-secondary' exchanges `mark >>> and point' and secondary. When there is neither primary nor >>> secondary, it behaves as `exchange-point-and-mark'. By doing this, no >>> revision is necessary for functions that react to region. >> >> This description seems to contradict the docstring: >>> >>> +(defun mouse-exchange-point-and-mark-secondary (&optional arg) >>> + "Exchange the point and the mark, and the secondary selection. >>> +When the mark is active, this exchanges the point and the mark >>> +then creates the secondary selection from the primary selection. >>> +When the mark is not active but the secondary selection exists, >>> +this restores the primary selection from the secondary selection." >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> >> Could you explain in more detail how this functions? The behaviour >> seems useful, but I don't understand exactly what it does just from >> the docstring. > > The function exchanges point and mark. > When there is region, this also creates secondary. > When there is secondary, this converts secondary to primary in advance. > OK. So if I've understood correctly, the user can then use C-y to yank the primary (which was the secondary before)? Regards Robert