From owner-freebsd-questions Thu Nov 25 13: 7:41 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 A3E4D14C99 for ; Thu, 25 Nov 1999 13:07:37 -0800 (PST) (envelope-from grog@mojave.sitaranetworks.com) Message-ID: <19991125160401.08368@mojave.sitaranetworks.com> Date: Thu, 25 Nov 1999 16:04:01 -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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <19991125201151.D316@marder-1>; from Mark Ovens on Thu, Nov 25, 1999 at 08:11:51PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: >> On Wednesday, 24 November 1999 at 16:27:53 -0500, Andrew G. Luyt wrote: >> >>> I've found out that overall, my productivity has gone up with emacs, >>> though there are special circumstances where I say to myself 'grrr, >>> I wish I were using vi'. I have yet to figure out how to repeat my >>> last command in emacs, a la '.' in vi, for instance. >> >> 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" I get: M-p runs the command repeat-complex-command which is an interactive compiled Lisp function in `simple'. (repeat-complex-command ARG) Edit and re-evaluate last complex command, or ARGth from last. A complex command is one which used the minibuffer. The command is placed in the minibuffer as a Lisp form for editing. The result is executed, repeating the command as changed. If the command has been changed or is not the most recent previous command it is added to the front of the command history. You can use the minibuffer history commands M-n and M-p to get different commands to edit and resubmit. Are you using xemacs instead of Emacs? Look for repeast-complex-command. > BTW Greg, you mentioned that you use emacs for composing e-mail with > mutt, which is what I'm doing now. Is there a way to make it (mutt) > open another buffer in an emacs window that's already running rather > than starting another instance of emacs? Alas, I don't know of one. 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