From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#43774: 27.1; fido-mode completion don't accept empty string nor matching substring Date: Sat, 03 Oct 2020 09:30:42 +0300 Message-ID: <87ft6vkei5.fsf@iki.fi> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31531"; mail-complaints-to="usenet@ciao.gmane.io" To: 43774@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 03 08:32:36 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kOb5v-00082j-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 08:32:36 +0200 Original-Received: from localhost ([::1]:39744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOb5u-0000qV-Oq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 02:32:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOb5P-0000qO-4L for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 02:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOb5O-0005td-Pg for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 02:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOb5O-00071w-Md for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 02:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Teemu Likonen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Oct 2020 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43774 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160170667126962 (code B ref -1); Sat, 03 Oct 2020 06:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2020 06:31:11 +0000 Original-Received: from localhost ([127.0.0.1]:42877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOb4Z-00070o-HO for submit@debbugs.gnu.org; Sat, 03 Oct 2020 02:31:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOb4V-00070e-D5 for submit@debbugs.gnu.org; Sat, 03 Oct 2020 02:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOb4U-0000mg-Rf for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 02:31:07 -0400 Original-Received: from lahtoruutu.iki.fi ([185.185.170.37]:51566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOb4P-0005mV-R9 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 02:31:06 -0400 Original-Received: from mithlond (mobile-access-bceeea-132.dhcp.inet.fi [188.238.234.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id F33041B00596 for ; Sat, 3 Oct 2020 09:30:49 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1601706650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=UMFmbxQ/YP0v4Vq1XWMSdaJ5ArMJJjKXkjH5LI+Cxec=; b=HViXLdzOlDSPcVfjv/j//8AJAXR9zsN5ki534lX3AOexGeJku7RtV3rm/NWxk4TFYT35z0 qA5eWX1d5S6B7rRlZAHYY+vmH1hZUcgzRHC4yfVzBVN1Tiefsf6nFio2Kv3yiUTUvzC/un 14xChpkHhG3KSX86hIDnuAI84y/4Ky/cVlIGP9uI680nJut3FL8gylGLP0Hmad9cyGOo47 R+bxcZOahbn3mKQnZyKH/Zdr2GQ33dlnmrHUTKZiZvoRt91yjd+lORsT5wMIWn8n8GkU1A UGmPrF5s0bF6SyXiHyM/huhMcikAkAdH3WN6kRfjsEK3s55+JJexG1i6DgLiRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1601706650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=UMFmbxQ/YP0v4Vq1XWMSdaJ5ArMJJjKXkjH5LI+Cxec=; b=vBYXSB28Bri0o8DZgfYk4tYNk7vQyeD4MgEdycZNyZtwN5c7g0eADdE452dBYmlv3RVDOh EqtwlKN/DUAuGdq8mGYHvLZcbTqbcXppxh4hu+Jl83ctoFwYBso6rXTMecAiZpYOcQvLST 3qMxjiRVMbBlCRHCtvKKmQH+gJXBTSuszN/sBzWOY0LNFvhVQcxoT8KFqiLTLcYE0YbfGn 6lAu5fD4KocyGLAkL/obEjo1J5phPECsGD5mz6/G4+GZLMTmAFY8LJoyiEli40QXPe0Xjx V+JtgkZzr1iTvj1LCp/ZpyT+0JwiN1N82cEAc1qT/1Ck9RM4oUNg/JdK/nTKUA== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1601706650; a=rsa-sha256; cv=none; b=DqRJJYI5Dk9uo+F6dvXYFB8cxzw4EdBtHA+HnxRGRTL7TAl1pwCRgXZuQKODr8ZwWuUSvT NT/fbFIsbt8Grxd5ECJx35MfY3wM+/VnBinpFKyqz7ZSNLPgeFbATI2XGg1e9s7q2H94qP HgAP+nb1HJHsBdEUo92q4vDgi9Tej9JboRY5Guu1ISMMHUxS0wCxKdHwXoL4AzCiLv9wgd +P+9G6M1nHjWPRz80+RKAz1gM7rARjRxaeDP+fxXn8aJzryUtNIAHv5MdUOvi4BZvt6n+C oxrZQy+Ben+ifQuSXIAPClUMYujdVqPxode1cZ6OHG1RgxQZh+9VpxLki1YlRA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi Received-SPF: pass client-ip=185.185.170.37; envelope-from=tlikonen@iki.fi; helo=lahtoruutu.iki.fi X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/03 02:30:51 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189685 Archived-At: --=-=-= Content-Type: text/plain Emacs fido-mode (which is part of icomplete-mode) implements minibuffer completion system which offers quick and easy way to choose one of the available options. However, sometimes user needs to enter a different substring which is not any of the available options. Sometimes even empty string is needed. This seems to be impossible in fido-mode. The following example demonstrates the empty string problem. 1. Save the attached (inline) file "test.org". 2. Start Emacs and open the file: emacs -Q test.org 3. Ensure that the major mode is org-mode and turn on fido-mode: M-x org-mode M-x fido-mode 4. Press "C-c C-c" (org-ctrl-c-ctrl-c) on any of the Org heading lines. The command will start editing tags for the current heading line. The available tags in the buffer are :one:, :two:, :three:. 5. Try to clear the prompt from any tags. This works but it seems to be impossible to actually enter empty string because one of the buffer's present tags are always chosen when user finishes the prompt with RET key. A work-around in org-mode's tag completion prompt is to enter one colon (:) in the prompt but this is not general solution to the empty string problem. Another difficulty comes with entering just a substring of available matches. The following example demonstrates this. 1. Start Emacs with "emacs -Q". 2. Turn fido-mode on. M-x fido-mode 3. Press "C-x b" (switch-to-buffer) and try to create buffer named "scr" which is a substring of "*scratch*" buffer. This seems to be impossible or there is no documented way to do this. -- /// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450 --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=test.org * first :one: * second :two: * third :three: --=-=-=--