zsh-users
 help / color / mirror / code / Atom feed
* Completion for backslashed commands
@ 2004-05-24 11:23 Vincent Lefevre
  2004-05-24 11:36 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Lefevre @ 2004-05-24 11:23 UTC (permalink / raw)
  To: zsh-users

Hi,

If I type:

  \gv file[TAB]

I get the conventional filename completion instead of the completion
specific to gv. Is it a bug or is there a way to make this work?

Regards,

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


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

* Re: Completion for backslashed commands
  2004-05-24 11:23 Completion for backslashed commands Vincent Lefevre
@ 2004-05-24 11:36 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2004-05-24 11:36 UTC (permalink / raw)
  To: zsh-users

Vincent Lefevre wrote:
> Hi,
> 
> If I type:
> 
>   \gv file[TAB]
> 
> I get the conventional filename completion instead of the completion
> specific to gv. Is it a bug or is there a way to make this work?

Well, this would fix it.  But (i) I have no idea if it's intentional (it
seems unlikely in this case) (ii) I bet there other places needing the
same treatment for consistency.

Index: Completion/Base/Core/_dispatch
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Core/_dispatch,v
retrieving revision 1.3
diff -u -r1.3 _dispatch
--- Completion/Base/Core/_dispatch	17 Mar 2002 18:03:09 -0000	1.3
+++ Completion/Base/Core/_dispatch	24 May 2004 11:34:18 -0000
@@ -40,6 +40,7 @@
 ret=1
 for str in "$@"; do
   [[ -n "$str" ]] || continue
+  str=${(Q)str}
   name="$str"
   comp="${_comps[$str]}"
   service="${_services[$str]:-$str}"

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


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

end of thread, other threads:[~2004-05-24 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-24 11:23 Completion for backslashed commands Vincent Lefevre
2004-05-24 11:36 ` Peter Stephenson

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