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 16:09:53 +0000 Message-ID: References: <8735e0pwwp.fsf@web.de> <83o7won0m5.fsf@gnu.org> <834jygmazg.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="32870"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 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 18:11:29 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 1oMtjU-0008N3-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 18:11:29 +0200 Original-Received: from localhost ([::1]:42762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMtjT-0000Pm-Hc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 12:11:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMtj4-0000OG-Qp for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 12:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMtj4-00030H-Ig for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 12:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMtj4-0005C0-9X for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 12:11: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 16:11: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.166040700919877 (code B ref 57163); Sat, 13 Aug 2022 16:11:02 +0000 Original-Received: (at 57163) by debbugs.gnu.org; 13 Aug 2022 16:10:09 +0000 Original-Received: from localhost ([127.0.0.1]:34938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMtiD-0005AX-Cm for submit@debbugs.gnu.org; Sat, 13 Aug 2022 12:10:09 -0400 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]:49073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMtiA-0005A3-KB for 57163@debbugs.gnu.org; Sat, 13 Aug 2022 12:10:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1660407000; x=1660666200; bh=w+HlrFlb607BkF4tMWbAONEdn0uP4t/BEKKH0p44hQ8=; 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=l8JOV/0laW+tVcH3zFGExH/dN/VOoZu3ZP3EDtUOH84PteucwhTPmF4Q2c9E/qDuo hyS2XAYD77Pt0+ZfKHJXbb7ResW1BkTA1t6Fx6JCrlNop6vCCTSaELZx+EdwQZbNkZ +fvQHBY8NcebuKpxV4F9KRRhz0uxgc8sarPeaYgJ9sLT421fdlFojFkR1Wi/u1siGY AqqQJPQuPenGsF9+yqtFxk4+7uwcO3k/c33tFSNb8eyPWZX6tRreCeaU9bxop8OokX VLMH8s5FmYugYSi8xtpXL680FRGop0jSoIG9BGZsykiNuUSL3RjhgdY9xV23TdcdD5 0Ndfs/jEwtUug== In-Reply-To: <834jygmazg.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:239561 Archived-At: ------- Original Message ------- On Saturday, August 13th, 2022 at 3:14 PM, Eli Zaretskii wro= te: > > Date: Sat, 13 Aug 2022 14:32:02 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: Michael Heerdegen michael_heerdegen@web.de, 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-cur= sor". > > TAB produces "[Complete, but not unique]"; whilst "M-down" and "M-up" r= esult > > 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. M-n and M-p work as you say. Have noticed that when one is using debug-on-= error, using M-n until the last option gives Debugger entered--Lisp error: (user-error "End of defaults; no next item") signal(user-error ("End of defaults; no next item")) user-error("End of defaults; no next item") After that, doing M-p gives [M-p is undefined]