zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: jdl@iasi.com ( JD Laub), zsh-workers@math.gatech.edu
Subject: Re: insert-last-word (was Re: zsh request)
Date: Fri, 22 Nov 1996 10:09:58 -0800	[thread overview]
Message-ID: <961122100958.ZM6928@candle.brasslantern.com> (raw)
In-Reply-To: jdl@iasi.com ( JD Laub) "insert-last-word (was Re: zsh request)" (Nov 22,  9:09am)

On Nov 22,  9:09am,  JD Laub wrote:
} Subject: insert-last-word (was Re: zsh request)
}
} Bart Schaefer writes:
} > not able to distinguish the 1 prefix from no prefix at all).
} 
} Not that I'm objecting to the implementation, but I'm curious: gotmult
} gets set if the user supplied a prefix, with zmult storing the actual
} prefix.  Am I missing something?

No, I am.  It's been so long since I changed any zle functions, I'd
forgotten that it existed; there are only two places outside zle_vi.c
where it's tested, so I didn't spot it when looking at other functions
that use zmult ...

I still think the way I did it is the best way, though.  With gotmult,
it could be changed so that -1 was the last word, -2 the second-last,
etc., as with array subscripting; but since the name of the function
is insert-LAST-word, I think it makes sense to count from the right
without having to type that extra `ESC -'.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern


      reply	other threads:[~1996-11-22 18:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-21  8:57 zsh request Huy Le
1996-11-21 10:54 ` Bart Schaefer
1996-11-22 16:09   ` insert-last-word (was Re: zsh request)  JD Laub
1996-11-22 18:09     ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=961122100958.ZM6928@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=jdl@iasi.com \
    --cc=schaefer@nbn.com \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).