zsh-users
 help / color / mirror / code / Atom feed
* A few problems with 4.0.1-pre-1
@ 2001-02-28 15:53 Paul Ackersviller
  2001-02-28 16:40 ` PATCH: " Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Ackersviller @ 2001-02-28 15:53 UTC (permalink / raw)
  To: zsh-users

I just installed zsh 4.0.1-pre-1 from CVS and was getting errors from
_main_complete.  This used to work for me a couple of months ago, so I
managed to get it going by looking at what had changed from 3.1.9-dev-7.
The diffs are:
< setopt localoptions nullglob rcexpandparam extendedglob unset
< unsetopt markdirs globsubst shwordsplit shglob ksharrays cshnullglob
---
> setopt localoptions $_comp_options
> 
The fix is simply to put back unsetopt ksharrays.  Even though
$_comp_options has noksharrays in it, the fact that it's inside of a
csh-style array is trouble for someone such as myself who is setting
ksharrays earlier.

My second problem is that in vi editting mode, after I type Escape,
then / to search through history, all I get is this error:
_history_complete_word_gen_matches:21: bad output format specification
I don't even see where this function is coming from, so can someone
enlighten me on this?

Lastly, the Makefile is not working for me in Doc.  The output is below,
and I see that there's no $target created.  It appears ': yodl' should
be something else, can anyone tell me what?
case zsh.1 in \
  */*) target=zsh.1 ;; \
  *) target=./zsh.1 ;; \
esac; \
case ': yodl' in :*) ;; *) \
    : yodl -I. -w zman.yo version.yo zsh.yo | sed -e '1s/\\-/-/g' -e '/^\.'\''/d' > $target \
;; esac; \
test -f $target
make: *** [zsh.1] Error 1

-- 
Paul Ackersviller


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

* PATCH: Re: A few problems with 4.0.1-pre-1
  2001-02-28 15:53 A few problems with 4.0.1-pre-1 Paul Ackersviller
@ 2001-02-28 16:40 ` Bart Schaefer
  2001-02-28 16:51   ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2001-02-28 16:40 UTC (permalink / raw)
  To: Paul Ackersviller, zsh-users

On Feb 28,  8:53am, Paul Ackersviller wrote:
} Subject: A few problems with 4.0.1-pre-1
}
} > setopt localoptions $_comp_options
} > 
} The fix is simply to put back unsetopt ksharrays.  Even though
} $_comp_options has noksharrays in it, the fact that it's inside of a
} csh-style array is trouble for someone such as myself who is setting
} ksharrays earlier.

That's not the problem, the problem is that $_comp_options is a zsh-style
array "dereference".  The patch below should fix it.

} My second problem is that in vi editting mode, after I type Escape,
} then / to search through history, all I get is this error:
} _history_complete_word_gen_matches:21: bad output format specification

This is also a ksharrays problem.

} I don't even see where this function is coming from, so can someone
} enlighten me on this?

It's because of this line at the top of _history_complete_word:

#compdef -K _history-complete-older complete-word \e/

This causes ESC / to be bound to history completion.  This is designed
to be done in "bindkey -e" mode, but you must have "bindkey -v" before
"compinit" in your startup files, so the keys get bound that way in vi
mode.  Hence you aren't even in history search mode yet when the first
thing you type after ESC is a slash.

} Lastly, the Makefile is not working for me in Doc.  The output is below,
} and I see that there's no $target created.  It appears ': yodl' should
} be something else, can anyone tell me what?

You need to install yodl in order to build the docs from the cvs source.

The use of ": yodl" (when yodl is not installed) followed by "test -f"
is so that the install works correctly when building from the distrib
tarballs, which have the doc files already compiled and hence don't need
yodl.

Here's the patch.


Index: ChangeLog
===================================================================
--- ChangeLog	2001/02/26 17:11:17	1.172
+++ ChangeLog	2001/02/27 17:42:18
@@ -13,6 +13,12 @@
 	
 	* 13530: Src/hist.c: properly restore noaliases in bufferwords()
 	
+2001-02-22  Peter Stephenson  <pws@csr.com>
+
+	* 13520: Completion/Builtin/_vars_eq: use $service to decide
+	on service; shorten description to avoid dreaded 80-character
+	redisplay bug.
+
 2001-02-20  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 13509: Src/jobs.c: more (|un)queue_signals(), this time for the
Index: Completion/Commands/_bash_completions
===================================================================
--- Completion/Commands/_bash_completions	2000/10/22 03:08:48	1.9
+++ Completion/Commands/_bash_completions	2001/02/28 16:28:56
@@ -25,7 +25,7 @@
 # that will not have been overridden, so you should add '~' to the
 # list of keys at the top of the for-loop.
 
