zsh-workers
 help / color / mirror / code / Atom feed
* pws-23
@ 1999-06-20 15:28 Peter Stephenson
  1999-06-20 17:15 ` pws-23 Bart Schaefer
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Peter Stephenson @ 1999-06-20 15:28 UTC (permalink / raw)
  To: Zsh hackers list

http://www.ifh.de/~pws/computing
-rw-r--r--  1 pws  quadrics   964750 Jun 20 17:51 zsh-3.1.5-pws-23.tar.gz
-rw-r--r--  1 pws  quadrics   401824 Jun 20 17:51 zsh-3.1.5-pws-23.doc.tar.gz
-rw-r--r--  1 pws  quadrics   780171 Jun 20 17:51 zsh-3.1.5-pws-23.tar.bz2
-rw-r--r--  1 pws  quadrics   272737 Jun 20 17:51-zsh-3.1.5-pws-23.doc.tar.bz2
zsh-3.1.5-pws-23.doc.tar.bz2.bin -> zsh-3.1.5-pws-23.doc.tar.bz2
zsh-3.1.5-pws-23.tar.bz2.bin -> zsh-3.1.5-pws-23.tar.bz2

The .bin files are links to the .bz2 files to avoid browsers transferring
them in text mode.

Changes:

1999-06-20  Peter Stephenson  <pws@ibmth.difi.unipi.it>

	* zsh-3.1.5-pws-23 made available
	
	* Sven/pws: 6616, 6609, 6726 (merged): `zle [ -N ] [ -n num ]
	  widget args'; internal widgets handle arguments and return
	  values; search commands use arguments; read -[kq] can use
	  zle's key mechanism; zle -R [msg] redisplays line editor;
	  digit-argument feeps if the keypress wasn't a digit;
	  universal-argument handles argument as numeric.

	* pws: 6725: Src/signals.c: more local traps:  now don't add trap
	  to list to restore when outside a function, but do if the function
	  simply unsets a trap which was set outside.

