From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 29018 invoked from network); 30 Apr 2020 20:54:50 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 30 Apr 2020 20:54:50 -0000 Received: (qmail 20259 invoked by alias); 30 Apr 2020 20:54:44 -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: List-Unsubscribe: X-Seq: 45749 Received: (qmail 6128 invoked by uid 1010); 30 Apr 2020 20:54:44 -0000 X-Qmail-Scanner-Diagnostics: from joooj.vinc17.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25793. spamassassin: 3.4.4. Clear:RC:0(155.133.131.76):SA:0(-1.9/5.0):. Processed in 0.866425 secs); 30 Apr 2020 20:54:44 -0000 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Thu, 30 Apr 2020 22:54:09 +0200 From: Vincent Lefevre To: Bart Schaefer Cc: "zsh-workers@zsh.org" Subject: Re: completion for compilers (cc, gcc...) and -o Message-ID: <20200430205409.GC818727@zira.vinc17.org> Mail-Followup-To: Bart Schaefer , "zsh-workers@zsh.org" References: <20200430085111.GA1649750@zira.vinc17.org> <20200430181459.051d3fd1@tarpaulin.shahaf.local2> <20200430201747.GA818727@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.13.5+143 (0fdc8668) vl-126968 (2020-04-29) On 2020-04-30 13:32:25 -0700, Bart Schaefer wrote: > On Thu, Apr 30, 2020 at 1:18 PM Vincent Lefevre wrote: > > > > (perhaps this should be configurable by the user) for -o: > > Hmm, people seem not to have seen my zstyle example? I did, and tested it. Thanks a lot. A few comments: It worked only with "gcc". I've changed it to use ":completion::complete:(c99|cc|gcc*):option-o-1:" together with compdef c99=gcc to support the c99 utility. Now I'm wondering whether there is a way to automatically apply the zstyle to the _gcc command list (I also sometimes use clang and so on). I was also wondering whether there is a way to get the extension list automatically from the one in _gcc (assuming that it could evolve[*]). [*] On this subject, I'm quite sure I've already used the .cpp extension. I do not program in C++, but sometimes have to do some tests of small examples... I think that it should be added to the standard list, but C++ programmers may tell you more. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)