From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: pushing and popping the mark Date: Sat, 9 May 2015 17:02:58 -0700 (PDT) Message-ID: <271b7cb1-f3c3-4c37-8d3b-1b257c1fdcd3@default> References: <87wq0h1kzz.fsf@debian.uxu> <3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1431216208 6652 80.91.229.3 (10 May 2015 00:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2015 00:03:28 +0000 (UTC) To: Sam Halliday , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 02:03:16 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YrEiB-0007JT-Bb for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2015 02:03:15 +0200 Original-Received: from localhost ([::1]:60722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrEiA-0006ey-Sr for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 20:03:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrEi0-0006ed-LT for help-gnu-emacs@gnu.org; Sat, 09 May 2015 20:03:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrEhv-0002mU-M3 for help-gnu-emacs@gnu.org; Sat, 09 May 2015 20:03:04 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:35859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrEhv-0002mH-G5 for help-gnu-emacs@gnu.org; Sat, 09 May 2015 20:02:59 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t4A02viA015948 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 10 May 2015 00:02:58 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t4A02uLP016180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 10 May 2015 00:02:56 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t4A02urX004783; Sun, 10 May 2015 00:02:56 GMT In-Reply-To: <3b561956-c3d1-490b-a02c-6b385cd20fb2@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104342 Archived-At: > > `M-y' for `yank-pop'. >=20 > I know this is called `yank-pop`, but it is more of a "peek"=20 > because it keeps the kill ring intact. >=20 > More generally though, this is a neat solution. I hadn't thought to > do it this way. The only problem with it is that it necessitates > doing everything in exact order and not making any mistakes along > the way. Therefore, I'll prefer `C-x C-x` when there are more than a > few things needing moved around, but prefer this in simple cases. There are plenty of ways to more directly access given entries on the kill-ring. `browse-kill-ring[+].el' provides one. Icicles provides another, and I'm sure that other general completion packages do too now. Quite often, when vanilla Emacs provides only a way to cycle, to get to some candidate, some package such as Icicles gives you a way to get to it more directly. Whether it is navigating among function-definition tag matches or among index matches in Info, the vanilla Emacs approach is often to have you repeatedly hit a key (e.g. `M-,') to get to successive candidates, but completion packages let you pattern-match against all candidates (and cycle among the matches, if you like). Even vanilla Emacs sometimes gives you more direct ways, in addition to mechanically cycling. To get to a previous minibuffer (history) entry, for example, you need not cycle to it using `M-p' over and over. You can sometimes reach it more directly by matching, using `M-r'. Or even better, using `C-r' (in the minibuffer - see (emacs) `Isearch Minibuffer'). I'm not saying that these vanilla matching means are wonderful, but they sometimes exist and are underused. Sometimes cycling is handier than matching; sometimes the reverse - depending on how long the candidate list is and whether partial matching shortens the list to be cycled. Icicles and other packages that combine matching with cycling usually let you get where you are going pretty directly. Compared to using `yank-pop', for example, being able to get to any marked locations anywhere, by matching, or by a combination of matching and cycling, sure beats just cycling.