[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Negative or zero arguments to yank-last-arg in bound keystrokes
From: |
Chet Ramey |
Subject: |
Re: Negative or zero arguments to yank-last-arg in bound keystrokes |
Date: |
Mon, 06 Dec 2010 20:29:11 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 |
On 12/6/10 8:22 PM, Chet Ramey wrote:
> Yes. In this case, the documentation is less than clear. The count
> argument is actually set by the first call to yank-last-arg, and that
> argument sets the word to extract from the history entry. Subsequent
> calls to yank-last-arg without a different intervening editing command
> use that same count as the argument to extract while moving through the
> history, and any count given to those subsequent calls sets the number
> of history entries to move. A negative count on those calls changes the
> direction.
Sorry, that was partly a future direction. The count to the second and
subsequent calls just changes the direction, not the number of history
entries to skip.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/