From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: select yank via completion Date: Wed, 18 Nov 2020 15:02:02 -0800 (PST) Message-ID: <259a14f9-e617-4967-8446-41b900535218@default> References: <87wnymda5g.fsf@mail.linkov.net> <87ima5he8j.fsf@mail.linkov.net> <87mtzfzt9a.fsf@mail.linkov.net> <87k0uifp3w.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1898"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, Jean Louis , andreyk.mad@gmail.com, emacs-devel@gnu.org, rudalics@gmx.at, Gregory Heytings , Eli Zaretskii To: Stefan Monnier , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 19 00:03:09 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfWTk-0000OH-Nf for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Nov 2020 00:03:08 +0100 Original-Received: from localhost ([::1]:54686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfWTj-0007Nt-PZ for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 18:03:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfWT0-0006wR-Pr for emacs-devel@gnu.org; Wed, 18 Nov 2020 18:02:22 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:52082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfWSy-0007Kz-L1; Wed, 18 Nov 2020 18:02:22 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AIN0FSW002263; Wed, 18 Nov 2020 23:02:12 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-2020-01-29; bh=xwWOE3pSYJnm0Sk2fmOhxu+r5TQyJeiGFlyef17DGpQ=; b=qkiuiouSq0bpJT9pdFbTbOHbGt7u6JR4IgSa1+QMyGaFY0btXVIKfJTzRXV3l+xPlpVo cb65E0R2+RUWyAXHWMwngpQanXXg3XpQc3MWqasmti/l/GcYuUaUb4siSy2NaldeiRWc SP2hnZhsTWWpJn+BdmlikudihzhW2EuQEn0IPkC7mloc+kiQcAug1K1sODRqvnBV66ki +82vF7+z/YtE7jYxet0Hncec03rVmf7Vt5Yp4EO4lr45nxIz7xr9fkRxf1WvK1fti74O I+yaPh87Uw0cxU6rG5lUeO1K8N3tjTm/HJBDM/VvP0KvP4CMfEbZTokIW8yvaONCstAM 2Q== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 34t7vnan29-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Nov 2020 23:02:12 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AIN1fdA102491; Wed, 18 Nov 2020 23:02:11 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 34uspvdchp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Nov 2020 23:02:11 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AIN27iS004364; Wed, 18 Nov 2020 23:02:07 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9809 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011180158 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9809 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 malwarescore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 mlxscore=0 priorityscore=1501 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011180158 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/18 17:37:09 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259400 Archived-At: > Looks great, thanks. Any reason you bind it to C-M-y instead > of to "M-y that doesn't immediately follow C-y"? FWIW, Icicles uses `icicle-completing-yank' for `M-y' not right after `C-y'. It's also bound to `C-- C-y'. (`C-y' is `icicle-yank-maybe-completing'.) ,---- | icicle-completing-yank is an interactive compiled Lisp function in | 'icicles-cmd1.el'. |=20 | It is bound to menu-bar edit icicles icicle-completing-yank. |=20 | (icicle-completing-yank) |=20 | Yank an entry from a selection ring, choosing it using completion. | By default, the selection ring used is the kill ring. |=20 | If you also use library `browse-kill-ring+.el' or library | `second-sel.el' then an alternative selection ring is used if you | provide a prefix argument: `browse-kill-ring-alternative-ring' or | `secondary-selection-ring'. This gives you a way to yank chosen items | from two different sets of selections. |=20 | When the kill ring is used, this is similar to `yank', but this does | not rotate the ring. The mark is pushed first, so the yanked text | becomes the region. ... `---- Actually, if you use library `second-sel.el' then, by default Icicles binds `M-y' at top level to command `icicle-yank-pop-commands', which lets you choose a selection from either kll-ring or secondary selection ring, using completion against the ring entries. ,---- | icicle-yank-pop-commands is an interactive compiled Lisp function in | 'icicles-cmd1.el'. |=20 | It is bound to M-insert, M-y. |=20 | (icicle-yank-pop-commands &optional ARG) |=20 | `yank-pop', `yank-pop-secondary', or `icicle-completing-yank'. | Which of these is used depends on the previous command, as follows: |=20 | * If the previous command was a yank-secondary command, then | `yank-pop-secondary'. |=20 | * Else if the previous command was a yank command (i.e. using the | kill ring), then `yank-pop'. |=20 | * Else `icicle-completing-yank'. |=20 | In the last case (`icicle-completing-yank'), during completion you can | use: |=20 | * `C-,' to sort the candidates to yank in different ways (repeat) | * `S-delete' to remove a candidate entry from the selection ring | * `C-S-return' to copy a candidate to the other selection ring |=20 | You need library `second-sel.el' for this command. |=20 `----