From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 546 invoked from network); 10 Feb 2008 22:13:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Feb 2008 22:13:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 44651 invoked from network); 10 Feb 2008 22:13:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Feb 2008 22:13:00 -0000 Received: (qmail 25306 invoked by alias); 10 Feb 2008 22:12:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24545 Received: (qmail 25290 invoked from network); 10 Feb 2008 22:12:56 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 10 Feb 2008 22:12:56 -0000 Received: from pat.uio.no (pat.uio.no [129.240.10.15]) by bifrost.dotsrc.org (Postfix) with ESMTP id 07D0C80482A1 for ; Sun, 10 Feb 2008 23:12:52 +0100 (CET) Received: from mail-mx9.uio.no ([129.240.10.39]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1JOKPs-0001bX-Ab; Sun, 10 Feb 2008 23:12:52 +0100 Received: from smtp.uio.no ([129.240.10.9] helo=mail-mx9.uio.no) by mail-mx9.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1JOKPr-0001L3-Tn; Sun, 10 Feb 2008 23:12:52 +0100 Received: from c85-196-100-202.static.sdsl.no ([85.196.100.202] helo=bigboss.venod.com) by mail-mx9.uio.no with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JOKPr-0001Kx-Nm; Sun, 10 Feb 2008 23:12:51 +0100 Received: from fox.venod.com ([10.0.0.4]) by bigboss.venod.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.62) (envelope-from ) id 1JOKPr-0003HI-DK; Sun, 10 Feb 2008 23:12:51 +0100 Received: from hakonrk by fox.venod.com with local (Exim 4.67) (envelope-from ) id 1JOKPr-0000x5-0y; Sun, 10 Feb 2008 23:12:51 +0100 Date: Sun, 10 Feb 2008 23:12:50 +0100 From: Haakon Riiser To: zsh-workers@sunsite.dk Cc: p.w.stephenson@ntlworld.com Subject: Re: _acroread completer updated for acroread 8.1.1 Message-ID: <20080210221250.GA3584@fox> References: <20080128004505.GA19261@fox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080128004505.GA19261@fox> User-Agent: Mutt/1.5.17 (2007-11-01) X-UiO-Resend: resent X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=0.0, required=5.0, autolearn=disabled, none) X-UiO-Scanned: B7B7FAEC7CA825A977EBEE3D3FF23F3797B6AA60 X-UiO-SPAM-Test: remote_host: 129.240.10.9 spam_score: 0 maxlevel 200 minaction 2 bait 0 mail/h: 155 total 6794639 max/h 8345 blacklist 0 greylist 0 ratelimit 0 X-Virus-Scanned: ClamAV 0.91.2/5767/Sun Feb 10 21:57:54 2008 on bifrost X-Virus-Status: Clean Reposting the below patch, now with cc to pws since CVS shows that he committed the last change. > The changes between acroread 8.x and 7.x are really small: 8.x > supports -v as an alias for -version, plus two new options, > -man and -installCertificate. This patch also adds support > for -stampsOff and -markupsOn, which seem to have been added > somewhere between 7.0.0 and 7.0.9. Don't know exactly which > version introduced them, so this patch just adds them regardless > of which 7.x (or 8.x) version is used. > > Index: _acroread > =================================================================== > RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_acroread,v > retrieving revision 1.7 > diff -u -r1.7 _acroread > --- _acroread 1 Mar 2007 19:22:33 -0000 1.7 > +++ _acroread 28 Jan 2008 00:39:40 -0000 > @@ -26,8 +26,15 @@ > fi > fi > > -if [[ $_acroread_version == 7.* ]]; then > +if [[ $_acroread_version == [78].* ]]; then > + local -a extra_args > + if [[ $_acroread_version == 8.* ]]; then > + extra_args=(-man '-installCertificate:server ip::server port') > + else > + extra_args=() > + fi > _arguments -C \ > + "${extra_args[@]}" \ > '--display=:X display:_x_display' \ > '--screen=:X screen (overrides the screen part of DISPLAY)' \ > --sync \ > @@ -55,6 +62,8 @@ > '(-odd)-even' \ > -commentsOff \ > -annotsOff \ > + -stampsOff \ > + -markupsOn \ > '(-level3)-level2' \ > '(-level2)-level3' \ > -printerhalftones \ > > -- > Haakon