zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#303278: zsh: completions for gv are for pre 3.6
       [not found] <E1DIsyg-0002EX-S2@soup>
@ 2005-04-05 19:06 ` Clint Adams
  2005-04-06  8:27   ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2005-04-05 19:06 UTC (permalink / raw)
  To: zsh-workers, 303278-forwarded

> 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'


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug#303278: zsh: completions for gv are for pre 3.6
  2005-04-05 19:06 ` Bug#303278: zsh: completions for gv are for pre 3.6 Clint Adams
@ 2005-04-06  8:27   ` Oliver Kiddle
  2005-04-06 15:29     ` Clint Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2005-04-06  8:27 UTC (permalink / raw)
  To: zsh-workers, 303278-forwarded

Clint wrote:
> > The completion for gv (functions/Completion/X/_gv) uses the pre-3.6
> > single dash command line arguments rather than the new POSIX-like

Aren't two dashes a GNU thing, not POSIX?

> > 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?

Probably not.

In general we've never tried to support old versions of software except
where the old version continues to be widely distributed (such as if
Solaris comes with an old version).

Any reason for removing gview from the commands it completes? Is that a
Gnome variant of gv? We probably should complete postscript files for
kghostview too.

Oliver


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug#303278: zsh: completions for gv are for pre 3.6
  2005-04-06  8:27   ` Oliver Kiddle
@ 2005-04-06 15:29     ` Clint Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Clint Adams @ 2005-04-06 15:29 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: zsh-workers

> Aren't two dashes a GNU thing, not POSIX?

Yes.

> Probably not.

Okay, I'll commit it then.

> Any reason for removing gview from the commands it completes? Is that a
> Gnome variant of gv? We probably should complete postscript files for
> kghostview too.

Well, my gview is a symlink to vim.  We have the GNOME variant in
_gnome-gv.  I'll leave kghostview to someone who has it installed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-06 15:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1DIsyg-0002EX-S2@soup>
2005-04-05 19:06 ` Bug#303278: zsh: completions for gv are for pre 3.6 Clint Adams
2005-04-06  8:27   ` Oliver Kiddle
2005-04-06 15:29     ` Clint Adams

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).