From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: Problems with "comparguments" (Re: PATCH: broken _netscape)
Date: Mon, 22 Nov 1999 17:44:12 +0000 [thread overview]
Message-ID: <991122174412.ZM22551@candle.brasslantern.com> (raw)
In-Reply-To: <38396A7D.3CEF8AE5@u.genie.co.uk>
On Nov 22, 4:08pm, Oliver Kiddle wrote:
} Subject: PATCH: broken _netscape
}
} _netscape in pws-9 seems to be broken. This patch fixes it to a point
} where it atleast runs without errors but for some reason, completion of
} the arguments doesn't work. I suspect that it is a bug somewhere in
} _arguments.
I may be entirely wrong, but based on a scan through the "set -x" output
when completing after "netscape -", I'd say this is the same bug that is
causing "cvs" to complete --allow-root and the directories after it. I
suspect a parsing bug in "comparguments".
While we're on the topic, I noticed this in the manual page for "rxvt" the
other day:
-pixmap: file[;geom]
Specify XPM file for the background and also
optionally specify its scaling with a geometry
string. Note you may need to add quotes to avoid
special shell interpretation of the `;' in the com-
mand-line; resource backgroundPixmap.
Note that here we have an option whose name actually includes a colon. As
far as I can tell there's *no* way to represent this in the argument list
for _arguments or comparguments; perhaps _regex_arguments could deal with
it, but it doesn't appear so from a look at _apt.
The mini-language of _arg_compile could handle it:
_arg_compile args option -pixmap: follow next \
explain "file[;scaling]" \
means "XPM file for the background" \
action etc.
(I'm not sure how to specify the "action" for "complete files before a
semicolon, with a quoted semicolon as the auto-suffix, and geometries
after the semicolon", and I don't have time to work it out right now.
I'd love to see it done, though.) However, since _arg_compile presently
doesn't do anything but paste together things to pass to _arguments, it
isn't helpful that it can initially parse it ...
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1999-11-22 17:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-22 16:08 PATCH: broken _netscape Oliver Kiddle
1999-11-22 17:44 ` Bart Schaefer [this message]
1999-11-23 10:47 Problems with "comparguments" (Re: PATCH: broken _netscape) Sven Wischnowsky
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=991122174412.ZM22551@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.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).