* About LBUFFER: is it read-only or not?
@ 2003-08-06 20:07 DervishD
2003-08-07 9:57 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: DervishD @ 2003-08-06 20:07 UTC (permalink / raw)
To: Zsh
Hi all :)
The Zsh manual says that the LBUFFER parameter is available
read-only inside completion widgets or traps while zle is active, but
I've seen inside some functions that LBUFFER is modified directly :??
Is the manual wrong or the script is using an undocumented
feature?
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About LBUFFER: is it read-only or not?
2003-08-06 20:07 About LBUFFER: is it read-only or not? DervishD
@ 2003-08-07 9:57 ` Peter Stephenson
2003-08-07 10:28 ` DervishD
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2003-08-07 9:57 UTC (permalink / raw)
To: Zsh
DervishD wrote:
> The Zsh manual says that the LBUFFER parameter is available
> read-only inside completion widgets or traps while zle is active, but
> I've seen inside some functions that LBUFFER is modified directly :??
There are two types of widgets. LBUFFER can be modified from zle
widgets created using zle -N, but not from completion widgets created
with zle -C since in that case the completion code does all the
rearranging of the command line (which can be arbitrarily complicated).
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About LBUFFER: is it read-only or not?
2003-08-07 9:57 ` Peter Stephenson
@ 2003-08-07 10:28 ` DervishD
0 siblings, 0 replies; 3+ messages in thread
From: DervishD @ 2003-08-07 10:28 UTC (permalink / raw)
To: Peter Stephenson; +Cc: Zsh
Hi Peter :)
* Peter Stephenson <pws@csr.com> dixit:
> > The Zsh manual says that the LBUFFER parameter is available
> > read-only inside completion widgets or traps while zle is active, but
> > I've seen inside some functions that LBUFFER is modified directly :??
> There are two types of widgets. LBUFFER can be modified from zle
> widgets created using zle -N
Which is the case. I didn't think about completion widgets O:))
Thanks a lot for your answer :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-07 10:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-06 20:07 About LBUFFER: is it read-only or not? DervishD
2003-08-07 9:57 ` Peter Stephenson
2003-08-07 10:28 ` DervishD
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).