Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 1999 16:04:01 -0500
From:      Greg Lehey <grog@mojave.sitaranetworks.com>
To:        Mark Ovens <mark@dogma.freebsd-uk.eu.org>
Cc:        brooks@one-eyed-alien.net, james.wilde@telia.com, freebsd-questions@freebsd.org
Subject:   Re: Programmers' editor?
Message-ID:  <19991125160401.08368@mojave.sitaranetworks.com>
In-Reply-To: <19991125201151.D316@marder-1>; from Mark Ovens on Thu, Nov 25, 1999 at 08:11:51PM %2B0000
References:  <Pine.BSF.4.21.9911231240360.4557-100000@fw.wintelcom.net> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991125160401.08368>