zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: misc. small changes
@ 2000-03-29 10:50 Oliver Kiddle
  2000-03-29 17:48 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Kiddle @ 2000-03-29 10:50 UTC (permalink / raw)
  To: Zsh workers

This patch just tidies up a few small things. _zpty is modified to make
use of Sven's changes which are now in dev-20. There is a small fix for
_nedit. I've added a second condition test for /dev/fd/0 to the tests
as there is two separate forms of handling for this. The ChangeLog
referenced 9761 twice and refered to a zsh-3.1.6-pws-11.new directory
for one change - probably my fault for generating the diff from the
wrong place. Finally, I have made an addition to the docs for the
subst-globs-only style I added to _expand and fixed a typo.

Oliver

--- Completion/Builtins/_zpty.bak	Tue Mar 28 18:55:40 2000
+++ Completion/Builtins/_zpty	Tue Mar 28 18:56:11 2000
@@ -7,9 +7,9 @@
   '(-d -w -r -L)-b[io to pseudo-terminal blocking]' \
   '(-e -b -w -r -L)-d[delete command]:*:name:->name' \
   '(-e -b -d -r -L)-w[send string to command]:name:->name:*:strings to write' \
-  '(-e -b -d -w -L)-r[read string from command]:name:->name:param:_parameters:*:nothing:_nothing' \
+  '(-e -b -d -w -L *)-r[read string from command]:name:->name:param:_parameters' \
   '(-e -b -d -w -r)-L[list defined commands as calls]' \
-  '*::args:_normal'
+  '(-r)*::args:_normal'
 
 if [[ $state = name ]] && _wanted names; then
   list=( ${${(f)"$(zpty)"}#*\) } )
--- Completion/User/_nedit.bak	Tue Mar 28 18:57:07 2000
+++ Completion/User/_nedit	Tue Mar 28 18:57:25 2000
@@ -40,7 +40,7 @@
     '(-background)-bg[specify background color]:background color:_x_color' \
     '(-fg)-foreground:foreground color:_x_color' \
     '(-foreground)-fg[specify foreground color]:foreground color:_x_color' \
-    '-import[load additional preferences file]:nedit preferences file:_files' \
+    '*-import[load additional preferences file]:nedit preferences file:_files' \
     "$nedit_common[@]"
 fi
 
--- Test/07cond.ztst.bak	Tue Mar 28 18:40:58 2000
+++ Test/07cond.ztst	Tue Mar 28 18:46:07 2000
@@ -139,7 +139,10 @@
 0:|| and && in conds
 
   [[ -e /dev/fd/0 ]]
-0:/dev/fd support in conds
+0:/dev/fd support in conds handled by access
+
+  [[ -O /dev/fd/0 ]]
+0:/dev/fd support in conds handled by stat
 
   [[ ( -z foo && -z foo ) || -z foo ]]
 1:complex conds with skipping
--- ChangeLog.bak	Tue Mar 28 19:08:03 2000
+++ ChangeLog	Tue Mar 28 19:17:33 2000
@@ -628,8 +628,6 @@
 
 	* Sven: 9763: Src/subst.c: addition to 9757.
 
-	* Oliver: 9761: Completion/Core/_expand: handle suffix.
-
 	* Sven: 9759: Completion/Base/_default, Doc/Zsh/compsys.yo,
 	Src/Zle/comp.h, Src/Zle/compcore.c, Src/Zle/compctl.c,
 	Src/Zle/complete.c: use-compctl style to use existing compctls;
@@ -1744,12 +1742,9 @@
 
 1999-12-14  Peter Stephenson  <pws@pwstephenson.fsnet.co.uk>
 
-	* Oliver: 9047: zsh-3.1.6-pws-11.new/Src/Zle/compcore.c,
-	zsh-3.1.6-pws-11.new/Src/Zle/compresult.c,
-	zsh-3.1.6-pws-11.new/Src/Zle/zle_thingy.c,
-	zsh-3.1.6-pws-11.new/Src/Zle/zle_tricky.c,
-	zsh-3.1.6-pws-11.new/Src/mkmakemod.sh: hack .export files to
-	be made in time for use.
+	* Oliver: 9047: Src/Zle/compcore.c, Src/Zle/compresult.c,
+	Src/Zle/zle_thingy.c, Src/Zle/zle_tricky.c, Src/mkmakemod.sh:
+	hack .export files to be made in time for use.
 
 	* Sven: 9039: Doc/Zsh/mod_compctl.yo: description change.
 
--- Doc/Zsh/compsys.yo.bak	Tue Mar 28 19:27:49 2000
+++ Doc/Zsh/compsys.yo	Wed Mar 29 10:42:45 2000
@@ -1413,6 +1413,13 @@
 substitution will be performed only if given an explicit numeric
 argument other than `tt(1)', as by typing `tt(ESC 2 TAB)'.
 )
+item(tt(subst-globs-only))(
+If this is set to `tt(1)' or an expression that evaluates to `tt(1)'
+then _expand will only do substitution if globbing is able to do
+something. This is useful if you prefer not to have substitution but
+want globbing to work in cases where there are substitutions in the
+string.
+)
 item(tt(tag-order))(
 This provides a mechanism for sorting how the tags available in a
 particular context will be used.
@@ -1776,7 +1783,7 @@
 string from the line.
 
 Which kind of expansion is tried is controlled by the tt(substitute)
-nad tt(glob) styles. Note that neither of these has a default value so 
+and tt(glob) styles. Note that neither of these has a default value so 
 that they have to be set to make tt(_expand) generate any expansions
 at all.


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

* Re: PATCH: misc. small changes
  2000-03-29 10:50 PATCH: misc. small changes Oliver Kiddle
@ 2000-03-29 17:48 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-03-29 17:48 UTC (permalink / raw)
  To: Zsh workers

On Mar 29, 11:50am, Oliver Kiddle wrote:
} Subject: PATCH: misc. small changes
}
} Finally, I have made an addition to the docs for the
} subst-globs-only style I added to _expand and fixed a typo.

Sven did this already, in 10265.

This patch backs out Oliver's patch and fixes a missing kindex() entry.

Index: Doc/Zsh/compsys.yo
===================================================================
@@ -1564,13 +1564,7 @@
 substitution will be performed only if given an explicit numeric
 argument other than `tt(1)', as by typing `tt(ESC 2 TAB)'.
 )
-item(tt(subst-globs-only))(
-If this is set to `tt(1)' or an expression that evaluates to `tt(1)'
-then _expand will only do substitution if globbing is able to do
-something. This is useful if you prefer not to have substitution but
-want globbing to work in cases where there are substitutions in the
-string.
-)
+kindex(tag-order, completion style)
 item(tt(tag-order))(
 This provides a mechanism for sorting how the tags available in a
 particular context will be used.

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


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

end of thread, other threads:[~2000-03-29 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-29 10:50 PATCH: misc. small changes Oliver Kiddle
2000-03-29 17:48 ` Bart Schaefer

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