From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57163: completing-read not allow cycling of the options by default Date: Sat, 13 Aug 2022 14:32:02 +0000 Message-ID: References: <8735e0pwwp.fsf@web.de> <83o7won0m5.fsf@gnu.org> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37553"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , 57163@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 16:35:51 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 1oMsEw-0009ZV-Gh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 16:35:50 +0200 Original-Received: from localhost ([::1]:58608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMsEv-00047q-IP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 10:35:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMsCH-0003N4-HD for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 10:33:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMsCE-00068o-7P for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 10:33:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMsCE-0000Zt-3G for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 14:33: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.16604011382164 (code B ref 57163); Sat, 13 Aug 2022 14:33:02 +0000 Original-Received: (at 57163) by debbugs.gnu.org; 13 Aug 2022 14:32:18 +0000 Original-Received: from localhost ([127.0.0.1]:34830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMsBV-0000Yp-Jy for submit@debbugs.gnu.org; Sat, 13 Aug 2022 10:32:17 -0400 Original-Received: from mail-40137.protonmail.ch ([185.70.40.137]:56679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMsBP-0000YK-C9 for 57163@debbugs.gnu.org; Sat, 13 Aug 2022 10:32:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1660401125; x=1660660325; bh=IoinVsZAx4NYdTTYGseLUq06wfys5/w74VKkHdMeY5A=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=E4vFCKZGla20ZYyohRv3E89ATjGGhHvA1opEOc+HxpKUwGyaxZr4FTZVzzDEF3gmv VyUZpSG+yTeGdiqpw7iPuXUSsefhQz8vywQhFZN4+4qJNofz4gAftXP8pcZvO1u8ym hsNW54vJL492URe+P1SRxZYn3ITDyC4SMJjyu6j5xaQ8G8fZYzDTvveQpcr1oMrGDX VjsFafEZ9aKKgy/Y/PropMZj2Q4rdWE8kWOh7jB+ygy+ZNqZhs/pHkgp74bCf+eZad YdlED5hsaMnD+c8JA1I/R1v0jF58JGyuk4ORyfEVDW3Jc0TEnfDol18Omf/ewlZpUu lYRo3CxG4fSEA== In-Reply-To: <83o7won0m5.fsf@gnu.org> Feedback-ID: 52887082:user:proton 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" X-ACL-Warn: , uzibalqa Xref: news.gmane.io gmane.emacs.bugs:239553 Archived-At: ------- Original Message ------- On Saturday, August 13th, 2022 at 6:01 AM, Eli Zaretskii wro= te: > > Cc: uzibalqa@proton.me > > From: Michael Heerdegen michael_heerdegen@web.de > > Date: Sat, 13 Aug 2022 06:52:54 +0200 > > > > uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text > > editors" bug-gnu-emacs@gnu.org writes: > > > > > Why is it that things like completing-read not allow cycling of the > > > options by default? > > > > 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 Consider the following function. Call the function with "M-x change-cursor= ". TAB produces "[Complete, but not unique]"; whilst "M-down" and "M-up" resul= t 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))) )