From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25049 invoked by alias); 25 Jul 2015 00:47:19 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35897 Received: (qmail 11162 invoked from network); 25 Jul 2015 00:47:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.0 Date: Sat, 25 Jul 2015 02:47:13 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: X font completion is buggy Message-ID: <20150725004713.GA25608@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20150724214952.GA15359@zira.vinc17.org> <150724160737.ZM20912@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <150724160737.ZM20912@torch.brasslantern.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6464-vl-r76280 (2015-07-11) On 2015-07-24 16:07:37 -0700, Bart Schaefer wrote: > Try this patch, although I'm not sure why _font_cache is trimming out > a bunch of size and character set variations in the first place: > > diff --git a/Completion/X/Type/_x_font b/Completion/X/Type/_x_font > index a363b27..d4da6c8 100644 > --- a/Completion/X/Type/_x_font > +++ b/Completion/X/Type/_x_font > @@ -9,7 +9,7 @@ _tags fonts || return 1 > if (( ! $+_font_cache )); then > typeset -gU _font_cache > > - _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts 2> /dev/null)}%%--*}--" ) > + _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts 2> /dev/null)}/%--*/--}" ) > fi > > _wanted fonts expl font \ This doesn't work: with another font, I end up with: zira:~> xterm -fn -adobe-helvetica-bold-r-normal-- with no longer any completion possibility, while the fonts are: -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-1 -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-15 -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-2 -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)