From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7321 invoked from network); 13 Nov 2021 20:59:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Nov 2021 20:59:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636837193; b=Dvfqk+niF4EVgAJipjorGXUFNXMzrgeSdH+eGUCCMOG9vWPLaIyyD4+Tq4TqS4WSYGCa+uN1VG xPBiMFV8CnFUoRU06tDTMkp2X2o2UtD7dEXgd7zyC5HqUJCG4jCHKAzZNCdoxs7TGzr2Dhfwqm 1WwPQe6odvQXccCewabv8PobalQf7dHyIa4JLJgimMEmUhw9V4Nd0n2o7U/hT0m8Lwni0mK97E LKrkauoMYI6HlAoHJZiYvgNYfsj8TAe/CkGkOw6DBQssiroLpkFA1ZzaSslfEUNh0yY+Zz3fnX sS/MtIfR+FFLrtLSrZNrGlAmBCechrPkjz2IH2kQegqsBg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f177.google.com) smtp.remote-ip=209.85.219.177; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1636837193; bh=lAYt4L7SlZDfcW1v9cUKC876MpfVyZastSTTna38jL8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=J9EpOBvRWnN1fdqqGwVoFLeOJxppwoAEsK8ylQBysKa7nWj9BMqHUWFT9lRavgl0kXc0qztUs4 fTy35fZ0nz/ceh+b6lJgfLmtIWXx2po41zeaCdhdwsnd9y09ayPDkgtDML7jV072/CKJBt06N1 jy9qcMSs1QoVuSwCUHFD7TSNPPJbZ0mf2c78gMHOQ51CHPH2Xe74KjTxztjqvrp+OszHZPsWCn el1BBbJEg4agGtg1Qs45b7gydPrzfnNfSkQMj1m5DGRqDNFupvNRRGby15/7jnS8KxsVCq+wAr zImlz1mGz06f96o98d8beFSFMAyR1punSQGRPAt4Z8Od5g==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=kOgjr5JcWtzHam0OLOqEr6Tbw48b6omKyStOXYVmmAA=; b=NRyQD8WDRgsJY0AsGYjo1a+l90 Zhz0SnH+ql1xV5nr9VD23zFhD1LJKn+U+gAZbxXR4fua2y3izHcv7Fn1dxK33b03IqEB44Cpz5JnT OT0tK8o5ruYFTiNB9/IrWU0v/yrqn83QSbAWUV/qHwzE+3IypYEE6zl1occyliFvH6tPJ+AU5bI+3 6XWwWSxQ+HW0pBQEssLyBYn7X5SvBTHTI41/MpL7ArXy+isWPu+YlzPrgixCMvxiQDvEXRJBCkQa6 mM+510JI0gZwRXNJOiV8edNl6t6opNPmYjx6UhdtFhNfN++x69W5V/t6PhIHEQyxEe3LimailhXQO qlmF5TjA==; Received: from authenticated user by zero.zsh.org with local id 1mm07r-000AGd-P1; Sat, 13 Nov 2021 20:59:51 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f177.google.com) smtp.remote-ip=209.85.219.177; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f177.google.com ([209.85.219.177]:34689) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mm07Z-0009zy-Of; Sat, 13 Nov 2021 20:59:35 +0000 Received: by mail-yb1-f177.google.com with SMTP id y68so28685910ybe.1 for ; Sat, 13 Nov 2021 12:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kOgjr5JcWtzHam0OLOqEr6Tbw48b6omKyStOXYVmmAA=; b=Y+R4IrpjzjVVllekxErcS27Ee/yoZooUKx+Mj7l0EVLS67PuREIMOhI7XYkUrrbxsl DHxAwbU24Rokfs9jpHioq/PMbDhWSl79xvHr8JWE/i0tgLtgPjCaCncfHJSZXg19r9L+ mZRF6i4GMRXP7Q3GsQvpmS/y5mnNh3zEYaVz5+dbBvSBkVyfsafdvlsollB8j3zSuKcM ftKhoaMky1nMp9EM59Nm0x/t9g9r79CzypRvSF4T4cfQyqhI57YAMwkX4OMOaKgt4JA9 D0WjJxA4qZHjWRePmJmyDZWi9KgAD5/fY9GL97mT2tTF/O6Lc7bq6BpLFKVYR6XXkocI O12A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kOgjr5JcWtzHam0OLOqEr6Tbw48b6omKyStOXYVmmAA=; b=7yVNEUvdPS2Sdjj0W2X35sFqMoTec235j/2ATInqgqIC5hzC/uDqAvvQLpxSc/FoKc g6IuX+Swx3JV1W5i/x5O/EnRKrD0beLt5aSBl3xAbd45uBOuw4nLBpymyBKb2UcRyzeK iF0a3aCeLQP0cCE/+Y/Y5pR6wIOgJb+tF++9mq9otLg/SUDIyoF7kkpeLkysMxWQwGa4 7+KsGkHrh/eeFoeh4LcsLRRbnzD4wry60BHI/E787xYLRIX7EXUSDCGr/s/ozDCI12hd n2irxcovGNgv7ypN78EXXZDlVZnH9RZjORjophzdngoh8fiuAzb5Mzqz60fAspirMZ9r G7cg== X-Gm-Message-State: AOAM530rJ3FpBhyNBN4yTG46LwXbyPICpC3QP1OQPHf+5KxrMl/wfaz+ u6JGAo4UZQ9gm1XL2jWTrVW+KA6MENgQ5rh+qWcTvg== X-Google-Smtp-Source: ABdhPJyO61kek6/M+AAPkjwnJiLjEhwoqAFp5iwbgvCCYRqpFKzdLoF3nA4+IWUX/WbHXtZOpZyi7m8ofOQ0TIIpUTY= X-Received: by 2002:a05:6902:1543:: with SMTP id r3mr30384969ybu.166.1636837172128; Sat, 13 Nov 2021 12:59:32 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sat, 13 Nov 2021 12:59:21 -0800 Message-ID: Subject: Re: [PATCH] Don't complete escaped words as aliases To: Marlon Richert Cc: Mikael Magnusson , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49583 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sat, Nov 13, 2021 at 9:18 AM Marlon Richert wrote: > > Would this be preferable? I can make that change. No other > alternatives come to mind right now. Hm, it seems as though what's really needed here is for the completion internals to compare the full quoted word to the set of matches, rather than remove the quoting first. Skipping the completion because the word is quoted is at best a workaround. I suppose that would need a new option to compadd. It might help in some other edge cases as well -- lots of completion bugs arise from the internals attempting to properly remove and restore quoting. Aside from that, this circles right back to the discussion begun after workers/49559, namely, whether it's preferable to complete too much and let the user decide if he wants it, vs. to aggressively limit the completions to what the zsh devs think is "only what makes sense in this context." Usually we've fallen on the side of "too much" in the past.