Date: Thu, 25 Nov 1999 21:54:13 +0000 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Greg Lehey <grog@lemis.com> Cc: brooks@one-eyed-alien.net, james.wilde@telia.com, freebsd-questions@freebsd.org Subject: Re: Programmers' editor? Message-ID: <19991125215413.C1342@marder-1> In-Reply-To: <19991125160401.08368@mojave.sitaranetworks.com> 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> <19991125160401.08368@mojave.sitaranetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
>
> 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?
No
marder-1# emacs --version
GNU Emacs 20.3.1
Copyright (C) 1998 Free Software Foundation, Inc.
[snip]
> Look for repeast-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.
> > 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
--
PERL has been described as "the duct tape of the Internet"
and "the Unix Swiss Army chainsaw"
- Computer Shopper 12/99
________________________________________________________________
FreeBSD - The Power To Serve http://www.freebsd.org
My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org http://www.radan.com
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?19991125215413.C1342>
