Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#303278: zsh: completions for gv are for pre 3.6
- X-seq: zsh-workers 21096
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, 303278-forwarded@xxxxxxxxxxxxxxx
- Subject: Re: Bug#303278: zsh: completions for gv are for pre 3.6
- Date: Tue, 5 Apr 2005 15:06:16 -0400
- In-reply-to: <E1DIsyg-0002EX-S2@soup>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, 303278-forwarded@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E1DIsyg-0002EX-S2@soup>
> The completion for gv (functions/Completion/X/_gv) uses the pre-3.6
> single dash command line arguments rather than the new POSIX-like
> syntax used (with two dashes) in 3.6. The easiest way to detect
Is it worth it to check which version of gv is in use?
Index: Completion/X/Command/_gv
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_gv,v
retrieving revision 1.1
diff -u -r1.1 _gv
--- Completion/X/Command/_gv 2 Apr 2001 12:13:49 -0000 1.1
+++ Completion/X/Command/_gv 5 Apr 2005 19:03:58 -0000
@@ -1,39 +1,42 @@
-#compdef gv gview
+#compdef gv
-_xt_arguments \
- '(-nosafer)-safer' \
- '(-safer)-nosafer' \
- '(-noquiet)-quiet' \
- '(-quiet)-noquiet' \
- '(-nocenter)-center' \
- '(-center)-nocenter' \
- '(-noswap)-swap' \
- '(-swap)-noswap' \
- '(-noantialias)-antialias' \
- '(-antialias)-noantialias' \
- '(-nodsc)-dsc' \
- '(-dsc)-nodsc' \
- '(-noeof)-eof' \
- '(-eof)-noeof' \
- '(-nopixmap)-pixmap' \
- '(-pixmap)-nopixmap' \
- '(-nowatch)-watch' \
- '(-watch)-nowatch' \
- '(-noresize)-resize' \
- '(-resize)-noresize' \
- '(-grayscale -color)-monochrome' \
- '(-monochrome -color)-grayscale' \
- '(-grayscale -color)-monochrome' \
- '(-landscape -seascape -upsidedown)-portrait' \
- '(-portrait -seascape -upsidedown)-landscape' \
- '(-portrait -landscape -upsidedown)-seascape' \
- '(-portrait -landscape -seascape)-upsidedown' \
- -{h,help,v,spartan} \
- '-arguments:ghostscript arguments:' \
- '-page:label of first page:' \
- '-media:page size:(Letter Legal Statement Tabloid Ledger Folio Quarto 10x14 Executive A3 A4 A5 B4 B5)' \
- '-scale:scale entry:' \
- '-scalebase:scale base:' \
- '-ad:resource file:_files' \
- '-style:resource file:_files' \
- '*:file: _pspdf -z'
+_arguments \
+ '-geometry:geometry:_x_geometry' \
+ '(--nosafer)--safer' \
+ '(--safer)--nosafer' \
+ '(--noquiet)--quiet' \
+ '(--quiet)--noquiet' \
+ '(--nocenter)--center' \
+ '(--center)--nocenter' \
+ '(--noswap)--swap' \
+ '(--swap)--noswap' \
+ '(--noantialias)--antialias' \
+ '(--antialias)--noantialias' \
+ '(--nodsc)--dsc' \
+ '(--dsc)--nodsc' \
+ '(--noeof)--eof' \
+ '(--eof)--noeof' \
+ '(--nopixmap)--pixmap' \
+ '(--pixmap)--nopixmap' \
+ '(--nowatch)--watch' \
+ '(--watch)--nowatch' \
+ '(--noresize)--resize' \
+ '(--resize)--noresize' \
+ '(--grayscale --color)--monochrome' \
+ '(--monochrome --color)--grayscale' \
+ '(--grayscale --color)--monochrome' \
+ '(--landscape --seascape --upsidedown)--portrait' \
+ '(--portrait --seascape --upsidedown)--landscape' \
+ '(--portrait --landscape --upsidedown)--seascape' \
+ '(--portrait --landscape --seascape)--upsidedown' \
+ --{help,spartan} \
+ -{h,v} \
+ '--arguments=:ghostscript arguments:' \
+ '--page=:label of first page:' \
+ '--media=:page size:(Letter Legal Statement Tabloid Ledger Folio Quarto 10x14 Executive A3 A4 A5 B4 B5)' \
+ '--orientation=:orientation:' \
+ '--scale=:scale entry:' \
+ '--scalebase=:scale base:' \
+ '--ad=:resource file:_files' \
+ '--style=:resource file:_files' \
+ '*:file: _pspdf --z'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author