From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: About zcomplete Date: Mon, 21 Feb 2022 10:35:28 +0000 Message-ID: <87y224v767.fsf@posteo.net> References: <20220220040515.zum3iodtpscj23j3.ref@Ergus> <20220220040515.zum3iodtpscj23j3@Ergus> <87wnhp4wu3.fsf@posteo.net> <20220220132708.lvuzvg2fyfpp6k76@Ergus> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26803"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 21 11:36:47 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nM63i-0006lx-Ku for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Feb 2022 11:36:46 +0100 Original-Received: from localhost ([::1]:52038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nM63h-0007Hq-6d for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Feb 2022 05:36:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nM62b-0005d2-FW for emacs-devel@gnu.org; Mon, 21 Feb 2022 05:35:37 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:45027) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nM62Z-0003M7-14 for emacs-devel@gnu.org; Mon, 21 Feb 2022 05:35:37 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 00FE9240103 for ; Mon, 21 Feb 2022 11:35:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1645439730; bh=aFbrCVfoRMQwa2Wyq+Bh44lwKCbNVqc59vaTOVXVqYw=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=XQJiT7Qyt80QoyCANg6VFKgqMRcpCO3tzPRW+23LflmE3R5q2qL/pApdWN2HDrLTm qWYRLDMdVxUYfOedHD6ZbYJvi3iJkw3fR2YW8Wauhr3Y/9hOUssuPUHOnNeNS0+cL4 GLrydEQadJGTn09xhazV9FmlaxAkQOXZh2mvQSj9UmYqJ4Z0yEEo7v3MJmgszO9NNE fQ51Ph9bB1iZSZ1ctsS+2Ss3subjvQXNz4j7+pYby+RL8rTT6M+WiE0C5zaa2/H2yB W30E2sHS0IvmoGWODIgqkFgJlUBkqZ+lYQDXWUkcAK6S7XF/QCXOLFoej7mAFUUSeI SkJ6bDE66mZkQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4K2Jbj1FCfz9rxR; Mon, 21 Feb 2022 11:35:29 +0100 (CET) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB In-Reply-To: <20220220132708.lvuzvg2fyfpp6k76@Ergus> (Ergus's message of "Sun, 20 Feb 2022 14:27:08 +0100") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286554 Archived-At: Ergus writes: > On Sun, Feb 20, 2022 at 11:11:00AM +0000, Philip Kaludercic wrote: > >>When completion-auto-select was first added, there was a discussion >>about adding automatic narrowing in the *Completions* buffer. Given a >>mode like zcomplete, that decides to unbind all single-character >>bindings, this might be possible (as an alternative to what you do in >>zcomplete--try-on-minibuffer). >> >>Whether or not this should be coupled to removing the mode line of the >>completion buffer is a different question. > > Actually a more `urgent` thing in my opinion may be to allow > *Completions* to update without needing to narrow first. Then I could > add a post-command-hook in the minibuffer to update *Completions* when > it is visible. I am not certain what you mean here? Just to clarify, what I am imagining is a isearch-like interface that updates the prompt and the *Completions* buffer. > With that we only need a highlight and the zsh experience may be almost > done with minimal changes. I am unfamiliar with zsh, how does it differ from say bash? >>This should probably be reverted when zcomplete-mode is disabled. > > Agree. But we need to cache the original value tho... I have been > thinking to implement a general solution for that issue similar to > connection-local-variables, because it is a general issue many packages > need to deal with. I guess this is only of the issue that is so easy to solve on a case-by-case basis (e.g. by setting a symbol property) that nobody has bothered to write a general solution (e.g. by adding a keyword to define-minor-mode that specifies what variables/user options to set when enabled). -- Philip Kaludercic