[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] (no subject)
From: |
Thomas Dickey |
Subject: |
Re: [vile] (no subject) |
Date: |
Wed, 2 Sep 2015 18:44:54 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Wed, Sep 02, 2015 at 02:52:39PM -0400, Wayne Cuddy wrote:
> On Mon, Aug 31, 2015 at 05:48:34PM -0400, Thomas Dickey wrote:
> > On Mon, Aug 31, 2015 at 04:58:25PM -0400, Thomas Dickey wrote:
> > > > ~~~~~~~~~~~~~~~~~~~~
> > > > store-procedure show-register string="reg" "show the contents of a
> > > > single register"
> > > > ~local %bn
> > > > setv %bn &cat "register-" $1
> > > > find-file %bn
> > > > 1 goto-line
> > > > delete-lines-til end-of-file
> > > > put $1
> > > > ~endm
> > > > ~~~~~~~~~~~~~~~~~~~~
> > > >
> > > > I've tried:
> > > >
> > > > put "$1"
> > > > $1 put
> > > > "$1" put
> >
> > You should be able to do
> >
> > use-register $1 put
> >
> > --
> > Thomas E. Dickey <address@hidden>
> > http://invisible-island.net
> > ftp://invisible-island.net
>
> Thanks, worked like a charm. Here is the complete version of
> show-register in case anyone else finds it useful.
thanks - I'll try this out.
I'm working on a change to add a register-type parameter, which would
let someone do name-completion to notice that it's really a register name.
(Seems overkill, but probably friendlier).
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature