From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57163: completing-read not allow cycling of the options by default Date: Sat, 13 Aug 2022 18:14:43 +0300 Message-ID: <834jygmazg.fsf@gnu.org> References: <8735e0pwwp.fsf@web.de> <83o7won0m5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36883"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 57163@debbugs.gnu.org To: uzibalqa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 17:16:10 2022 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 1oMsry-0009PB-CE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 17:16:10 +0200 Original-Received: from localhost ([::1]:48294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMsrx-00038x-CP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 11:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMsrq-00038j-Pl for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 11:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMsrq-0003or-Hx for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMsrq-0003nn-E5 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57163-submit@debbugs.gnu.org id=B57163.166040370314535 (code B ref 57163); Sat, 13 Aug 2022 15:16:02 +0000 Original-Received: (at 57163) by debbugs.gnu.org; 13 Aug 2022 15:15:03 +0000 Original-Received: from localhost ([127.0.0.1]:34881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMsqt-0003mM-0g for submit@debbugs.gnu.org; Sat, 13 Aug 2022 11:15:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMsqq-0003la-MT for 57163@debbugs.gnu.org; Sat, 13 Aug 2022 11:15:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMsql-0003Ut-DL; Sat, 13 Aug 2022 11:14:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=A6siUD0Pbjamn0wbuh5b/XVJGw5/nueEMtH8gflirJ0=; b=PAuj52V/loHe /JfORd7CHCvfwTIiOqbWc/9QdGTJ+y/ZF929ct9wsTf2MYid593OskxebE0hdW9zTol3/aS0RixC/ DsdXgCdmNn+3NaFLNxwx8YY5iYEuH9RzDR3RNPQTxAPuYWFxyeiJyKtSvHCjiI56jM6P/bJb7KG0A OYELJIEZB136ba7SxVL9vqw+WNgMDaSA2LKutvGYk0SOhs8mpZLR5+jG10yKt0cXzgaG8Sz4B/Cyt m4LRef+G9WR/6jLDeMPl01xz2qaXa0PWjvCJ5wTeRkc1iivq8P9CfJ0Fc2fncvJ0iIPVVuc/sLwva tu5uIhRjG0bbDgXfa2Vayw==; Original-Received: from [87.69.77.57] (port=3252 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMsqk-0003gr-RI; Sat, 13 Aug 2022 11:14:55 -0400 In-Reply-To: (message from uzibalqa on Sat, 13 Aug 2022 14:32:02 +0000) 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:239557 Archived-At: > Date: Sat, 13 Aug 2022 14:32:02 +0000 > From: uzibalqa > Cc: Michael Heerdegen , 57163@debbugs.gnu.org > > > > You mean the completion candidates? M- and M- do that (by > > > default). > > > As does repeatedly pressing TAB, right? Or maybe I don't understand > > what is meant by "cycling" in this context? An example of using > > completing-read and the lack of cycling would be appreciated. > > Correct, TAB, M-, M- do not execute any functionality They do here, see below. > Consider the following function. Call the function with "M-x change-cursor". > TAB produces "[Complete, but not unique]"; whilst "M-down" and "M-up" result > in [M-down is undefined] and [M-up is undefined]. > > (defun change-cursor (form) > "Modify the cursor form." > > (interactive > (list > (let ( (cseq '("bar" "hbar" "hollow" "box")) ) > (completing-read " Cursor: " cseq nil t "box")))) > > (pcase form > ("bar" > (set-default 'cursor-type 'bar) > ("hbar" > (set-default 'cursor-type 'hbar) > ("hollow" > (set-default 'cursor-type 'hollow) > ("box" > (set-default 'cursor-type 'box))) ) If I evaluate (let ( (cseq '("bar" "hbar" "hollow" "box")) ) (completing-read " Cursor: " cseq nil t "box")) then I can cycle through all the candidates with M-n and M-p. TAB doesn't do anything because the window showing the candidates is small and shows all of them at once.