From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: zsh-like zcomplete-mode based on icomplete-mode Date: Sat, 09 Apr 2022 22:30:09 +0200 Message-ID: <87k0byq9lp.fsf@gnu.org> References: <86sfqm14g6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12517"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.12; emacs 29.0.50 Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 09 22:36:12 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 1ndHoa-00035Z-H8 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 22:36:12 +0200 Original-Received: from localhost ([::1]:33350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndHoZ-0003Pc-16 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Apr 2022 16:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndHnC-00014O-L8 for emacs-devel@gnu.org; Sat, 09 Apr 2022 16:34:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndHnB-0002qm-Tb; Sat, 09 Apr 2022 16:34:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=ibHQPILfLkcZeYJjdFhjNxRjKg4nA+75Y+znxPmE3no=; b=VsvucWkAG4XniG 1KZZ9CbEPbjZxUl4JGdrOmO8xF6uFFKqWRYUFV7m6prM6g0fWUcmuQA8n9L5xendsLuCv8nbIBrfo 76z9XdVyAlqom4An7kCqnfi0SSViqpAqnAipHPVEXUJ3piDjJAr2FHXizotPT9KLKhws2pXj4DzQo 8I920QqeFwfTWF2Zq7F8yPfJO/YhB+H5xR0S/xVmfM33Hx/DGAifz+W5L0LsDnBhwvOWkBdKvfx38 BNmohmJJ55iH0FmTGaPKaHTM69YLXzsJouAJUs1qs5X05ZOkw+mALlHRfFlMXkdz51KNmuH4X4TVD IWV6YLpfCBSld45eYrVg==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:35263) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndHnB-0000bj-Mk; Sat, 09 Apr 2022 16:34:45 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 38F9B27C0054; Sat, 9 Apr 2022 16:34:45 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 09 Apr 2022 16:34:45 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekvddguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Apr 2022 16:34:44 -0400 (EDT) In-reply-to: <86sfqm14g6.fsf@mail.linkov.net> 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:288053 Archived-At: Juri Linkov writes: Hi Juri, > Here is the first version of the mode with the behavior like in zsh, > but that is based on icomplete-mode. I wanted to give it a try with emacs -Q but quickly ran in this error after M-x and tying a bit: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) next-completion(nil) minibuffer-next-completion() zcomplete-exhibit() zcomplete-post-command-hook(5 6 0) self-insert-command(1 109) funcall-interactively(self-insert-command 1 109) command-execute(self-insert-command) completing-read-default("M-x " # #f(compiled-function (sym) #) t nil extended-command-history nil nil) read-extended-command() byte-code("\302\30\11\303 \10E)\207" [execute-extended-command--last-typed current-prefix-arg nil read-extended-command] 3) command-execute(execute-extended-command) --8<---------------cut here---------------end--------------->8--- Same for C-x b. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) next-completion(nil) minibuffer-next-completion() zcomplete-exhibit() zcomplete-post-command-hook(43 44 0) self-insert-command(1 115) funcall-interactively(self-insert-command 1 115) command-execute(self-insert-command) completing-read-default("Switch to buffer (default *Completions*): " internal-complete-buffer nil confirm-after-completion nil buffer-name-history "*Completions*" nil) read-buffer-to-switch("Switch to buffer: ") byte-code("\10?\205H\0\302 \203\16\0\303\202H\0\304 \305=\204\31\0\306\202H\0\11\307\267\202B\0\310\311!\202H\0\312\313\314\315 \"!\2038\0\316\303\211..." [switch-to-buffer-obey-display-actions switch-to-buffer-in-dedicated-window window-minibuffer-p nil window-dedicated-p t force-same-window # user-error "Cannot switch buffers in a dedicated window" y-or-n-p format "Window is dedicated to %s; undedicate it?" window-buffer set-window-dedicated-p read-buffer-to-switch "Switch to buffer: "] 4) command-execute(switch-to-buffer) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo