zsh-workers
 help / color / mirror / code / Atom feed
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: zsh-workers@sunsite.dk
Subject: _acroread completer updated for acroread 8.1.1
Date: Mon, 28 Jan 2008 01:45:05 +0100	[thread overview]
Message-ID: <20080128004505.GA19261@fox> (raw)

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


             reply	other threads:[~2008-01-28  0:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28  0:45 Haakon Riiser [this message]
2008-02-10 22:12 ` Haakon Riiser
2008-02-21 15:23 ` 3rd repost: " Haakon Riiser
2008-02-21 16:08   ` Peter Stephenson

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=20080128004505.GA19261@fox \
    --to=haakon.riiser@fys.uio.no \
    --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).