From owner-freebsd-questions Thu Nov 25 14:23:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mojave.sitaranetworks.com (mojave.sitaranetworks.com [199.103.141.157]) by hub.freebsd.org (Postfix) with ESMTP id 6C5E714E15 for ; Thu, 25 Nov 1999 14:23:28 -0800 (PST) (envelope-from grog@mojave.sitaranetworks.com) Message-ID: <19991125171956.61298@mojave.sitaranetworks.com> Date: Thu, 25 Nov 1999 17:19:56 -0500 From: Greg Lehey To: Mark Ovens Cc: brooks@one-eyed-alien.net, james.wilde@telia.com, freebsd-questions@freebsd.org Subject: Re: Programmers' editor? Reply-To: Greg Lehey References: <00e101bf3681$44cb04a0$8c0aa8c0@hk.tbv.se> <19991124103253.B2554@orion.ac.hmc.edu> <19991124135521.44585@mojave.sitaranetworks.com> <19991124162753.A21217@penguin.ipunet.com> <19991125141842.49736@mojave.sitaranetworks.com> <19991125201151.D316@marder-1> <19991125160401.08368@mojave.sitaranetworks.com> <19991125215413.C1342@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <19991125215413.C1342@marder-1>; from Mark Ovens on Thu, Nov 25, 1999 at 09:54:13PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 25 November 1999 at 21:54:13 +0000, Mark Ovens wrote: > On Thu, Nov 25, 1999 at 04:04:01PM -0500, Greg Lehey wrote: >> On Thursday, 25 November 1999 at 20:11:51 +0000, Mark Ovens wrote: >>> On Thu, Nov 25, 1999 at 02:18:42PM -0500, Greg Lehey wrote: >>>> >>>> m-p (that's the Meta key, usually mapped to Alt). This will give you >>>> the previous non-trivial command in the minibuffer. Repeated m-p will >>>> go further back in the command history, m-n will go forward. You can >>>> edit the command before reissuing it. >>>> >>> >>> Doesn't work for me :( C-h k M-p gives "M-p is undefined" >> >> Are you using xemacs instead of Emacs? > > No > > marder-1# emacs --version > GNU Emacs 20.3.1 > Copyright (C) 1998 Free Software Foundation, Inc. > [snip] Hmm. >> Look for repeat-complex-command. >> > > Eureka! I've sussed it :) You have to working in the mini-buffer for > M-p, M-n to work, i.e. M-x M-p. I didn't realize that. You shouldn't need to. But you *do* need something in the history, otherwise it just beeps at you. Load a new file or some such and you'll have something there. Insertions like c-y don't count, because they're easier to do in other ways. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message