Roland Mainz wrote:
> Attached is the 4th iteration of the ksh93 TAB-TAB completion patch
> ("ksh93_tab_tab_gmacs_completion_default_editor_mode_try4.diff.txt").
> 
> * Changes since previous version
> (http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2006-May/000285.html):
> 1. Synced build flags in usr/src/cmd/ksh/Makefile.com with
> usr/src/lib/libshell/Makefile.com
> 2. Changed "gmacs" editing mode that ctrl-l now clears the screen like
> bash3/readline do
> 3. Setting the default editing mode (to "gmacs") is now only done if no
> other editing mode was set yet per David Korn's suggestion (e.g. "gmacs"
> is only made the default editing mode if no command line option or
> related environment variable (like EDITOR=vi) is set).
> 
> [2] requires some discussion whether this is a good idea (and the
> implementation is quite bad - I didn'd found any other ways except
> linking against libcurses/libxcurses or calling |system("clear")| ... if
> we want to keep it then a better implementation may be required (but how
> ?)))

For the log:
- David Korn is working on an improved version of the TAB-TAB patch for
ksh93r+ which should add this functionality to both "emacs"/"gmacs" and
"vi" editing modes
- The idea of adding a default editing mode needs little bit
investigation whether this causes problems for terminals with builtin
editing modes (I didn't see any of these in the last ~~ten years... but
maybe they are still being used). If it causes problems we may simply
probe whether ${EDITOR} was set to an empty string (I can update the
patch on demand)
- David/Glenn: it would be nice to integrate the patch for
lib/libshell/common/sh/init.c (the default mode thing) into ksh93r+ (it
will remain inactive unless someone #defines |SHOPT_DEFAULTEDITMODE| at
compile time), assuming it's harmless (see previous item).

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to