From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#25196: mention how to see top or middle of each yank-pop Date: Sat, 27 Jul 2019 17:30:42 -0700 (PDT) Message-ID: References: <87lgvjfy2n.fsf@jidanni.org> <87ef2bk9se.fsf@mouse.gnus.org> <87mugzw27n.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182019"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 25196@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Juri Linkov , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 28 02:31:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrX5m-000lEF-DU for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jul 2019 02:31:14 +0200 Original-Received: from localhost ([::1]:43160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrX5k-0001E8-Np for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 20:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33235) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrX5b-0001E2-4m for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 20:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrX5a-0000KX-6b for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 20:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrX5a-0000KF-1n for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 20:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrX5Z-000629-RM for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 20:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2019 00:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 25196-submit@debbugs.gnu.org id=B25196.156427386023185 (code B ref 25196); Sun, 28 Jul 2019 00:31:01 +0000 Original-Received: (at 25196) by debbugs.gnu.org; 28 Jul 2019 00:31:00 +0000 Original-Received: from localhost ([127.0.0.1]:45602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrX5X-00061t-IC for submit@debbugs.gnu.org; Sat, 27 Jul 2019 20:30:59 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:50460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrX5U-00061f-UR for 25196@debbugs.gnu.org; Sat, 27 Jul 2019 20:30:57 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6S0UhMU093024; Sun, 28 Jul 2019 00:30:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=5YnDXfzYhMoWhEdiJLx1cLh4lpDgz1r0NqEqS3B2uLg=; b=icJ0Olq49i681PkCq4wxRhG2TZVRyN8qvy3Qg5WnbxxwYx1cPsHcAdtegub1EJ/rM54W b20DUYrYQQEd6MIqtyZUaiZF5j8Wrbe0cmhqEUH4NqoWqKSKS6G043WPV58m4A7ar6kw 9M+9ZmK0+J9bPfdLz3svNPFNSK36Zo1Hm5D97SJeWCHz7rbp5UMfhzIZavpItk7+w++r iBg6Id39+6pxl5j6i4KlfDyJTMeqy1j/cekimvV6k17D1aKd/pYJ+UV6h/aefmZ0Tphb qxLYAyzZVIiFA7BFw7PvL5Cddw+JPyGjH4iaNTQBbAzbKVZf7yHpWkl8rvjgVf5WjQwJ Jg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2u0f8qj41v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 Jul 2019 00:30:48 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6S0Rfxs140248; Sun, 28 Jul 2019 00:30:47 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2u0xv70pyc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 Jul 2019 00:30:47 +0000 Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x6S0UhPs013536; Sun, 28 Jul 2019 00:30:46 GMT In-Reply-To: <87mugzw27n.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9331 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907280002 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9331 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907280002 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: 209.51.188.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:163926 Archived-At: > FWIW, here is battle-tested (i.e. use for many years) command > that allows looking at the top or middle of each yank-pop before > yanking: I like it, including the fact that you can: (1) edit a kill before pasting it, and even (2) enter any text you want, for pasting. #2 means this is not just about yanking kills. =20 But please, if vanilla Emacs does this, do _not_ bind it to `C-M-y'. This is a possible ~replacement (by users) for `yank-pop'. Users can bind it to `M-y'. Or if it becomes more popular someday than `yank-pop' Emacs could give it binding `M-y'. It's more or less a replacement for `yank-pop' because the end effect is more or less the same: yank something from the kill-ring (but see above). Possible variants: 1. Prevent editing in the minibuffer (e.g. optionally), so you always get a kill (you can edit the text after yanking, of course). 2. While reading the string, force all kill commands to just delete, so that editing doesn't add to the kill-ring. --- I use the secondary selection a lot, and have keys for commands that use it. I even have a ring of secondary selections. In many ways the secondary selection is, or can be, parallel to the region, and likewise its ring. I use prefix `C-M-' for the secondary-selection commands. Yes, one user's/library's use of `C-M-y' isn't reason enough to not waste that key on yet another kill-ring yanker. But the fact that it's essentially a replacement for `yank-pop' is a reasonable argument. (`browse-kill-ring.el', for example, is another such replacement.)