Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Silly questions about _arguments & Co (and probably bugs)



In article <000301befad6$1d396a80$21c9ca95@xxxxxxxxxxxxxx>,
  "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx> writes:

> BTW I find the --use-index-line really useful. I have constant problems with
> cvs-generated patches - either index line is ignored (non-POSIX) or new files
> are not created (POSIX). Anybody knows, how to fix it in pure patch?

Remove the following lines in pch.c.

        if (! posixly_correct && (name[OLD] || name[NEW]) && name[INDEX])
          {
            free (name[INDEX]);
            name[INDEX] = 0;
          }

In article <000401befad6$ad291a50$21c9ca95@xxxxxxxxxxxxxx>,
  "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx> writes:

> Running under dtterm with 24x80 size and doing
> 
> patch TAB
> 
> creates a select listing longer than screen size. At least, if I do it in a
> directory with ~ 15 files.

I think `compconf option_prefix=all' is useful.

And, I found another problem. `patch -f<TAB>' does not show list of
completion candidates. However completion itself works well.

is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' describe_options=yes   
is27e1u11% patch -f<TAB>
option

is27e1u11% set -x
is27e1u11% patch -f<TAB>
...
+_display:31> compadd -D _arr -  --backup-if-mismatch --backup --basename-prefix --batch --binary --context --directory --dry-run --ed --force --forward --fuzz --get --help --ifdef --ignore-whitespace --input --no-backup-if-mismatch --normal --output --patch-root --posix --prefix --quiet --quoting-style --reject-file --remove-empty-files --reverse --set-time --set-utc --strip --suffix --unified --use-index-line --verbose --version-control --version -B -D -E -F -N -R -S -T -V -Y -Z -b -d -g -i -l -n -p -s -t -u -v -z
+_display:33> [[ o != ( ]]
+_display:33> eval odescr=( "$_arr[@]" )
+_display:33> odescr=( ) 
+_display:35> ((  0  ))
+_display:79> eval tmp=''
+_display:79> tmp= 
+_display:80> return 1
+_arguments:826> compadd -J option -X option -Q -M r:|[_-]=* r:|=* -y tmp - -fR -fS -fT -fZ -fb -fl -fn -fs -ft -fu -fv -fE -fN -fB -fd -fD -fV -fg -fF -fi -fz -fY -fp
...
+_main_complete:101> return ret

option

So, I think this is the problem of `_display'.
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author