From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15631 invoked from network); 5 Apr 2005 20:25:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Apr 2005 20:25:17 -0000 Received: (qmail 42853 invoked from network); 5 Apr 2005 20:25:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Apr 2005 20:25:11 -0000 Received: (qmail 28366 invoked by alias); 5 Apr 2005 20:25:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21097 Received: (qmail 28347 invoked from network); 5 Apr 2005 20:25:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Apr 2005 20:25:07 -0000 Received: (qmail 42630 invoked from network); 5 Apr 2005 20:25:07 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 5 Apr 2005 20:25:03 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 997507004A; Tue, 5 Apr 2005 16:25:00 -0400 (EDT) Date: Tue, 5 Apr 2005 16:25:00 -0400 From: Clint Adams To: Bart Schaefer Cc: Zsh hackers list Subject: Re: PATCH: zle TODOs etc. Message-ID: <20050405202500.GA584@scowler.net> Mail-Followup-To: Bart Schaefer , Zsh hackers list References: <20050321013910.GA32327@scowler.net> <1050321020913.ZM11750@candle.brasslantern.com> <200502251446.j1PEkID6019392@news01.csr.com> <20050323003652.GA11877@scowler.net> <1050326171422.ZM19516@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050326171422.ZM19516@candle.brasslantern.com> User-Agent: Mutt/1.5.6+20040907i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 > Two comments: Changed to trigger, for lack of a better idea. M Src/Zle/zle_main.c M Src/init.c M Src/params.c * modified files --- orig/Src/Zle/zle_main.c +++ mod/Src/Zle/zle_main.c @@ -101,6 +101,11 @@ /**/ mod_export int lastchar_wide_valid; + +/**/ +mod_export ZLE_STRING_T zle_wordchars; +#else +# define zle_wordchars wordchars; #endif /* the bindings for the previous and for this key */ @@ -1507,6 +1512,15 @@ kungetct = 0; } +/**/ +mod_export void +wordcharstrigger(void) +{ +#ifdef ZLE_UNICODE_SUPPORT + /* TODO: convert wordchars to wchar zle_wordchars */ +#endif +} + /* Hook functions. Used to allow access to zle parameters if zle is * active. */ @@ -1572,6 +1586,7 @@ kungetbuf = (char *) zalloc(kungetsz = 32); comprecursive = 0; rdstrs = NULL; + wordcharstriggerptr = wordcharstrigger; /* initialise the keymap system */ init_keymaps(); @@ -1645,6 +1660,7 @@ zlegetlineptr = NULL; zlereadptr = fallback_zleread; zlesetkeymapptr= noop_function_int; + wordcharstriggerptr = noop_function; getkeyptr = NULL; --- orig/Src/init.c +++ mod/Src/init.c @@ -1152,6 +1152,9 @@ #endif /* !LINKED_XMOD_zshQszle */ /**/ +mod_export ZleVoidFn wordcharstriggerptr = noop_function; + +/**/ unsigned char * autoload_zleread(char **lp, char **rp, int ha, int con) { --- orig/Src/params.c +++ mod/Src/params.c @@ -3316,6 +3316,7 @@ zsfree(wordchars); wordchars = x; inittyptab(); + wordcharstriggerptr(); } /* Function to get value for special parameter `_' */