From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 7eabcd8f for ; Tue, 5 Nov 2019 03:04:52 +0000 (UTC) Received: (qmail 29851 invoked by alias); 5 Nov 2019 03:04:41 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24400 Received: (qmail 19658 invoked by uid 1010); 5 Nov 2019 03:04:41 -0000 X-Qmail-Scanner-Diagnostics: from mail-yw1-f51.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25622. spamassassin: 3.4.2. Clear:RC:0(209.85.161.51):SA:0(-1.9/5.0):. Processed in 3.895383 secs); 05 Nov 2019 03:04:41 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.161.51 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+KHKk8ItbAfrhu5wRBMSyVutnpdAWkM0EXHq5Q9LTEc=; b=RklllZv8lEfWxaWAvG7fz/AOTK1JbOfzW6yyqMhdaFRU9XBg9ygvUh49w0XRFIPQqV F64zrY2g9+Ka7SLUW1bi2D+E2/0fN0QLbzznpKzRA1uWBaPqGRtVsQoNKHqUXadj4ZTr jG2yFdA0Itcs38Eh0xIDIZdLTL5iQTJgOJkCeEpPGo/raEd8jNxPmFLC5cO+hh6de+M1 KxI1dmWcEtwNtzzsozHbuA5ZF7tOw5lnbzuI+UxihgxFpdLD46SFYvX7nj4quh7NeqxQ Ejr3jXI42FG10hwfVxcTCpPNlYJ3FyfjdtUwJEWK5ohrmB9N4RymOFKuXW48UEuz6RxA qrPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+KHKk8ItbAfrhu5wRBMSyVutnpdAWkM0EXHq5Q9LTEc=; b=WgUX+yCASd/n3M87nwp3ramSK/pgoZAnsIL7hI7zfWb4VQV0xnverV1/VzfMF4O7e9 jV8Je3hDMjukVHYfo+LoT5pNdQOY1bKycTzVc2MBuW6yy+6yx01QKFNHV8XjAyrgN8Wn Hcz2Rhb9KUuD1tRRWz12rl6gS56+wdbY+h86u0i0BFUfmsqDhzrMcv+vX0BTyWoQIoIQ 6i0bytyPKSsCmxAKEaAyVBeyPvOdHoUSzvkNp/VKc/PwPN9WRO4zAMhFpJ1V9o94cdhE pncFolVxjTIIy4I9ODwhEq3AJKUUV+XZUdgjkJm0k5yw/dAdQe1UkBXslL0ziBxd7HdR 5brQ== X-Gm-Message-State: APjAAAXjMLa6wYQO4O1679hHt7oFuGUfxgOcV6hLSxFZT5iOQRae0its Hf5Q5oZX8uX+sRTgUaOHXYLTu6dDPob/ug== X-Google-Smtp-Source: APXvYqw1rbxfrzJXRfscd9sZUQ74yq2/ODUhutuEoKwetCRfSmiPtSwlFaLKV0AxRGpsrsnSbV3GRA== X-Received: by 2002:a0d:c104:: with SMTP id c4mr21650208ywd.467.1572923043767; Mon, 04 Nov 2019 19:04:03 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: rxvt completion From: dana In-Reply-To: <20191104220941.GC28517@blackswan> Date: Mon, 4 Nov 2019 21:04:00 -0600 Cc: Zsh Users Content-Transfer-Encoding: quoted-printable Message-Id: References: <20191104220941.GC28517@blackswan> To: Dave Woodfall X-Mailer: Apple Mail (2.3445.104.11) On 4 Nov 2019, at 16:09, Dave Woodfall wrote: > If I submit a patch for rxvt completion, would it be accepted, as it > would mean removing rxvt from _urxvt's compdef? > > I'm guessing that some *nixes out there rename urxvt to rxvt? Debian and its derivatives do (or it goes by both names at least). Usually when there are different implementations of a tool with the same = name, you use _pick_variant and/or check $OSTYPE to determine which one to = complete for. Depending on how similar they are, you might keep them both in the = same function, or make them separate and conditionally call one from the = other. I'm not sure which is better for rxvt (do they still have a lot of shared = options or are they completely different?), but if you grep the repo for = _pick_variant you'll see lots of examples you can borrow from dana