Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
removable suffixes in ZLE
- X-seq: zsh-workers 2779
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: removable suffixes in ZLE
- Date: Sat, 11 Jan 1997 22:13:43 +0000 (GMT)
-----BEGIN PGP SIGNED MESSAGE-----
This patch modifies ZLE's removable suffix mechanism. It is in some
respects cleaned up (e.g., addedsuffix is now *always* set if a suffix
has been added), and it no longer depends on lastcmd. The magic behaviour
of insert commands is now handled all in one function, doinsert(), which
the insert commands all use, making the ZLE_INSERT flag unnecessary.
The ZLE_DELETE flag is also replaced; there is now a ZLE_KEEPSUFFIX flag
that is set wherever ZLE_MENUCMP or ZLE_DELETE was set.
Except in that I have made insert-last-word do suffix removal, there
should be no functional changes.
-zefram
begin 644 suffix_patch.gz
M'XL("%33US("`W-U9F9I>%]P871C:`#M/&MWV\2VG\.OF'"XU"\YENW$B4-@
M]4*X=)&V+%KN>7!+CR*/;:W(DHXDVZ0E__WNO>>AD31R3%L*/8=`$\UHS\Q^
M[ST/3:?38<]2_^@?(3^:\3"/_:67]OT#]^QL<C1PCP8C-IA,AZ/I\/C`[0\_
M<AQG)[SK,O=X>GP\';D?=<H_6&:346]RQJC(6!#E\/LZCO.7NJ_6XWBV#CE;
MM>'5ZX\.&?X\7P;1XI9%?#M?1SZ[8-YL]BKD6,B#.&I]#,UYSIT\=K"/CWM,
M]]=C_[BZ?/G5Y=7E\\OV^4?4'0OFK"4[:\,@C!T8&$#W\AV"'Z0\7Z<1&YP3
M[0)_>'+>*_[?7EY^]^R'K[]^]+>WI*%CR!LPZ"\+R0W88#`=3:;'$Y"T.RZ)
MN@(JA'PR'9Q8A7Q\TCN9*"'?(0;P_U&'??7HV</_OKK\B@49:[F??39HL\X1
ML.@O,SX/(DZ4/KY\\L.7C[\[P/<N\M!\^?>'3[ZE-Z-VI=G5HR>7CY_^[R6]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