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: hippie-expand/dabbrev-expand: how to select a previous expansion? Date: Thu, 19 Jul 2012 11:05:48 -0700 Message-ID: <0DE138F8C5AB4C8B887D5F16B8614E22@us.oracle.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342721166 23484 80.91.229.3 (19 Jul 2012 18:06:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2012 18:06:06 +0000 (UTC) To: "'Raffaele Ricciardi'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 20:06:04 2012 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 1Srv6x-0000MQ-Bh for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 20:06:03 +0200 Original-Received: from localhost ([::1]:42565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srv6w-0005k7-DG for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jul 2012 14:06:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srv6q-0005jo-Fg for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 14:05:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srv6p-0002H3-BN for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 14:05:56 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:24813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srv6p-0002Go-4j for help-gnu-emacs@gnu.org; Thu, 19 Jul 2012 14:05:55 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6JI5qJt008934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Jul 2012 18:05:53 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6JI5nwM003160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Jul 2012 18:05:51 GMT Original-Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6JI5nna016697; Thu, 19 Jul 2012 13:05:49 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 19 Jul 2012 11:05:49 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac1l1NjlPv8cRJidTwOv6AhdIpn8FQAAczMg X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:85942 Archived-At: > when running dabbrev-expand or hippie-expand, sometimes I > accidentally skip the desired completion. Is there a way to > go back to a previous completion in either command? After > looking at the Emacs Manual and at the source code of > hippie-exp.el, and dabbrev.el, I would say there isn't. AFAIK, there is not. Cycling by repeating `M-/' is pretty primitive, and yes, AFAIK it only goes forward. You might try `dabbrev-completion' (`C-M-/') instead of `dabbrev-expand' (`M-/'). Or if you use Icicles, then in Icicle mode `C-M-/' gives you both completion and cycling. You can cyle in either order, and you can re-sort or filter the candidates in various ways. (And you can of course pick any completion candidate directly, without cycling.)