From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4036 invoked from network); 20 Aug 2002 15:19:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 20 Aug 2002 15:19:32 -0000 Received: (qmail 22594 invoked by alias); 20 Aug 2002 15:19:21 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17569 Received: (qmail 22583 invoked from network); 20 Aug 2002 15:19:20 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15714.24164.519409.777336@wischnow.berkom.de> Date: Tue, 20 Aug 2002 17:21:08 +0200 To: zsh-workers@sunsite.dk Subject: Re: About menu selection (again) In-Reply-To: <1020820150739.ZM18296@candle.brasslantern.com> References: <3D56CD6E.mailMX1LBVZ3@viadomus.com> <1020812060148.ZM28748@candle.brasslantern.com> <3D5906BF.mail17S21TJ8M@viadomus.com> <1020813150050.ZM30758@candle.brasslantern.com> <3D5954F7.mail1L21A9GN@viadomus.com> <3D595620.mail3I11T8QF@viadomus.com> <1020814022702.ZM31935@candle.brasslantern.com> <3D5CEB3E.mailV211HY5E@viadomus.com> <15708.60068.71382.607117@wischnow.berkom.de> <1020817172639.ZM6260@candle.brasslantern.com> <15714.12003.280325.857811@wischnow.berkom.de> <1020820150739.ZM18296@candle.brasslantern.com> X-Mailer: VM 7.03 under 21.5 (patch 5) "beets" XEmacs Lucid Bart Schaefer wrote: > ... > > } Ideally, this should really check, if any completion widgets are bound > } to keys, shouldn't it? > > That's not as obvious ... if no completion widgets are bound to keys, how > would you get into docomplete() in the first place? It gets called from the standard widgets even if they haven't been overridden with user-defined (`zle -C') ones. > } +/* != 0 if there are any defined completion widgets. */ > } + > } +/**/ > } +int hascompwidgets; > > Shouldn't that be `mod_export int hascompwidgets;' ? > > } + /* We the C-code's point of view, we can only use compctl as a default > > "We the C-code"? In order to form a more perfect unix? Ahem. Bye Sven Index: Src/Zle/zle_tricky.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_tricky.c,v retrieving revision 1.40 diff -u -r1.40 zle_tricky.c --- Src/Zle/zle_tricky.c 20 Aug 2002 12:28:13 -0000 1.40 +++ Src/Zle/zle_tricky.c 20 Aug 2002 15:15:33 -0000 @@ -562,7 +562,7 @@ if (undoing) setlastline(); - /* We the C-code's point of view, we can only use compctl as a default + /* From the C-code's point of view, we can only use compctl as a default * type of completion. Load it if it hasn't been loaded already and * no completion widgets are defined. */ -- Sven Wischnowsky wischnow@berkom.de