emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zsh-like zcomplete-mode based on icomplete-mode


From: Tassilo Horn
Subject: Re: zsh-like zcomplete-mode based on icomplete-mode
Date: Sat, 09 Apr 2022 22:30:09 +0200
User-agent: mu4e 1.7.12; emacs 29.0.50

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 via email to

[Prev in Thread] Current Thread [Next in Thread]