unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: emacs-devel@gnu.org
Subject: Re: zsh-like zcomplete-mode based on icomplete-mode
Date: Sat, 09 Apr 2022 22:30:09 +0200	[thread overview]
Message-ID: <87k0byq9lp.fsf@gnu.org> (raw)
In-Reply-To: <86sfqm14g6.fsf@mail.linkov.net>

Juri Linkov <juri@linkov.net> writes:

Hi Juri,

> Here is the first version of the mode with the behavior like in zsh,
> but that is based on icomplete-mode.

I wanted to give it a try with emacs -Q but quickly ran in this error
after M-x and tying a bit:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  next-completion(nil)
  minibuffer-next-completion()
  zcomplete-exhibit()
  zcomplete-post-command-hook(5 6 0)
  self-insert-command(1 109)
  funcall-interactively(self-insert-command 1 109)
  command-execute(self-insert-command)
  completing-read-default("M-x " #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_48> #f(compiled-function (sym) #<bytecode -0x1e728887bf4ede31>) t nil extended-command-history nil nil)
  read-extended-command()
  byte-code("\302\30\11\303 \10E)\207" [execute-extended-command--last-typed current-prefix-arg nil read-extended-command] 3)
  command-execute(execute-extended-command)
--8<---------------cut here---------------end--------------->8---

Same for C-x b.

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  next-completion(nil)
  minibuffer-next-completion()
  zcomplete-exhibit()
  zcomplete-post-command-hook(43 44 0)
  self-insert-command(1 115)
  funcall-interactively(self-insert-command 1 115)
  command-execute(self-insert-command)
  completing-read-default("Switch to buffer (default *Completions*): " internal-complete-buffer nil confirm-after-completion nil buffer-name-history "*Completions*" nil)
  read-buffer-to-switch("Switch to buffer: ")
  byte-code("\10?\205H\0\302 \203\16\0\303\202H\0\304 \305=\204\31\0\306\202H\0\11\307\267\202B\0\310\311!\202H\0\312\313\314\315 \"!\2038\0\316\303\211..." [switch-to-buffer-obey-display-actions switch-to-buffer-in-dedicated-window window-minibuffer-p nil window-dedicated-p t force-same-window #<hash-table eq 3/3 0x1fcfac3bff6d> user-error "Cannot switch buffers in a dedicated window" y-or-n-p format "Window is dedicated to %s; undedicate it?" window-buffer set-window-dedicated-p read-buffer-to-switch "Switch to buffer: "] 4)
  command-execute(switch-to-buffer)
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



  reply	other threads:[~2022-04-09 20:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-09 18:45 zsh-like zcomplete-mode based on icomplete-mode Juri Linkov
2022-04-09 20:30 ` Tassilo Horn [this message]
2022-04-10  7:38   ` Juri Linkov
2022-04-10  9:12     ` Tassilo Horn
2022-04-10 16:31       ` [External] : " Drew Adams
2022-04-10 19:11       ` Juri Linkov
2022-04-10  1:05 ` Ergus
2022-04-10  7:38   ` Juri Linkov
2022-04-10 10:41     ` Ergus
2022-04-10 16:34       ` [External] : " Drew Adams
2022-04-10 19:16       ` Juri Linkov
2022-04-10 21:45         ` Ergus
2022-04-11 16:53           ` Juri Linkov
2022-04-12 17:15       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0byq9lp.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).