From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: problems completing reserved words
Date: Fri, 18 Jun 2004 15:03:47 +0200 [thread overview]
Message-ID: <21282.1087563827@trentino.logica.co.uk> (raw)
completing after disable -r results in:
(eval):1: parse error near `}'
Is it perhaps new that `}' and `{' can be disabled because _disable and
_enable haven't been updated in a long time so they may have once
worked. This could also have been caused by a change in _arguments. Or
maybe they never worked.
Anyway the two functions can be directly fixed with this patch.
Oliver
Index: Completion/Zsh/Command/_disable
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_disable,v
retrieving revision 1.1
diff -u -r1.1 _disable
--- Completion/Zsh/Command/_disable 2 Apr 2001 11:27:24 -0000 1.1
+++ Completion/Zsh/Command/_disable 18 Jun 2004 12:44:09 -0000
@@ -3,6 +3,6 @@
_arguments -C -s -A "-*" -S \
"(-f -r)-a[act on aliases]:*:aliases:(${(k)aliases} ${(k)galiases})" \
"(-a -r)-f[act on functions]:*:functions:(${(k)functions})" \
- "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)reswords})" \
+ "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k reswords" \
'-m[treat arguments as patterns]' \
"*:builtin command:(${(k)builtins})"
Index: Completion/Zsh/Command/_enable
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_enable,v
retrieving revision 1.2
diff -u -r1.2 _enable
--- Completion/Zsh/Command/_enable 7 Aug 2001 19:29:14 -0000 1.2
+++ Completion/Zsh/Command/_enable 18 Jun 2004 12:44:09 -0000
@@ -3,6 +3,6 @@
_arguments -C -s -A "-*" -S \
"(-f -r)-a[act on aliases]:*:aliases:(${(k)dis_aliases})" \
"(-a -r)-f[act on functions]:*:functions:(${(k)dis_functions})" \
- "(-a -f)-r[act on reserved words]:*:reserved-words:(${(k)dis_reswords})" \
+ "(-a -f)-r[act on reserved words]:*:reserved-words:compadd -k dis_reswords" \
'-m[treat arguments as patterns]' \
"*:builtin command:(${(k)dis_builtins})"
reply other threads:[~2004-06-18 13:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21282.1087563827@trentino.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).