-setopt localoptions $_comp_options
+setopt localoptions ${_comp_options[@]}
 
 local key=$KEYS[-1] expl
 
Index: Completion/Commands/_complete_debug
===================================================================
--- Completion/Commands/_complete_debug	2000/10/22 03:08:48	1.12
+++ Completion/Commands/_complete_debug	2001/02/28 16:29:30
@@ -1,6 +1,6 @@
 #compdef -k complete-word \C-x?
 
-setopt localoptions $_comp_options
+setopt localoptions ${_comp_options[@]}
 
 setopt localtraps noerrexit ; trap - ZERR
 
Index: Completion/Commands/_complete_help
===================================================================
--- Completion/Commands/_complete_help	2000/10/22 03:08:48	1.15
+++ Completion/Commands/_complete_help	2001/02/28 16:29:33
@@ -1,7 +1,7 @@
 #compdef -k complete-word \C-xh
 
 _complete_help() {
-  setopt localoptions $_comp_options
+  setopt localoptions ${_comp_options[@]}
 
   exec </dev/null	# ZLE closes stdin, which can cause errors
 
Index: Completion/Commands/_correct_word
===================================================================
--- Completion/Commands/_correct_word	2000/10/22 03:08:48	1.12
+++ Completion/Commands/_correct_word	2001/02/28 16:29:35
@@ -7,7 +7,7 @@
 # If configurations keys with the prefix `correctword_' are
 # given they override those starting with `correct_'.
 
-setopt localoptions $_comp_options
+setopt localoptions ${_comp_options[@]}
 
 local curcontext="$curcontext"
 
Index: Completion/Commands/_expand_word
===================================================================
--- Completion/Commands/_expand_word	2000/10/22 03:08:48	1.15
+++ Completion/Commands/_expand_word	2001/02/28 16:29:37
@@ -2,7 +2,7 @@
 
 # Simple completion front-end implementing expansion.
 
-setopt localoptions $_comp_options
+setopt localoptions ${_comp_options[@]}
 
 local curcontext="$curcontext"
 
Index: Completion/Commands/_history_complete_word
===================================================================
--- Completion/Commands/_history_complete_word	2000/10/22 03:08:48	1.23
+++ Completion/Commands/_history_complete_word	2001/02/28 16:27:39
@@ -16,7 +16,7 @@
 #   range -- range of history words to complete
 
 _history_complete_word () {
-  setopt localoptions $_comp_options
+  setopt localoptions ${_comp_options[@]}
 
   local expl direction stop curcontext="$curcontext"
   local max slice hmax=$#historywords
Index: Completion/Commands/_next_tags
===================================================================
--- Completion/Commands/_next_tags	2000/10/22 03:08:48	1.15
+++ Completion/Commands/_next_tags	2001/02/28 16:29:43
@@ -3,7 +3,7 @@
 # Main widget.
 
 _next_tags() {
-  setopt localoptions $_comp_options
+  setopt localoptions ${_comp_options[@]}
 
   local ins ops="$PREFIX$SUFFIX"
 
Index: Completion/Core/_main_complete
===================================================================
--- Completion/Commands/_main_complete	2000/10/22 03:08:48	1.80
+++ Completion/Commands/_main_complete	2001/02/28 16:22:20
@@ -16,7 +16,7 @@
 # which makes the output of setopt and unsetopt reflect a different
 # state than the global one for which you are completing.
 
-setopt localoptions $_comp_options
+setopt localoptions ${_comp_options[@]}
 
 exec </dev/null	# ZLE closes stdin, which can cause errors
 

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

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

* Re: PATCH: Re: A few problems with 4.0.1-pre-1
  2001-02-28 16:40 ` PATCH: " Bart Schaefer
@ 2001-02-28 16:51   ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2001-02-28 16:51 UTC (permalink / raw)
  To: zsh-users

On Feb 28,  4:40pm, Bart Schaefer wrote:
} Subject: PATCH: Re: A few problems with 4.0.1-pre-1
}
} Here's the patch.
} 
} Index: ChangeLog

Oops, sorry about that.

} Index: Completion/Core/_main_complete
} ===================================================================
} --- Completion/Commands/_main_complete	2000/10/22 03:08:48	1.80

Argh.  (Tried to fix up a bogus "cvs diff" by hand and pasted in the
wrong thing.  Fortunately this overlaps with Oliver's patch.)


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

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


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

end of thread, other threads:[~2001-02-28 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-28 15:53 A few problems with 4.0.1-pre-1 Paul Ackersviller
2001-02-28 16:40 ` PATCH: " Bart Schaefer
2001-02-28 16:51   ` 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).