From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Re: PATCH: Re: Completion and global aliases
Date: Wed, 09 Jun 1999 09:48:59 +0200 [thread overview]
Message-ID: <9906090749.AA32816@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Bart Schaefer""'s message of "Wed, 09 Jun 1999 06:15:04 DFT." <990609061505.ZM28357@candle.brasslantern.com>
"Bart Schaefer" wrote:
> So how about this: We add an option to `autoload' to mark the function
> as immune to alias expansion. It's a small change to execautofn() to
> recognize this flag and temporarily set the noaliases global. Then it's
> just up to `compinit' to deal with its own problems, maybe by doing some
> smart things with `disable -a'.
And it looks like we'd better do something with options, too. There is the
code from compinstall, but then there's always the possibility we could
make it a function as Andrej keeps suggesting. compinstall could still
work out the path to the completion functions and make it get passed down
to compinit, and if compdump was also a function it wouldn't need searching
for, which removes one headache.
> The following patch implements `autoload -U ...' for this. Hmm, I didn't
> change `functions' to output anything for "unaliased" state; should it?
It's hard to know where to put it that isn't going to confuse matters,
either because someone has code to search for `undefined', or because the
next word is taken as the function name, etc. Maybe as long as `functions
-uU' works OK it's good enough.
--
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-06-09 8:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-09 2:43 Wayne Davison
1999-06-09 6:15 ` PATCH: " Bart Schaefer
1999-06-09 7:48 ` Peter Stephenson [this message]
1999-06-09 15:40 ` Bart Schaefer
1999-06-09 8:53 Sven Wischnowsky
1999-06-09 9:17 ` Andrej Borsenkow
1999-06-09 9:01 ` Peter Stephenson
1999-06-09 16:49 ` Bart Schaefer
1999-06-09 17:05 ` Andrej Borsenkow
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=9906090749.AA32816@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).