1999-06-18  Peter Stephenson  <pws@ibmth.difi.unipi.it>

	* pws: 6718: Completion/Core/compinit, Completion/Core/compdump,
	  Doc/Zsh/compsys.yo: rebind existing completion widgets for new
	  completion instead of defining new ones.

	* pws: 6717: Doc/Zsh/options.yo, Src/exec.c, Src/options.c,
	  Src/signals.c, Src/zsh.h: Option LOCAL_TRAPS saves and restores
	  traps on exit from functions; set for ksh emulation.

	* Tanaka Akira: 6716: Completion/User/_chown: some systems use `:'
	  as separator in chown.

	* Oliver/Sven: 6709, 6710: Completion files Base/_subscript,
	  User/_chown, User/_groups, User/_x_options: _subscript shows
	  listing for ordinary arrays; new chown and chgrp completions;
	  example _x_options can complete displays.

	* Sven: 6707: Src/exec.c: Shell structures not at the end
	  of a pipeline are suspendable.  This is the only way
	  of stopping a command in such a structure where the command
	  handles interruptions in such a way that zsh doesn't see them.

1999-06-17  Peter Stephenson  <pws@ibmth.difi.unipi.it>

	* pws: 6705: Doc/Zsh/builtins.yo, Src/builtin.c, Src/exec.c,
	  Src/init.c, Src/input.c, Src/parse.c: some more LINENO
	  subtleties: embedded function definitions have correct line
	  number; all lines, not just ones with new PS1, are counted
	  interactively; traps with trap builtin use line no. of
	  surrounding environment.

	* Sven: 6693: Src/Modules/parameter.c, Src/builtin.c, Src/exec.c,
	  Src/input.c, Src/zsh.h: update LINENO properly when parsing a
	  string.

	* Sven: 6692: Src/Zle/comp.h, Src/Zle/compctl.c,
	  Src/Zle/zle_tricky.c, Doc/Zsh/compwid.yo,
	  Completion/Builtins/_kill, Completion/Builtins/_wait,
	  Completion/User/_gdb: allow the -y option to compadd for
	  specifying an array to use when listing.

	* Sven: 6689: Src/Zle/zle_tricky.c, Completion/Base/_subscript:
	  test for closing bracket in get_comp_string().

	* Oliver: 6688: Zsh/compsys.yo, Zsh/func.yo, Zsh/mod_zle.yo,
	  Zsh/params.yo, Zsh/zftpsys.yo: spelling changes.

	* Wayne: 6682: Src/hist.c: Uniquified history commands are limited
	  to size $SAVEHIST, so that the last  $((HISTSIZE-SAVEHIST))
	  commands are always available even with HIST_EXPIRE_DUPS_FIRST.

	* Sven: 6686: Completion/Core/_match, Completion/Core/_path_files,
	  Doc/Zsh/compsys.yo: New configuration keys path_cursor,
	  match_insert.

	* Sven: 6685: Src/Zle/compctl.c, Src/Zle/zle_params.c,
	  Doc/Zsh/zle.yo, Completion/Base/_first,
	  Completion/Commands/_correct_filename,
	  Completion/Commands/_most_recent_file,
	  Completion/Core/_approximate, Completion/Core/_expand,
	  Completion/Core/_list: NUMERIC is unset if no prefix was given;
	  it may be unset explicitly, and if set again will be restored in
	  the expected way.

	* Wayne: 6683: Src/exec.c: ambiguous brace

	* Wayne: 6681: Src/builtin.c: start-of-loop check for history -r
	  was wrong.

1999-06-16  Peter Stephenson  <pws@ibmth.difi.unipi.it>

	* pws: 6679: Src/Zle/zle_thingy.c, Doc/Zsh/compwid.yo:  always
	  use .complete-word etc. as widget type in zle -C.

	* pws: 6677: Doc/Zsh/guide.yo: avoid TeX overfull hbox problem.

	* Andrej: 6674: Doc/zsh.yo, Doc/ztexi.yo: change order of initial
	formatting instructions to make interaction with system
	configuration files better.

	* pws: 6660: Doc/Zsh/compctl.yo: pointer to new completion system
	  at top of compctl documentation.

	* pws: 6659: Src/Zle/zle_tricky.c: a couple of NULL's should be 0's

	* pws: 6658: Doc/Zsh/options.yo, Src/init.c:  options strings at
	  shell startup can end with whitespace (for #!), but anything
	  after the whitespace causes an error.

	* Sven: 6657: Completion files Base/_subscript,
	  Builtins/_autoload, Builtins/_bindkey, Builtins/_echotc,
	  Builtins/_kill, Builtins/_limits, Builtins/_wait,
	  Builtins/_zmodload, User/_dd, User/_find, User/_gdb, User/_make,
	  User/_mh, User/_rlogin, User/_x_options: New gdb completion;
	  improved make completion; use compadd in preference to compgen
	  -[sk]; configuration keys ps_args, ps_listsargs.

	* Sven: 6654: Src/Zle/zle_tricky.c: empty display list after -y.

	* Bart: 6652: Src/exec.c: trailing spaces confused #! emulation.

	* Sven: 6649: Src/Zle/zle_tricky.c: behaviour of compctl -l.

	* Bart: 6646: Src/lex.c: extra braces to enhance beauty of code
	  which appeared in 3.0.5.

1999-06-15  Peter Stephenson  <pws@ibmth.difi.unipi.it>

	* Tanaka Akira: 6642: Completion/Base/_tilde: complete directory
	  stack elements after ~+ or ~-.

	* Tanaka Akira: 6641: Src/subst.c: treat ~-0 like ~0

	* pws: 6639: configure.in: don't try type of $enable_val if empty
	  (needed when off_t/ino_t are 64-bit without explicit enabling).

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pws-23
  1999-06-20 15:28 pws-23 Peter Stephenson
@ 1999-06-20 17:15 ` Bart Schaefer
  1999-06-21  7:15   ` pws-23 Peter Stephenson
  1999-06-20 17:28 ` PATCH: Spelling error (Re: pws-23) Bart Schaefer
  1999-06-20 18:16 ` PATCH: Omissions " Bart Schaefer
  2 siblings, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 1999-06-20 17:15 UTC (permalink / raw)
  To: Zsh hackers list

There seems to be a problem in this tar file with Completion/Base/_first --
to wit, it's a fragment of Completion/Base/_subscript, and the entire
previous contents of _first (which was nothing but a long comment) have
disappeared.

Was this really intentional?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* PATCH: Spelling error (Re: pws-23)
  1999-06-20 15:28 pws-23 Peter Stephenson
  1999-06-20 17:15 ` pws-23 Bart Schaefer
