zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: completion grouping
Date: Wed, 3 Nov 1999 17:12:27 +0000	[thread overview]
Message-ID: <991103171227.ZM20910@candle.brasslantern.com> (raw)
In-Reply-To: <199911031341.OAA10900@beta.informatik.hu-berlin.de>

On Nov 3,  2:41pm, Sven Wischnowsky wrote:
} Subject: completion grouping
}
} Completion functions should call the function `_tags' with the
} tag-names of the types of matches they generate. Then they call
} `_tags' repeatedly without arguments. This will set the parameter
} `tags' to a colon-separated list of tags then should now be
} tried. E.g. if a functions generates jobs (`%...') and pids, it should 
} do something like:
} 
}   local prios tags

Can I first suggest that we spell out "priorities"? It's not like it's
going to be typed very often, is it?

I'm also never sure what to expect from "sorted by priority."  In this
case a smaller number is a higher priority, right?  But a negative
number is treated as bigger than any positive one?  That's a bit weird.
Or am I misunderstanding?

} The need to declare `prios' and `tags' as locals is very ugly, but
} currently I don't see a really satisfying solution.

I've been thinking about something for that, but so far it's too nebulous
to tell if it's going to work.

}   comptag option+='*dvi*=1'
} 
}     the `+=' means that the definition is prepended to the already
}     existing definition

Hrm.  I would have expected += to *append* rather than *prepend* (my
C++ is showing).

Otherwise, this looks pretty good.

Perhaps more on the other questions later; I have a cramp in my neck this
morning which is making it difficult to type.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1999-11-03 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-03 13:41 Sven Wischnowsky
1999-11-03 17:12 ` Bart Schaefer [this message]
1999-11-04  9:32 Sven Wischnowsky
1999-11-05  7:20 ` Bart Schaefer
1999-11-04 13:50 Sven Wischnowsky
1999-11-04 17:46 ` Bart Schaefer
1999-11-05 10:52 completion grouping (PLEASE read this) Sven Wischnowsky
1999-11-05 14:54 ` completion grouping Oliver Kiddle
1999-11-05 15:40 Sven Wischnowsky

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=991103171227.ZM20910@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).