zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Re: zsh-3.1.5-pws-12: emulate -RL resets -x option
Date: Tue, 16 Mar 1999 16:59:18 +0100	[thread overview]
Message-ID: <9903161559.AA55511@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Andrej Borsenkow""'s message of "Tue, 16 Mar 1999 18:25:06 NFT." <003301be6fc1$2ba9c470$21c9ca95@mowp.siemens.ru>

"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


      reply	other threads:[~1999-03-17  8:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-16 15:25 Andrej Borsenkow
1999-03-16 15:59 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9903161559.AA55511@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).