From: Peter Stephenson <pws@csr.com>
To: agcosta@gis.net, 463507@bugs.debian.org, zsh-workers@sunsite.dk
Subject: Re: Bug#463507: zsh: Completion fails with: "_main_complete:161: permission denied:"
Date: Tue, 05 Feb 2008 14:41:55 +0000 [thread overview]
Message-ID: <200802051441.m15EftTc029061@news01.csr.com> (raw)
In-Reply-To: <20080205141957.GA17778@scowler.net>
Clint Adams wrote:
> On Tue, Feb 05, 2008 at 02:46:51AM -0500, A. Costa wrote:
> > 'zsh-newuser-install' gave me:
> >
> > % zstyle -L | grep completer
> > zstyle ':completion:*' completer ''
>
> I think maybe it should prevent that from ever happening.
>
> You probably want
>
> zstyle ':completion:*' completer _complete
I presume the problem is that it's not set by default, rather than that
the user explicitly unset the completions? I think this should fix it.
Index: Completion/compinstall
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/compinstall,v
retrieving revision 1.10
diff -u -r1.10 compinstall
--- Completion/compinstall 21 Aug 2006 19:40:34 -0000 1.10
+++ Completion/compinstall 5 Feb 2008 14:38:01 -0000
@@ -506,7 +506,7 @@
;;
[sS]) olist=
tmparr=(_complete _approximate _correct _match _expand)
- while true; do
+ while true; do
clear
print "\
*** compinstall: choosing completers to have _oldlist behaviour ***
@@ -839,7 +839,10 @@
for c in ${=newc}; do
completers[$c]=1
done
- clist=(_list _oldlist _menu _expand _complete _ignored
+ if (( ${#completers} == 0 )); then
+ completers[_complete]=1
+ fi
+ clist=(_list _oldlist _menu _expand _complete _ignored
_match _correct _approximate _prefix)
# TODO: these are a bit brief, so could provide some more detailed help.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
next prev parent reply other threads:[~2008-02-05 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2d460de70812291522pd0bbfe5odaeef95e508b1e29@mail.gmail.com>
[not found] ` <20080131221535.c1aa6f7c.agcosta@gis.net>
[not found] ` <20080201133818.GA28192@scowler.net>
[not found] ` <20080201173143.2a7ec474.agcosta@gis.net>
[not found] ` <20080202030920.GA2099@scowler.net>
[not found] ` <20080202014728.9aeb3310.agcosta@gis.net>
[not found] ` <20080202184123.GA20032@scowler.net>
[not found] ` <20080203004905.a85d2c3c.agcosta@gis.net>
[not found] ` <20080205033050.GA4729@scowler.net>
[not found] ` <20080205024651.ea4026a1.agcosta@gis.net>
2008-02-05 14:19 ` Clint Adams
2008-02-05 14:41 ` Peter Stephenson [this message]
2008-02-05 14:50 ` Peter Stephenson
[not found] ` <handler.463507.D463507.123059292812775.notifdone@bugs.debian.org>
[not found] ` <20090102152635.052adb13.agcosta@gis.net>
[not found] ` <20090102215544.GC8949@scru.org>
[not found] ` <20090102180327.885ec1ea.agcosta@gis.net>
2009-01-02 23:58 ` Bug#463507: Need more info. (zsh: Completion fails with: "_main_complete:161: permission denied:") Clint Adams
2009-01-03 0:45 ` Richard Hartmann
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=200802051441.m15EftTc029061@news01.csr.com \
--to=pws@csr.com \
--cc=463507@bugs.debian.org \
--cc=agcosta@gis.net \
--cc=zsh-workers@sunsite.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).