Subject: Re: bug#57163: completing-read not allow cycling of the options by default

From: Eli Zaretskii <[email-masked]>
Date: Sat, 13 Aug 2022 20:21:57 +0300

> Date: Sat, 13 Aug 2022 16:09:53 +0000
> From: uzibalqa <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
> 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")

Well, don't set debug-on-error, then.

> After that, doing M-p gives [M-p is undefined]

Because you are in the debugger, in recursive-edit.  Type C-] to exit
that.