zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: =alias
Date: Tue, 07 Aug 2001 12:22:57 +0100	[thread overview]
Message-ID: <3B6FCF91.5A5D2196@u.genie.co.uk> (raw)
In-Reply-To: <T55391fda68c0a88d01398@>

Peter Stephenson wrote:
> 
> I wrote:
> > Is there anybody out there who wouldn't shout for joy if we removed the
> > alias-lookup part of =-substitution so that it only expanded command paths?
> 
> It seems not.

Good.

So we don't need to complete aliases in the equal context anymore.

What I think would be useful though is if equals expansion worked for
autoloaded functions, expanding to the full name of the file holding the
function. Or if that would cause problems, some sort of similar way such
as an option to functions or autoload?

Oliver

Index: Completion/Zsh/Context/_equal
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Context/_equal,v
retrieving revision 1.1
diff -u -r1.1 _equal
--- Completion/Zsh/Context/_equal       2001/04/02 11:22:55     1.1
+++ Completion/Zsh/Context/_equal       2001/08/07 11:17:20
@@ -1,9 +1,3 @@
 #compdef -equal-
 
-local args
-
-args=( "$@" )
-
-_alternative -O args \
-    'commands:command:compadd -k commands' \
-    'aliases:alias:compadd -k aliases'
+_wanted commands expl command compadd -k commands


  reply	other threads:[~2001-08-07 11:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Tc0a88d01551023f6c0@mailsweeper01.cambridgesiliconradio.com>
2001-08-07 10:10 ` =alias Peter Stephenson
2001-08-07 11:22   ` Oliver Kiddle [this message]
2001-08-07 14:05     ` =alias Peter Stephenson
     [not found] <unknown997179051@fake.primenet.com.au>
2001-08-07 10:24 ` =alias Geoff Wing

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=3B6FCF91.5A5D2196@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --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).