zsh-workers
 help / color / mirror / code / Atom feed
* zsh-3.1.5-pws-12: emulate -RL resets -x option
@ 1999-03-16 15:25 Andrej Borsenkow
  1999-03-16 15:59 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Borsenkow @ 1999-03-16 15:25 UTC (permalink / raw)
  To: ZSH workers mailing list

Just found when debugging completion function. emulate -RL is the last line
I see after entering the function

/andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zsh-3.1.5-pws-12: emulate -RL resets -x option
  1999-03-16 15:25 zsh-3.1.5-pws-12: emulate -RL resets -x option Andrej Borsenkow
@ 1999-03-16 15:59 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 1999-03-16 15:59 UTC (permalink / raw)
  To: ZSH workers mailing list

"Andrej Borsenkow" wrote:
> Just found when debugging completion function. emulate -RL is the last line
> I see after entering the function

That's because it restores the option xtrace to the default value (off).
You have to set it explicitly in that function, or test it before the
`emulate' and then restore it after.  If you don't want so many options
set, drop the `-R' to emulate, so that it will only change basic syntatic
features.  Arguably that's the right thing to do in completion functions
anyway, since you're supposedly relying on using the user's current
interactive environment, and only making sure the syntactic features work
properly, i.e. we're all too paranoid.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-03-17  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-16 15:25 zsh-3.1.5-pws-12: emulate -RL resets -x option Andrej Borsenkow
1999-03-16 15:59 ` Peter Stephenson

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).