zsh-workers
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <duret_g@epita.fr>
To: zsh-workers@math.gatech.edu
Cc: "Bart Schaefer" <schaefer@candle.brasslantern.com>
Subject: Re: match again
Date: 01 Feb 2000 11:48:31 +0100	[thread overview]
Message-ID: <mvb1z6x9p1c.fsf@phobos.lrde.epita.fr> (raw)
In-Reply-To: "Bart Schaefer"'s message of "Sun, 30 Jan 2000 01:27:44 +0000"

>>> "Bart" == Bart Schaefer <schaefer@candle.brasslantern.com> writes:

 Bart> On Jan 28,  5:47pm, Alexandre Duret-Lutz wrote:
 Bart> } Subject: Re: match again
 Bart> }
 Bart> } -compstyle '*:options' prefix-hidden yes"
 Bart> } +zstyle '*:options' prefix-hidden yes"

 Bart> (And several similar examples in comments.)

 Bart> These are not equivalent.  Is it really correct to change it this way?
 Bart> The actual equivalent of the "compstyle" statement would be 

 Bart> 	zstyle ':completion*:options' prefix-hidden yes

Oops, sorry!  So let's remove my garbage...
(this also fix the comment in _urls that used 
ztyle incorrectly (well, I think :-))

Index: Completion/User/_urls
--- Completion/User/_urls Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/User/_urls Tue, 01 Feb 2000 11:08:04 +0100 Alexandre
@@ -6,7 +6,7 @@
 #
 # Configuration styles used:
 #
-#  urls:path
+#  path
 #    The path to a directory containing a URL database, such as:
 #
 #      % cd ~/.zsh/urls
@@ -29,14 +29,14 @@
 #      % cat bookmark/zsh/meta
 #      http://www.zsh.org/
 #
-#  urls:local
+#  local
 #    Specify a local web server as an array with three elements:
 #      <hostname> <doc root> <user area>
 #    where hostname is the name of the web server, doc root is the path to
 #    the default web pages for the server and user area is the directory
 #    name used by a user placing web pages within their home area.
 #    E.g.:
-#      zstyle '*:urls:local' www /usr/local/apache/htdocs public_html
+#      zstyle ':completion:*:urls' local www /usr/local/apache/htdocs public_html
 
 local ipre scheme host user uhosts ret=1 expl
 local urls_path localhttp
Index: Completion/Core/compinit
--- Completion/Core/compinit Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Core/compinit Tue, 01 Feb 2000 11:42:13 +0100 Alexandre
@@ -358,7 +358,7 @@
       tmp="'*:options' prefix-needed yes"
       [[ "$val" = hide* ]] &&
           tmp="$tmp
-zstyle '*:options' prefix-hidden yes"
+zstyle ':completion*:options' prefix-hidden yes"
       ;;    
     group_matches)
       tmp="'*' group-name ''"
@@ -403,7 +403,7 @@
       tmp="'*' last-prompt 'yes'"
       ;;
     esac
-    [[ -n "$tmp" ]] && style="${style}${cmt}zstyle ${tmp}
+    [[ -n "$tmp" ]] && style="${style}${cmt}zstyle :completion${tmp}
 "
   done
 
Index: Completion/Core/_menu
--- Completion/Core/_menu Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Core/_menu Tue, 01 Feb 2000 11:16:05 +0100 Alexandre
@@ -6,7 +6,7 @@
 # implemented with the new completion system.
 # Use this one before the normal _complete completer, as in:
 #
-#   zstyle "*" completer _menu _complete
+#   zstyle ":completion:*" completer _menu _complete
 
 if [[ -n "$compstate[old_list]" ]]; then
 
Index: Completion/Core/_match
--- Completion/Core/_match Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Core/_match Tue, 01 Feb 2000 11:16:43 +0100 Alexandre
@@ -1,7 +1,7 @@
 #autoload
 
 # This is intended to be used as a completer function after the normal
-# completer as in: `zstyle "*" completer _complete _match'.
+# completer as in: `zstyle ":completion:*" completer _complete _match'.
 # It temporarily switches on pattern matching, allowing you to try 
 # completion on patterns without having to setopt glob_complete.
 #
Index: Completion/Base/_combination
--- Completion/Base/_combination Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Base/_combination Tue, 01 Feb 2000 11:38:44 +0100 Alexandre
@@ -11,7 +11,7 @@
 #  Assume an user sets the style `hosts-ports-users' as for the my-accounts
 #  tag:
 #
-#    zstyle '*:telnet*:my-accounts' hosts-ports-users \
+#    zstyle ':completion:*:telnet*:my-accounts' hosts-ports-users \
 #      host0:: host1::user1 host2::user2
 #      mail-server:{smtp,pop3}:
 #      news-server:nntp:
-- 
Alexandre Duret-Lutz


  reply	other threads:[~2000-02-01 10:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-28 10:05 Sven Wischnowsky
2000-01-28 16:47 ` Alexandre Duret-Lutz
2000-01-30  1:27   ` Bart Schaefer
2000-02-01 10:48     ` Alexandre Duret-Lutz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-02-02  9:21 Sven Wischnowsky
2000-01-31 13:01 Sven Wischnowsky
2000-02-01 18:45 ` Peter Stephenson
2000-01-31  9:13 Sven Wischnowsky
2000-01-31  9:06 Sven Wischnowsky
2000-01-31 11:01 ` Bart Schaefer
2000-01-27 16:31 Andrej Borsenkow

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=mvb1z6x9p1c.fsf@phobos.lrde.epita.fr \
    --to=duret_g@epita.fr \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@math.gatech.edu \
    /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).