@ 1999-06-20 17:28 ` Bart Schaefer
  1999-06-20 18:16 ` PATCH: Omissions " Bart Schaefer
  2 siblings, 0 replies; 6+ messages in thread
From: Bart Schaefer @ 1999-06-20 17:28 UTC (permalink / raw)
  To: Zsh hackers list

One of my spelling corrections got lost.

Index: Doc/Zsh/compctl.yo
===================================================================
@@ -13,7 +13,7 @@
 )\
 ifnzman(\
 sect(Types of completion)
-This version of zsh has two ways of performing completino of words on the
+This version of zsh has two ways of performing completion of words on the
 command line.  New users of the shell may prefer to use the newer
 and more powerful system based on shell functions; this is described
 in noderef(Completion System), and the basic shell mechanisms which support

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* PATCH: Omissions (Re: pws-23)
  1999-06-20 15:28 pws-23 Peter Stephenson
  1999-06-20 17:15 ` pws-23 Bart Schaefer
  1999-06-20 17:28 ` PATCH: Spelling error (Re: pws-23) Bart Schaefer
@ 1999-06-20 18:16 ` Bart Schaefer
  2 siblings, 0 replies; 6+ messages in thread
From: Bart Schaefer @ 1999-06-20 18:16 UTC (permalink / raw)
  To: Zsh hackers list

The first hunk of Sven's 6414 is missing.  This may be intentional, because
it fixes one bug by introducing another less-likely one, but the ChangeLog
says it should be there.

Index: Src/Zle/zle_tricky.c
===================================================================
@@ -735,7 +735,7 @@
 		*b != '=' && *b != Equals &&
 		*b != '~' && *b != Tilde)
 		break;
-	if (*b == '#' || *b == Pound || *b == '+')
+	if (*b == '#' || *b == Pound || *b == '+' || *b == ' ')
 	    b++;
 
 	e = b;

The documentation in compsys.yo from Sven's 6686 is also missing.

Index: Doc/Zsh/compsys.yo
===================================================================
@@ -474,6 +474,12 @@
 `tt(*)' will be inserted. If tt(match_original) has any other non-empty
 string as its value, this completer will first try to generate matches
 without, then with a `tt(*)' inserted at the cursor position.
+
+The generated matches will be offered in a menucompletion unless the
+tt(match_insert) configuration key is set to a string starting with
+`tt(unambig)'. In this case menucompletion will only be started if no
+unambiguous string could be generated that is at least as long as the
+original string.
 )
 item(tt(_expand))(
 This completer function does not really do completion, but instead
@@ -707,10 +713,13 @@
 `tt(-S)', `tt(-q)', `tt(-r)', and `tt(-R)' options from the
 tt(compadd) builtin.
 
-Finally, the tt(_path_files) function supports one configuration key:
-tt(path_expand). If this is set to any non-empty string, the partially
+Finally, the tt(_path_files) function supports two configuration keys.
+If tt(path_expand) is set to any non-empty string, the partially
 typed path from the line will be expanded as far as possible even if
-trailing pathname components can not be completed.
+trailing pathname components can not be completed. And if
+tt(path_cursor) is set to a non-empty string, the cursor will be left
+after the first ambiguous pathname component even when menucompletion
+is used.
 )
 item(tt(_parameters))(
 This should be used to complete parameter names if you need some of the

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pws-23
  1999-06-20 17:15 ` pws-23 Bart Schaefer
@ 1999-06-21  7:15   ` Peter Stephenson
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Stephenson @ 1999-06-21  7:15 UTC (permalink / raw)
  To: Zsh hackers list

"Bart Schaefer" wrote:
> There seems to be a problem in this tar file with Completion/Base/_first --
> to wit, it's a fragment of Completion/Base/_subscript, and the entire
> previous contents of _first (which was nothing but a long comment) have
> disappeared.

Somehow applying a patch has done for it.  This is how I think it should
look after 6685.


#compdef -first-

# This function is called at the very beginning before any other
# function for a specific context.
#
# This just gives some examples of things you might want to do here.
#
#
# If you use the vared builtin and want completion in there to act the 
# way completion on the right hand side of assignments is done, add
# (or un-comment) this code:
#
#     if [[ -n $compstate[vared] ]]; then
#       if [[ $compstate[vared] = *\[* ]]; then
#         # vared on an array-element
#         compstate[parameter]=${compstate[vared]%%\[*}
#         compstate[context]=value
#       else
#         # vared on a parameter, let's see if it is an array
#         compstate[parameter]=$compstate[vared]
#         if [[ ${(tP)compstate[vared]} = *(array|assoc)* ]]; then
#           compstate[context]=array_value
#         else
#           compstate[context]=value
#         fi
#       fi
#       return
#     fi
#
#
#
# Other things you can do here is to complete different things if the
# word on the line matches a certain pattern. This example allows
# completion of words from the history by adding two commas at the end 
# and hitting TAB.
#
#     if [[ "$PREFIX" = *,, ]]; then
#       local max i=1
#     
#       PREFIX="$PREFIX[1,-2]"
#       # If a numeric prefix is given, we use it as the number of
#       # lines (multiplied by ten below) in the history to search.
#       if [[ ${NUMERIC:-1} -gt 1 ]]; then
#         max=$NUMERIC
#         unset NUMERIC
#       else
#         # The default is to search the last 100 lines.
#         max=10
#       fi
#       # We first search in the last ten lines, then in the last
#       # twenty lines, and so on...
#       while [[ i -le max ]]; do
#         if compgen -X "%Bhistory ($n):%b" -Q -H $(( i*10 )) ''; then
#           # We have found at least one matching word, so we switch
#           # on menu-completion and make sure that no other
#           # completion function is called by setting _comp_skip.
#           compstate[insert]=menu
#           _comp_skip=1
#           return
#         fi
#         (( i++ ))
#       done
#     fi

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PATCH: Omissions (Re: pws-23)
@ 1999-06-21  7:51 Sven Wischnowsky
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Wischnowsky @ 1999-06-21  7:51 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> The first hunk of Sven's 6414 is missing.  This may be intentional, because
> it fixes one bug by introducing another less-likely one, but the ChangeLog
> says it should be there.
> 
> Index: Src/Zle/zle_tricky.c
> ===================================================================
> @@ -735,7 +735,7 @@
>  		*b != '=' && *b != Equals &&
>  		*b != '~' && *b != Tilde)
>  		break;
> -	if (*b == '#' || *b == Pound || *b == '+')
> +	if (*b == '#' || *b == Pound || *b == '+' || *b == ' ')
>  	    b++;
>  
>  	e = b;

I took that out in 6492.

> The documentation in compsys.yo from Sven's 6686 is also missing.

But that should be added.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-06-21  7:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-20 15:28 pws-23 Peter Stephenson
1999-06-20 17:15 ` pws-23 Bart Schaefer
1999-06-21  7:15   ` pws-23 Peter Stephenson
1999-06-20 17:28 ` PATCH: Spelling error (Re: pws-23) Bart Schaefer
1999-06-20 18:16 ` PATCH: Omissions " Bart Schaefer
1999-06-21  7:51 Sven Wischnowsky

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).