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 09:51:42 +0200 Message-ID: <87pob5bn1t.fsf@gmail.com> References: <20170629.214304.1822535652145654069.tkk@misasa.okayama-u.ac.jp> <20170905.121104.688310267504171014.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 1504597958 13355 195.159.176.226 (5 Sep 2017 07:52:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2017 07:52:38 +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 09:52:22 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 1dp8ea-0002I0-Rm for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 09:52:12 +0200 Original-Received: from localhost ([::1]:57304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dp8eg-0005kU-71 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Sep 2017 03:52:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dp8eU-0005ic-Jw for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 03:52:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dp8eQ-0007WS-3H for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 03:52:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41483) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dp8eQ-0007Vx-0g for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 03:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dp8eP-0005N2-O4 for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2017 03:52:01 -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 07:52:01 +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.150459791220625 (code B ref 27530); Tue, 05 Sep 2017 07:52:01 +0000 Original-Received: (at 27530) by debbugs.gnu.org; 5 Sep 2017 07:51:52 +0000 Original-Received: from localhost ([127.0.0.1]:50164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dp8eG-0005Mb-HI for submit@debbugs.gnu.org; Tue, 05 Sep 2017 03:51:52 -0400 Original-Received: from mail-wr0-f175.google.com ([209.85.128.175]:35220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dp8eE-0005MO-OB for 27530@debbugs.gnu.org; Tue, 05 Sep 2017 03:51:52 -0400 Original-Received: by mail-wr0-f175.google.com with SMTP id y15so6687586wrc.2 for <27530@debbugs.gnu.org>; Tue, 05 Sep 2017 00:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:user-agent:mime-version; bh=WFh1tZJz1cf3JeMd/Eunupl9Wm4J6XDERmsJL9ctFr4=; b=qbsqpgg10YsbMzI4OgEJZM0Y2acmV3hvZUK0FPVIj9esjYNnKPxpuiLk8OmvsMtQT8 mcFrhYyeznjplqOYaqe+AwzJNM2FDrrRJsv65OUTho3JCcVb9JF+cbohoM2BLDpahc5b J902zQCwpEe0HKvxMd/+kaH2WYhCpo+eil953RVibVaj/8WoS4t42NFmw2QCi/tbsnae R9dXtdXVkvWb1WljiizVTlJt1cXOcISf+spppS2703oXhhCS2qSgp9HfW1joT5gtjFfw 66DGGnXzZmJt3zOCAlPCy+JProhAGk14s/Fy5Lw3hU/UxcEAjUERBPXkJYnqe9DHvGv/ DwGA== 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 :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version; bh=WFh1tZJz1cf3JeMd/Eunupl9Wm4J6XDERmsJL9ctFr4=; b=Dsp+uVO+oQRqwbU66Dw8d3+ccykrmayRcK2IUCMlvfiUNUXs6ESOW0dOeSEtMCmu4w 61AmrUz1fmSWfUfHG+hzzUcvUwFGwXN2d9deCCryar1KFetcZyGXbyoY7w8+axoi3AkD Z5u00gzdmRZwY+FD2N9Wxd3p8U9dlcgCfamEWGiY9BlmwYz2DnEud4RzM0rDhQOfY3kN lSm6TWh4DndLlfo5WfwdYxi5kJ4qZG8FVSyCC1YHwTGH4DeAtHO9JumyYD05mybeG64w pTGMByLEaNHCSAUp4cmtJNcRrnptuNtRQvnWIgUuS6SpOPAgBDDLNxj3RdfzjKnRAHZW Bl2w== X-Gm-Message-State: AHPjjUids21bssgqCoY6VBoYkDs4eCaqZfk9DVkF/gguWDY3TTYq2lrw 0/mQGmiT3LltVRM646w= X-Google-Smtp-Source: ADKCNb60ydbKnMHogvHR3rrx5RKIAaFQYVntpdXROBvWfpw36muQM5D25H+yB5gRkoHarX28/IhQaw== X-Received: by 10.223.174.194 with SMTP id y60mr1601692wrc.105.1504597904283; Tue, 05 Sep 2017 00:51:44 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id b196sm65889wmd.29.2017.09.05.00.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 00:51:43 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <20170905.121104.688310267504171014.tkk@misasa.okayama-u.ac.jp> (Tak Kunihiro's message of "Tue, 05 Sep 2017 12:11:04 +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:136596 Archived-At: Tak Kunihiro writes: > I found that the exchange of primary and secondary can be implemented > into C-x C-x as `mouse-exchange-point-and-mark-secondary'. > > (global-set-key [remap exchange-point-and-mark] 'mouse-exchange-point-and-mark-secondary) > > 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. Regards Robert