From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Let's finish this new completion stuff
Date: Mon, 22 Feb 1999 09:59:49 +0100 [thread overview]
Message-ID: <9902220859.AA45996@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Matt Armstrong""'s message of "Sat, 20 Feb 1999 19:59:45 NFT." <19990221035945.27944.qmail@hotmail.com>
"Matt Armstrong" wrote:
> The thing that'd help me understand most is an easy way to see a
> function call trace when __complete_expand-or-complete and friends get
> called. Is something like that possible?
You can use set -x (aka setopt xtrace), that's the main reason I've
enhanced it to trace conditions, function calls and arithmetic evaluations.
I've been using it a lot myself. There are two problems: it messes up the
display, so it's hard to see what's happening, though if you're just
listing a completion it's not so bad since all the trace information is
above and you can still read the list. You may be able to `exec
2>xtrace.log' since the tty is maintained separately (if it doesn't work,
it's probably a bug). Note you can change PROMPT4, which escaped me until
the weekend.
Secondly (if it's a problem) set -x is different from ksh in that ksh turns
it off inside a function where it's not explicitly set, which zsh doesn't,
so you maybe get more info than you want. (Does anybody think this should
be altered? I think it's trivial to do that. `emulate zsh' doesn't change
xtrace, but `emulate -R zsh' does, but even so you get everything up to and
including the emulate statement.) `setopt localoptions [no]xtrace' does
work, of course.
--
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
next prev parent reply other threads:[~1999-02-22 9:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-21 3:59 Matt Armstrong
1999-02-22 8:59 ` Peter Stephenson [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-02-23 9:08 Sven Wischnowsky
1999-02-22 16:01 Sven Wischnowsky
1999-02-22 10:36 Sven Wischnowsky
1999-02-22 9:44 Sven Wischnowsky
1999-02-23 5:28 ` Bart Schaefer
1999-02-22 8:50 Sven Wischnowsky
1999-02-19 15:21 Sven Wischnowsky
1999-02-20 15:01 ` Peter Stephenson
1999-02-22 0:15 ` Bart Schaefer
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=9902220859.AA45996@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).