Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zap/del to char
- X-seq: zsh-users 11373
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: <zsh-users@xxxxxxxxxx>
- Subject: Re: zap/del to char
- Date: Wed, 04 Apr 2007 00:16:26 -0700
- In-reply-to: <20070404150328.3592@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070404150328.3592@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Apr 4, 3:03pm, djh wrote:
}
} I just enabled my zsh to use the emacs like function zap-to-char,
} but it seems like the two zsh functions, (1) zap-to-char and (2)
} delete-to-char are reversed in function.
}
} To wit: emacs's zap-to-char, is inclusive and deletes the character.
Hrm. There's a slightly convoluted discussion of this starting here:
http://www.zsh.org/mla/workers/1999/msg03004.html
The first post apparently mis-states the reality, because the patch
in the second post claims to do what Darel wants (which is the inverse
of what the first post says).
PWS's follow-up, however, makes it clear that zsh has stubbornly kept
the GNU emacs 18.x definition of zap-to-char because, well, we're more
concerned with things always working like they always have than are
the GNU folks, I guess.
} zle's does not and it should in my opinion
"Twelve dollars? Why, when I was your age I could get that same shirt
for a nickel!"
} zle's "delete-to-char", however performs the zap-to-character
} function right.
zle -A zap-to-char delete-to-char
(Wow, that's a lot easier than the function PWS whipped out in
zsh-workers/8020.)
} So it looks like the definitions got swapped around.
Yes, by emacs, several years after the ZLE function first copied it.
The question is, are we finally in the mood to copy this particular
"improvement"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author