Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zle TODOs etc.
- X-seq: zsh-workers 21097
- From: Clint Adams <clint@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: zle TODOs etc.
- Date: Tue, 5 Apr 2005 16:25:00 -0400
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- In-reply-to: <1050326171422.ZM19516@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050321013910.GA32327@xxxxxxxxxxx> <1050321020913.ZM11750@xxxxxxxxxxxxxxxxxxxxxxx> <200502251446.j1PEkID6019392@xxxxxxxxxxxxxx> <20050323003652.GA11877@xxxxxxxxxxx> <1050326171422.ZM19516@xxxxxxxxxxxxxxxxxxxxxxx>
> 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 `_' */
Messages sorted by:
Reverse Date,
Date,
Thread,
Author