zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: Re: completion function name clashes
Date: Wed, 27 Feb 2013 22:51:53 +0100	[thread overview]
Message-ID: <23594.1362001913@thecus.kiddle.eu> (raw)
In-Reply-To: <20235.1361979450@thecus.kiddle.eu>

We've also got a couple of cases of more than one function completing
for a specific command. There are two functions for yast. The patch
below is against the older one to make it complete .ycp files but I'll
move it to the opensuse directory.

Oliver

Index: Completion/Linux/Command/_yast
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_yast,v
retrieving revision 1.1
diff -u -r1.1 _yast
--- Completion/Linux/Command/_yast	8 Jun 2005 12:12:42 -0000	1.1
+++ Completion/Linux/Command/_yast	27 Feb 2013 21:45:40 -0000
@@ -8,4 +8,4 @@
   '--noborder[no window manager border for main window]' \
   '--fullscreen[use full screen]' \
   '(-)'{-i,--install}'[install package]:*:package file:_files -g "*.rpm(-.)"' \
-  '1:module:( ${${(f)"$($words[1] -l 2>/dev/null)"}[2,-1]##* } )'
+  '1:module: _alternative files:file:_files\ -g\ \\\*.ycp\\\(-.\\\) modules:module:\(${${(f)"$($words[1] -l 2>/dev/null)"}[2,-1]##* }\)'
Index: Completion/Unix/Type/_pids
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_pids,v
retrieving revision 1.5
diff -u -r1.5 _pids
--- Completion/Unix/Type/_pids	12 May 2011 15:57:02 -0000	1.5
+++ Completion/Unix/Type/_pids	27 Feb 2013 21:45:40 -0000
@@ -1,4 +1,4 @@
-#compdef pflags pcred pmap pldd psig pstack pfiles pwdx pstop prun pwait ptree
+#compdef pflags pcred pmap pldd psig pstack pfiles pwdx pstop prun pwait
 
 # If given the `-m <pattern>' option, this tries to complete only pids
 # of processes whose command line match the `<pattern>'.
Index: Completion/Unix/Type/_pdf
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_pdf,v
retrieving revision 1.11
diff -u -r1.11 _pdf
--- Completion/Unix/Type/_pdf	6 Mar 2012 02:10:25 -0000	1.11
+++ Completion/Unix/Type/_pdf	27 Feb 2013 21:45:40 -0000
@@ -1,4 +1,4 @@
-#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf apvlv evince epdfview
+#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf apvlv epdfview
 
 local expl ext=''
 


      parent reply	other threads:[~2013-02-27 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 15:37 Oliver Kiddle
2013-02-27 16:17 ` Peter Stephenson
2013-02-27 21:51 ` Oliver Kiddle [this message]

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=23594.1362001913@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /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).